|
1 #!/usr/bin/perl |
|
2 # Copyright (c) 2009 Symbian Foundation Ltd |
|
3 # This component and the accompanying materials are made available |
|
4 # under the terms of the License "Eclipse Public License v1.0" |
|
5 # which accompanies this distribution, and is available |
|
6 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 # |
|
8 # Initial Contributors: |
|
9 # Symbian Foundation Ltd - initial contribution. |
|
10 # |
|
11 # Contributors: |
|
12 # Louis Henry Nayegon <louisn@symbian.org> |
|
13 # |
|
14 # Description: |
|
15 # Script to build ATS test drop multimedia svs tests |
|
16 |
|
17 |
|
18 use strict; |
|
19 use File::Copy; |
|
20 use File::Path; |
|
21 |
|
22 unlink "multimediatest.zip"; |
|
23 ##rmtree "temp"; |
|
24 mkpath "temp/multimediatest/general/multimedia/t_imagedecoder"; |
|
25 mkpath "temp/multimediatest/general/multimedia/t_imageencoder"; |
|
26 mkpath "temp/multimediatest/general/multimedia/t_mdaaudioconvertutility"; |
|
27 mkpath "temp/multimediatest/general/multimedia/t_mdaaudiooutputstream"; |
|
28 mkpath "temp/multimediatest/general/multimedia/t_mdaaudioplayerutility"; |
|
29 mkpath "temp/multimediatest/general/multimedia/t_audiotoneutility"; |
|
30 mkpath "temp/multimediatest/general/multimedia/t_midiclientutility"; |
|
31 mkpath "temp/multimediatest/general/multimedia/t_videoplayerutility"; |
|
32 mkpath "temp/multimediatest/winscw_udeb/z/resource/plugins"; |
|
33 |
|
34 my $epoc=$ENV{'EPOCROOT'} . "epoc32/"; |
|
35 copy("multimediatest.xml", "temp/test.xml"); |
|
36 |
|
37 copy($epoc . "data/z/resource/plugins/ecamtestplugin.rsc", "temp/multimediatest/winscw_udeb/z/resource/plugins/ecamtestplugin.rsc"); |
|
38 copy($epoc . "release/winscw/udeb/ecamtestplugin.dll", "temp/multimediatest/winscw_udeb/ecamtestplugin.dll"); |
|
39 |
|
40 copy($epoc . "data/z/resource/plugins/xvidencoderdevice.rsc", "temp/multimediatest/winscw_udeb/z/resource/plugins/xvidencoderdevice.rsc"); |
|
41 copy($epoc . "data/z/resource/plugins/xviddecoderdevice.rsc", "temp/multimediatest/winscw_udeb/z/resource/plugins/xviddecoderdevice.rsc"); |
|
42 copy($epoc . "release/winscw/udeb/xvidencoderdevice.dll", "temp/multimediatest/winscw_udeb/xvidencoderdevice.dll"); |
|
43 copy($epoc . "release/winscw/udeb/xviddecoderdevice.dll", "temp/multimediatest/winscw_udeb/xviddecoderdevice.dll"); |
|
44 |
|
45 copy($epoc . "release/winscw/udeb/testframeworkserver.exe", "temp/multimediatest/winscw_udeb/testframeworkserver.exe"); |
|
46 copy($epoc . "release/winscw/udeb/testframeworkclient.dll", "temp/multimediatest/winscw_udeb/testframeworkclient.dll"); |
|
47 |
|
48 copy($epoc . "data/z/resource/plugins/xvidhwdeviceplugins.rsc", "temp/multimediatest/winscw_udeb/z/resource/plugins/xvidhwdeviceplugins.rsc"); |
|
49 copy($epoc . "release/winscw/udeb/xvidhwdeviceplugins.dll", "temp/multimediatest/winscw_udeb/xvidhwdeviceplugins.dll"); |
|
50 |
|
51 copy($epoc . "data/z/resource/plugins/ts_miditstcntrl.rsc", "temp/multimediatest/winscw_udeb/z/resource/plugins/ts_miditstcntrl.rsc"); |
|
52 copy($epoc . "release/winscw/udeb/ts_miditstcntrl.dll", "temp/multimediatest/winscw_udeb/ts_miditstcntrl.dll"); |
|
53 |
|
54 copy($epoc . "data/z/multimedia/t_multimedia.tcs", "temp/multimediatest/general/multimedia/t_multimedia.tcs"); |
|
55 copy($epoc . "data/z/multimedia/t_multimedia.ini", "temp/multimediatest/general/multimedia/t_multimedia.ini"); |
|
56 copy($epoc . "data/z/multimedia/t_multimedia_location.ini", "temp/multimediatest/general/multimedia/t_multimedia_location.ini"); |
|
57 |
|
58 copy($epoc . "data/z/multimedia/102070cc.txt", "temp/multimediatest/general/102070CC.txt"); |
|
59 copy($epoc . "data/z/multimedia/mm-ecm-publicapi.script", "temp/multimediatest/general/multimedia/mm-ecm-publicapi.script"); |
|
60 copy($epoc . "data/z/multimedia/mm-ecm-publicapi.ini", "temp/multimediatest/general/multimedia/mm-ecm-publicapi.ini"); |
|
61 |
|
62 copy($epoc . "data/z/multimedia/mm-icl-decde-publicapi.script", "temp/multimediatest/general/multimedia/mm-icl-decde-publicapi.script"); |
|
63 copy($epoc . "data/z/multimedia/mm-icl-decde-publicapi.ini", "temp/multimediatest/general/multimedia/mm-icl-decde-publicapi.ini"); |
|
64 copy($epoc . "data/z/multimedia/t_imagedecoder/24bit.apm", "temp/multimediatest/general/multimedia/t_imagedecoder/24bit.apm"); |
|
65 copy($epoc . "data/z/multimedia/t_imagedecoder/1bit.bmp", "temp/multimediatest/general/multimedia/t_imagedecoder/1bit.bmp"); |
|
66 copy($epoc . "data/z/multimedia/t_imagedecoder/4bit.bmp", "temp/multimediatest/general/multimedia/t_imagedecoder/4bit.bmp"); |
|
67 copy($epoc . "data/z/multimedia/t_imagedecoder/8bit.bmp", "temp/multimediatest/general/multimedia/t_imagedecoder/8bit.bmp"); |
|
68 copy($epoc . "data/z/multimedia/t_imagedecoder/24bit.bmp", "temp/multimediatest/general/multimedia/t_imagedecoder/24bit.bmp"); |
|
69 copy($epoc . "data/z/multimedia/t_imagedecoder/24bit.clp", "temp/multimediatest/general/multimedia/t_imagedecoder/24bit.clp"); |
|
70 copy($epoc . "data/z/multimedia/t_imagedecoder/1bit.gif", "temp/multimediatest/general/multimedia/t_imagedecoder/1bit.gif"); |
|
71 copy($epoc . "data/z/multimedia/t_imagedecoder/2bit.gif", "temp/multimediatest/general/multimedia/t_imagedecoder/2bit.gif"); |
|
72 copy($epoc . "data/z/multimedia/t_imagedecoder/4bit.gif", "temp/multimediatest/general/multimedia/t_imagedecoder/4bit.gif"); |
|
73 copy($epoc . "data/z/multimedia/t_imagedecoder/6bit.gif", "temp/multimediatest/general/multimedia/t_imagedecoder/6bit.gif"); |
|
74 copy($epoc . "data/z/multimedia/t_imagedecoder/8bit.gif", "temp/multimediatest/general/multimedia/t_imagedecoder/8bit.gif"); |
|
75 copy($epoc . "data/z/multimedia/t_imagedecoder/commented.gif", "temp/multimediatest/general/multimedia/t_imagedecoder/commented.gif"); |
|
76 copy($epoc . "data/z/multimedia/t_imagedecoder/4bit.ico", "temp/multimediatest/general/multimedia/t_imagedecoder/4bit.ico"); |
|
77 copy($epoc . "data/z/multimedia/t_imagedecoder/8bit.ico", "temp/multimediatest/general/multimedia/t_imagedecoder/8bit.ico"); |
|
78 copy($epoc . "data/z/multimedia/t_imagedecoder/8bit.jpg", "temp/multimediatest/general/multimedia/t_imagedecoder/8bit.jpg"); |
|
79 copy($epoc . "data/z/multimedia/t_imagedecoder/24bit.jpg", "temp/multimediatest/general/multimedia/t_imagedecoder/24bit.jpg"); |
|
80 copy($epoc . "data/z/multimedia/t_imagedecoder/thumbnail.jpg", "temp/multimediatest/general/multimedia/t_imagedecoder/thumbnail.jpg"); |
|
81 copy($epoc . "data/z/multimedia/t_imagedecoder/commented.jpg", "temp/multimediatest/general/multimedia/t_imagedecoder/commented.jpg"); |
|
82 copy($epoc . "data/z/multimedia/t_imagedecoder/dec1bit.mbm", "temp/multimediatest/general/multimedia/t_imagedecoder/dec1bit.mbm"); |
|
83 copy($epoc . "data/z/multimedia/t_imagedecoder/dec2bit.mbm", "temp/multimediatest/general/multimedia/t_imagedecoder/dec2bit.mbm"); |
|
84 copy($epoc . "data/z/multimedia/t_imagedecoder/dec4bit.mbm", "temp/multimediatest/general/multimedia/t_imagedecoder/dec4bit.mbm"); |
|
85 copy($epoc . "data/z/multimedia/t_imagedecoder/dec8bit.mbm", "temp/multimediatest/general/multimedia/t_imagedecoder/dec8bit.mbm"); |
|
86 copy($epoc . "data/z/multimedia/t_imagedecoder/dec16bit.mbm", "temp/multimediatest/general/multimedia/t_imagedecoder/dec16bit.mbm"); |
|
87 copy($epoc . "data/z/multimedia/t_imagedecoder/dec24bit.mbm", "temp/multimediatest/general/multimedia/t_imagedecoder/dec24bit.mbm"); |
|
88 copy($epoc . "data/z/multimedia/t_imagedecoder/24bit.mng", "temp/multimediatest/general/multimedia/t_imagedecoder/24bit.mng"); |
|
89 copy($epoc . "data/z/multimedia/t_imagedecoder/1bit.ota", "temp/multimediatest/general/multimedia/t_imagedecoder/1bit.ota"); |
|
90 copy($epoc . "data/z/multimedia/t_imagedecoder/1bit.png", "temp/multimediatest/general/multimedia/t_imagedecoder/1bit.png"); |
|
91 copy($epoc . "data/z/multimedia/t_imagedecoder/4bit.png", "temp/multimediatest/general/multimedia/t_imagedecoder/4bit.png"); |
|
92 copy($epoc . "data/z/multimedia/t_imagedecoder/8bit.png", "temp/multimediatest/general/multimedia/t_imagedecoder/8bit.png"); |
|
93 copy($epoc . "data/z/multimedia/t_imagedecoder/24bit.png", "temp/multimediatest/general/multimedia/t_imagedecoder/24bit.png"); |
|
94 copy($epoc . "data/z/multimedia/t_imagedecoder/1bitg3.tif", "temp/multimediatest/general/multimedia/t_imagedecoder/1bitg3.tif"); |
|
95 copy($epoc . "data/z/multimedia/t_imagedecoder/1bitg4.tif", "temp/multimediatest/general/multimedia/t_imagedecoder/1bitg4.tif"); |
|
96 copy($epoc . "data/z/multimedia/t_imagedecoder/1bit.tif", "temp/multimediatest/general/multimedia/t_imagedecoder/1bit.tif"); |
|
97 copy($epoc . "data/z/multimedia/t_imagedecoder/4bit.tif", "temp/multimediatest/general/multimedia/t_imagedecoder/4bit.tif"); |
|
98 copy($epoc . "data/z/multimedia/t_imagedecoder/8bit.tif", "temp/multimediatest/general/multimedia/t_imagedecoder/8bit.tif"); |
|
99 copy($epoc . "data/z/multimedia/t_imagedecoder/24bit.tif", "temp/multimediatest/general/multimedia/t_imagedecoder/24bit.tif"); |
|
100 copy($epoc . "data/z/multimedia/t_imagedecoder/1bit.wbmp", "temp/multimediatest/general/multimedia/t_imagedecoder/1bit.wbmp"); |
|
101 copy($epoc . "data/z/multimedia/t_imagedecoder/24bit.wmf", "temp/multimediatest/general/multimedia/t_imagedecoder/24bit.wmf"); |
|
102 copy($epoc . "data/z/multimedia/t_imagedecoder/corrupted.bmp", "temp/multimediatest/general/multimedia/t_imagedecoder/corrupted.bmp"); |
|
103 copy($epoc . "data/z/multimedia/t_imagedecoder/partial.bmp", "temp/multimediatest/general/multimedia/t_imagedecoder/partial.bmp"); |
|
104 |
|
105 copy($epoc . "data/z/multimedia/mm-icl-encde-publicapi.script", "temp/multimediatest/general/multimedia/mm-icl-encde-publicapi.script"); |
|
106 copy($epoc . "data/z/multimedia/mm-icl-encde-publicapi.ini", "temp/multimediatest/general/multimedia/mm-icl-encde-publicapi.ini"); |
|
107 copy($epoc . "data/z/multimedia/t_imageencoder/enc1bit.mbm", "temp/multimediatest/general/multimedia/t_imageencoder/enc1bit.mbm"); |
|
108 copy($epoc . "data/z/multimedia/t_imageencoder/enc2bit.mbm", "temp/multimediatest/general/multimedia/t_imageencoder/enc2bit.mbm"); |
|
109 copy($epoc . "data/z/multimedia/t_imageencoder/enc4bit.mbm", "temp/multimediatest/general/multimedia/t_imageencoder/enc4bit.mbm"); |
|
110 copy($epoc . "data/z/multimedia/t_imageencoder/enc8bit.mbm", "temp/multimediatest/general/multimedia/t_imageencoder/enc8bit.mbm"); |
|
111 copy($epoc . "data/z/multimedia/t_imageencoder/enc16bit.mbm", "temp/multimediatest/general/multimedia/t_imageencoder/enc16bit.mbm"); |
|
112 copy($epoc . "data/z/multimedia/t_imageencoder/enc24bit.mbm", "temp/multimediatest/general/multimedia/t_imageencoder/enc24bit.mbm"); |
|
113 |
|
114 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-cnvrt-publicapi.script", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-cnvrt-publicapi.script"); |
|
115 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-cnvrt-publicapi.ini", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-cnvrt-publicapi.ini"); |
|
116 copy($epoc . "data/z/multimedia/t_mdaaudioconvertutility/note.wav", "temp/multimediatest/general/multimedia/t_mdaaudioconvertutility/note.wav"); |
|
117 copy($epoc . "data/z/multimedia/t_mdaaudioconvertutility/note.raw", "temp/multimediatest/general/multimedia/t_mdaaudioconvertutility/note.raw"); |
|
118 copy($epoc . "data/z/multimedia/t_mdaaudioconvertutility/corrupted.wav", "temp/multimediatest/general/multimedia/t_mdaaudioconvertutility/corrupted.wav"); |
|
119 copy($epoc . "release/winscw/udeb/z/multimedia/t_mdaaudioconvertutility/explode.wav", "temp/multimediatest/general/multimedia/t_mdaaudioconvertutility/explode.wav"); |
|
120 |
|
121 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-inpt-publicapi.script", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-inpt-publicapi.script"); |
|
122 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-inpt-publicapi.ini", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-inpt-publicapi.ini"); |
|
123 |
|
124 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-outpt-publicapi.script", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-outpt-publicapi.script"); |
|
125 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-outpt-publicapi.ini", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-outpt-publicapi.ini"); |
|
126 copy($epoc . "data/z/multimedia/t_mdaaudiooutputstream/mm-mmf-aclnt-outpt-publicapi.raw", "temp/multimediatest/general/multimedia/t_mdaaudiooutputstream/mm-mmf-aclnt-outpt-publicapi.raw"); |
|
127 |
|
128 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-plyr-publicapi.script", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-plyr-publicapi.script"); |
|
129 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-plyr-publicapi.ini", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-plyr-publicapi.ini"); |
|
130 copy($epoc . "data/z/multimedia/t_mdaaudioplayerutility/test.wav", "temp/multimediatest/general/multimedia/t_mdaaudioplayerutility/test.wav"); |
|
131 copy($epoc . "data/z/multimedia/t_mdaaudioplayerutility/test.bad", "temp/multimediatest/general/multimedia/t_mdaaudioplayerutility/test.bad"); |
|
132 copy($epoc . "data/z/multimedia/t_mdaaudioplayerutility/test_err.wav", "temp/multimediatest/general/multimedia/t_mdaaudioplayerutility/test_err.wav"); |
|
133 copy($epoc . "data/z/multimedia/t_mdaaudioplayerutility/empty.wav", "temp/multimediatest/general/multimedia/t_mdaaudioplayerutility/empty.wav"); |
|
134 copy($epoc . "data/z/multimedia/t_mdaaudioplayerutility/answeringmachine.wav", "temp/multimediatest/general/multimedia/t_mdaaudioplayerutility/answeringmachine.wav"); |
|
135 copy($epoc . "data/z/multimedia/t_mdaaudioplayerutility/explode.au", "temp/multimediatest/general/multimedia/t_mdaaudioplayerutility/explode.au"); |
|
136 |
|
137 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-rcrdr-publicapi.script", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-rcrdr-publicapi.script"); |
|
138 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-rcrdr-publicapi.ini", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-rcrdr-publicapi.ini"); |
|
139 copy($epoc . "data/z/multimedia/t_mdaaudiorecorderutility/pcm16stereo8khz.wav", "temp/multimediatest/general/multimedia/t_mdaaudiorecorderutility/pcm16stereo8khz.wav"); |
|
140 copy($epoc . "data/z/multimedia/t_mdaaudiorecorderutility/corrupted.wav", "temp/multimediatest/general/multimedia/t_mdaaudiorecorderutility/corrupted.wav"); |
|
141 |
|
142 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-tone-publicapi.script", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-tone-publicapi.script"); |
|
143 copy($epoc . "data/z/multimedia/mm-mmf-aclnt-tone-publicapi.ini", "temp/multimediatest/general/multimedia/mm-mmf-aclnt-tone-publicapi.ini"); |
|
144 copy($epoc . "data/z/multimedia/t_audiotoneutility/sequence1.sqn", "temp/multimediatest/general/multimedia/t_audiotoneutility/sequence1.sqn"); |
|
145 copy($epoc . "data/z/multimedia/t_audiotoneutility/sequence2.sqn", "temp/multimediatest/general/multimedia/t_audiotoneutility/sequence2.sqn"); |
|
146 copy($epoc . "data/z/multimedia/t_audiotoneutility/badsequence.sqn", "temp/multimediatest/general/multimedia/t_audiotoneutility/badsequence.sqn"); |
|
147 |
|
148 copy($epoc . "data/z/multimedia/mm-mmf-midi-publicapi.script", "temp/multimediatest/general/multimedia/mm-mmf-midi-publicapi.script"); |
|
149 copy($epoc . "data/z/multimedia/mm-mmf-midi-publicapi.ini", "temp/multimediatest/general/multimedia/mm-mmf-midi-publicapi.ini"); |
|
150 copy($epoc . "data/z/multimedia/t_midiclientutility/midi.mid", "temp/multimediatest/general/multimedia/t_midiclientutility/midi.mid"); |
|
151 copy($epoc . "data/z/multimedia/t_midiclientutility/textmidi.mid", "temp/multimediatest/general/multimedia/t_midiclientutility/textmidi.mid"); |
|
152 copy($epoc . "data/z/multimedia/t_midiclientutility/midiclienttest.gm", "temp/multimediatest/general/multimedia/t_midiclientutility/midiclienttest.gm"); |
|
153 |
|
154 copy($epoc . "data/z/multimedia/mm-mmf-vclnt-plyr-publicapi.script", "temp/multimediatest/general/multimedia/mm-mmf-vclnt-plyr-publicapi.script"); |
|
155 copy($epoc . "data/z/multimedia/mm-mmf-vclnt-plyr-publicapi.ini", "temp/multimediatest/general/multimedia/mm-mmf-vclnt-plyr-publicapi.ini"); |
|
156 copy($epoc . "data/z/multimedia/t_videoplayerutility/alter.mp4", "temp/multimediatest/general/multimedia/t_videoplayerutility/alter.mp4"); |
|
157 copy($epoc . "data/z/multimedia/t_videoplayerutility/xvid_clock.avi", "temp/multimediatest/general/multimedia/t_videoplayerutility/xvid_clock.avi"); |
|
158 copy($epoc . "data/z/multimedia/t_videoplayerutility/corrupted.avi", "temp/multimediatest/general/multimedia/t_videoplayerutility/corrupted.avi"); |
|
159 |
|
160 copy($epoc . "data/z/multimedia/mm-mmf-vclnt-rcrdr-publicapi.script", "temp/multimediatest/general/multimedia/mm-mmf-vclnt-rcrdr-publicapi.script"); |
|
161 copy($epoc . "data/z/multimedia/mm-mmf-vclnt-rcrdr-publicapi.ini", "temp/multimediatest/general/multimedia/mm-mmf-vclnt-rcrdr-publicapi.ini"); |
|
162 |
|
163 copy($epoc . "release/winscw/udeb/t_camera.exe", "temp/multimediatest/winscw_udeb/t_camera.exe"); |
|
164 copy($epoc . "release/winscw/udeb/t_imagedecoder.exe", "temp/multimediatest/winscw_udeb/t_imagedecoder.exe"); |
|
165 copy($epoc . "release/winscw/udeb/t_imageencoder.exe", "temp/multimediatest/winscw_udeb/t_imageencoder.exe"); |
|
166 copy($epoc . "release/winscw/udeb/t_mdaaudioconvertutility.exe", "temp/multimediatest/winscw_udeb/t_mdaaudioconvertutility.exe"); |
|
167 copy($epoc . "release/winscw/udeb/t_mdaaudioinputstream.exe", "temp/multimediatest/winscw_udeb/t_mdaaudioinputstream.exe"); |
|
168 copy($epoc . "release/winscw/udeb/t_mdaaudiooutputstream.exe", "temp/multimediatest/winscw_udeb/t_mdaaudiooutputstream.exe"); |
|
169 copy($epoc . "release/winscw/udeb/t_mdaaudioplayerutility.exe", "temp/multimediatest/winscw_udeb/t_mdaaudioplayerutility.exe"); |
|
170 copy($epoc . "release/winscw/udeb/t_mdaaudiorecorderutility.exe", "temp/multimediatest/winscw_udeb/t_mdaaudiorecorderutility.exe"); |
|
171 copy($epoc . "release/winscw/udeb/t_mdaaudiotoneutility.exe", "temp/multimediatest/winscw_udeb/t_mdaaudiotoneutility.exe"); |
|
172 copy($epoc . "release/winscw/udeb/t_midiclientutility.exe", "temp/multimediatest/winscw_udeb/t_midiclientutility.exe"); |
|
173 copy($epoc . "release/winscw/udeb/t_videoplayerutility.exe", "temp/multimediatest/winscw_udeb/t_videoplayerutility.exe"); |
|
174 copy($epoc . "release/winscw/udeb/t_videorecorderutility.exe", "temp/multimediatest/winscw_udeb/t_videorecorderutility.exe"); |
|
175 |
|
176 system("7z a -tzip multimediatest.zip ./temp/*"); |