662
|
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 |
# Maciej Seroka <maciejs@symbian.org>
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
# Script to build ATS test drop for GTK Library BC tests
|
|
16 |
|
|
17 |
|
|
18 |
use strict;
|
|
19 |
use File::Copy;
|
|
20 |
use File::Path;
|
|
21 |
|
|
22 |
unlink "glibtest.zip";
|
|
23 |
rmtree "temp";
|
|
24 |
mkpath "temp/glibtest/glib/general";
|
|
25 |
mkpath "temp/glibtest/winscw_udeb";
|
|
26 |
|
|
27 |
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
|
|
28 |
copy("glib.xml", "temp/test.xml");
|
|
29 |
|
|
30 |
copy($epoc . "release/winscw/udeb/accumulator.exe", "temp/glibtest/winscw_udeb/accumulator.exe") or die "failed : $!";
|
|
31 |
copy($epoc . "release/winscw/udeb/array-test.exe", "temp/glibtest/winscw_udeb/array-test.exe") or die "failed : $!";
|
|
32 |
copy($epoc . "release/winscw/udeb/asyncqueue-test.exe", "temp/glibtest/winscw_udeb/asyncqueue-test.exe") or die "failed : $!";
|
|
33 |
copy($epoc . "release/winscw/udeb/atomic-test.exe", "temp/glibtest/winscw_udeb/atomic-test.exe") or die "failed : $!";
|
|
34 |
copy($epoc . "release/winscw/udeb/child-test1.exe", "temp/glibtest/winscw_udeb/child-test1.exe") or die "failed : $!";
|
|
35 |
copy($epoc . "release/winscw/udeb/child-test2.exe", "temp/glibtest/winscw_udeb/child-test2.exe") or die "failed : $!";
|
|
36 |
copy($epoc . "release/winscw/udeb/closure-marshal.exe", "temp/glibtest/winscw_udeb/closure-marshal.exe") or die "failed : $!";
|
|
37 |
copy($epoc . "release/winscw/udeb/closures.exe", "temp/glibtest/winscw_udeb/closures.exe") or die "failed : $!";
|
|
38 |
copy($epoc . "release/winscw/udeb/completion-test.exe", "temp/glibtest/winscw_udeb/completion-test.exe") or die "failed : $!";
|
|
39 |
copy($epoc . "release/winscw/udeb/convert-test.exe", "temp/glibtest/winscw_udeb/convert-test.exe") or die "failed : $!";
|
|
40 |
copy($epoc . "release/winscw/udeb/date-test.exe", "temp/glibtest/winscw_udeb/date-test.exe") or die "failed : $!";
|
|
41 |
copy($epoc . "release/winscw/udeb/defaultiface.exe", "temp/glibtest/winscw_udeb/defaultiface.exe") or die "failed : $!";
|
|
42 |
copy($epoc . "release/winscw/udeb/dirname-test.exe", "temp/glibtest/winscw_udeb/dirname-test.exe") or die "failed : $!";
|
|
43 |
copy($epoc . "release/winscw/udeb/env-test.exe", "temp/glibtest/winscw_udeb/env-test.exe") or die "failed : $!";
|
|
44 |
copy($epoc . "release/winscw/udeb/error_check_mutexes.exe", "temp/glibtest/winscw_udeb/error_check_mutexes.exe") or die "failed : $!";
|
|
45 |
copy($epoc . "release/winscw/udeb/extra_tests.exe", "temp/glibtest/winscw_udeb/extra_tests.exe") or die "failed : $!";
|
|
46 |
copy($epoc . "release/winscw/udeb/file-test.exe", "temp/glibtest/winscw_udeb/file-test.exe") or die "failed : $!";
|
|
47 |
copy($epoc . "release/winscw/udeb/gio-test.exe", "temp/glibtest/winscw_udeb/gio-test.exe") or die "failed : $!";
|
|
48 |
copy($epoc . "release/winscw/udeb/gvalue-test.exe", "temp/glibtest/winscw_udeb/gvalue-test.exe") or die "failed : $!";
|
|
49 |
copy($epoc . "release/winscw/udeb/g_test1.exe", "temp/glibtest/winscw_udeb/g_test1.exe") or die "failed : $!";
|
|
50 |
copy($epoc . "release/winscw/udeb/g_test2.exe", "temp/glibtest/winscw_udeb/g_test2.exe") or die "failed : $!";
|
|
51 |
copy($epoc . "release/winscw/udeb/hash-test.exe", "temp/glibtest/winscw_udeb/hash-test.exe") or die "failed : $!";
|
|
52 |
copy($epoc . "release/winscw/udeb/ifacecheck.exe", "temp/glibtest/winscw_udeb/ifacecheck.exe") or die "failed : $!";
|
|
53 |
copy($epoc . "release/winscw/udeb/ifaceinherit.exe", "temp/glibtest/winscw_udeb/ifaceinherit.exe") or die "failed : $!";
|
|
54 |
copy($epoc . "release/winscw/udeb/ifaceinit.exe", "temp/glibtest/winscw_udeb/ifaceinit.exe") or die "failed : $!";
|
|
55 |
copy($epoc . "release/winscw/udeb/ifaceproperties.exe", "temp/glibtest/winscw_udeb/ifaceproperties.exe") or die "failed : $!";
|
|
56 |
copy($epoc . "release/winscw/udeb/iochannel-test.exe", "temp/glibtest/winscw_udeb/iochannel-test.exe") or die "failed : $!";
|
|
57 |
copy($epoc . "release/winscw/udeb/keyfile-test.exe", "temp/glibtest/winscw_udeb/keyfile-test.exe") or die "failed : $!";
|
|
58 |
copy($epoc . "release/winscw/udeb/list-test.exe", "temp/glibtest/winscw_udeb/list-test.exe") or die "failed : $!";
|
|
59 |
copy($epoc . "release/winscw/udeb/mainloop-test.exe", "temp/glibtest/winscw_udeb/mainloop-test.exe") or die "failed : $!";
|
|
60 |
copy($epoc . "release/winscw/udeb/mapping-test.exe", "temp/glibtest/winscw_udeb/mapping-test.exe") or die "failed : $!";
|
|
61 |
copy($epoc . "release/winscw/udeb/markup-escape-test.exe", "temp/glibtest/winscw_udeb/markup-escape-test.exe") or die "failed : $!";
|
|
62 |
copy($epoc . "release/winscw/udeb/markup-test.exe", "temp/glibtest/winscw_udeb/markup-test.exe") or die "failed : $!";
|
|
63 |
copy($epoc . "release/winscw/udeb/module-test.exe", "temp/glibtest/winscw_udeb/module-test.exe") or die "failed : $!";
|
|
64 |
copy($epoc . "release/winscw/udeb/node-test.exe", "temp/glibtest/winscw_udeb/node-test.exe") or die "failed : $!";
|
|
65 |
copy($epoc . "release/winscw/udeb/objects.exe", "temp/glibtest/winscw_udeb/objects.exe") or die "failed : $!";
|
|
66 |
copy($epoc . "release/winscw/udeb/objects2.exe", "temp/glibtest/winscw_udeb/objects2.exe") or die "failed : $!";
|
|
67 |
copy($epoc . "release/winscw/udeb/option-test.exe", "temp/glibtest/winscw_udeb/option-test.exe") or die "failed : $!";
|
|
68 |
copy($epoc . "release/winscw/udeb/override.exe", "temp/glibtest/winscw_udeb/override.exe") or die "failed : $!";
|
|
69 |
copy($epoc . "release/winscw/udeb/paramspec-test.exe", "temp/glibtest/winscw_udeb/paramspec-test.exe") or die "failed : $!";
|
|
70 |
copy($epoc . "release/winscw/udeb/patterntest.exe", "temp/glibtest/winscw_udeb/patterntest.exe") or die "failed : $!";
|
|
71 |
copy($epoc . "release/winscw/udeb/printf-test.exe", "temp/glibtest/winscw_udeb/printf-test.exe") or die "failed : $!";
|
|
72 |
copy($epoc . "release/winscw/udeb/properties.exe", "temp/glibtest/winscw_udeb/properties.exe") or die "failed : $!";
|
|
73 |
copy($epoc . "release/winscw/udeb/properties2.exe", "temp/glibtest/winscw_udeb/properties2.exe") or die "failed : $!";
|
|
74 |
copy($epoc . "release/winscw/udeb/qsort-test.exe", "temp/glibtest/winscw_udeb/qsort-test.exe") or die "failed : $!";
|
|
75 |
copy($epoc . "release/winscw/udeb/queue-test.exe", "temp/glibtest/winscw_udeb/queue-test.exe") or die "failed : $!";
|
|
76 |
copy($epoc . "release/winscw/udeb/rand-test.exe", "temp/glibtest/winscw_udeb/rand-test.exe") or die "failed : $!";
|
|
77 |
copy($epoc . "release/winscw/udeb/references.exe", "temp/glibtest/winscw_udeb/references.exe") or die "failed : $!";
|
|
78 |
copy($epoc . "release/winscw/udeb/relation-test.exe", "temp/glibtest/winscw_udeb/relation-test.exe") or die "failed : $!";
|
|
79 |
copy($epoc . "release/winscw/udeb/shell-test.exe", "temp/glibtest/winscw_udeb/shell-test.exe") or die "failed : $!";
|
|
80 |
copy($epoc . "release/winscw/udeb/signals-multithread.exe", "temp/glibtest/winscw_udeb/signals-multithread.exe") or die "failed : $!";
|
|
81 |
copy($epoc . "release/winscw/udeb/signals-singlethread.exe", "temp/glibtest/winscw_udeb/signals-singlethread.exe") or die "failed : $!";
|
|
82 |
copy($epoc . "release/winscw/udeb/slist-test.exe", "temp/glibtest/winscw_udeb/slist-test.exe") or die "failed : $!";
|
|
83 |
copy($epoc . "release/winscw/udeb/strfunc-test.exe", "temp/glibtest/winscw_udeb/strfunc-test.exe") or die "failed : $!";
|
|
84 |
copy($epoc . "release/winscw/udeb/string-test.exe", "temp/glibtest/winscw_udeb/string-test.exe") or die "failed : $!";
|
|
85 |
copy($epoc . "release/winscw/udeb/strtod-test.exe", "temp/glibtest/winscw_udeb/strtod-test.exe") or die "failed : $!";
|
|
86 |
copy($epoc . "release/winscw/udeb/tasyncqueue.exe", "temp/glibtest/winscw_udeb/tasyncqueue.exe") or die "failed : $!";
|
|
87 |
copy($epoc . "release/winscw/udeb/testgdate.exe", "temp/glibtest/winscw_udeb/testgdate.exe") or die "failed : $!";
|
|
88 |
copy($epoc . "release/winscw/udeb/testgdateparser.exe", "temp/glibtest/winscw_udeb/testgdateparser.exe") or die "failed : $!";
|
|
89 |
copy($epoc . "release/winscw/udeb/testglib.exe", "temp/glibtest/winscw_udeb/testglib.exe") or die "failed : $!";
|
|
90 |
copy($epoc . "release/winscw/udeb/testgobject.exe", "temp/glibtest/winscw_udeb/testgobject.exe") or die "failed : $!";
|
|
91 |
copy($epoc . "release/winscw/udeb/tgstring.exe", "temp/glibtest/winscw_udeb/tgstring.exe") or die "failed : $!";
|
|
92 |
copy($epoc . "release/winscw/udeb/thread-test.exe", "temp/glibtest/winscw_udeb/thread-test.exe") or die "failed : $!";
|
|
93 |
copy($epoc . "release/winscw/udeb/threadpool-test.exe", "temp/glibtest/winscw_udeb/threadpool-test.exe") or die "failed : $!";
|
|
94 |
copy($epoc . "release/winscw/udeb/timeloop-closure.exe", "temp/glibtest/winscw_udeb/timeloop-closure.exe") or die "failed : $!";
|
|
95 |
copy($epoc . "release/winscw/udeb/timeloop.exe", "temp/glibtest/winscw_udeb/timeloop.exe") or die "failed : $!";
|
|
96 |
copy($epoc . "release/winscw/udeb/tmanual.exe", "temp/glibtest/winscw_udeb/tmanual.exe") or die "failed : $!";
|
|
97 |
copy($epoc . "release/winscw/udeb/tmisc.exe", "temp/glibtest/winscw_udeb/tmisc.exe") or die "failed : $!";
|
|
98 |
copy($epoc . "release/winscw/udeb/tnode.exe", "temp/glibtest/winscw_udeb/tnode.exe") or die "failed : $!";
|
|
99 |
copy($epoc . "release/winscw/udeb/toption.exe", "temp/glibtest/winscw_udeb/toption.exe") or die "failed : $!";
|
|
100 |
copy($epoc . "release/winscw/udeb/tree-test.exe", "temp/glibtest/winscw_udeb/tree-test.exe") or die "failed : $!";
|
|
101 |
copy($epoc . "release/winscw/udeb/tscanner.exe", "temp/glibtest/winscw_udeb/tscanner.exe") or die "failed : $!";
|
|
102 |
copy($epoc . "release/winscw/udeb/tslist.exe", "temp/glibtest/winscw_udeb/tslist.exe") or die "failed : $!";
|
|
103 |
copy($epoc . "release/winscw/udeb/tthread.exe", "temp/glibtest/winscw_udeb/tthread.exe") or die "failed : $!";
|
|
104 |
copy($epoc . "release/winscw/udeb/ttrash.exe", "temp/glibtest/winscw_udeb/ttrash.exe") or die "failed : $!";
|
|
105 |
copy($epoc . "release/winscw/udeb/ttree.exe", "temp/glibtest/winscw_udeb/ttree.exe") or die "failed : $!";
|
|
106 |
copy($epoc . "release/winscw/udeb/tunichar.exe", "temp/glibtest/winscw_udeb/tunichar.exe") or die "failed : $!";
|
|
107 |
copy($epoc . "release/winscw/udeb/tutf8.exe", "temp/glibtest/winscw_udeb/tutf8.exe") or die "failed : $!";
|
|
108 |
copy($epoc . "release/winscw/udeb/typetest.exe", "temp/glibtest/winscw_udeb/typetest.exe") or die "failed : $!";
|
|
109 |
copy($epoc . "release/winscw/udeb/unichar_test.exe", "temp/glibtest/winscw_udeb/unichar_test.exe") or die "failed : $!";
|
|
110 |
copy($epoc . "release/winscw/udeb/unicode-caseconv.exe", "temp/glibtest/winscw_udeb/unicode-caseconv.exe") or die "failed : $!";
|
|
111 |
copy($epoc . "release/winscw/udeb/unicode-collate.exe", "temp/glibtest/winscw_udeb/unicode-collate.exe") or die "failed : $!";
|
|
112 |
copy($epoc . "release/winscw/udeb/unicode-encoding.exe", "temp/glibtest/winscw_udeb/unicode-encoding.exe") or die "failed : $!";
|
|
113 |
copy($epoc . "release/winscw/udeb/unicode-normalize.exe", "temp/glibtest/winscw_udeb/unicode-normalize.exe") or die "failed : $!";
|
|
114 |
copy($epoc . "release/winscw/udeb/uri-test.exe", "temp/glibtest/winscw_udeb/uri-test.exe") or die "failed : $!";
|
|
115 |
copy($epoc . "release/winscw/udeb/utf8-pointer.exe", "temp/glibtest/winscw_udeb/utf8-pointer.exe") or die "failed : $!";
|
|
116 |
copy($epoc . "release/winscw/udeb/utf8-validate.exe", "temp/glibtest/winscw_udeb/utf8-validate.exe") or die "failed : $!";
|
|
117 |
|
|
118 |
copy($epoc . "release/winscw/udeb/libmoduletestplugin_a.dll", "temp/glibtest/winscw_udeb/libmoduletestplugin_a.dll") or die "failed : $!";
|
|
119 |
copy($epoc . "release/winscw/udeb/libmoduletestplugin_b.dll", "temp/glibtest/winscw_udeb/libmoduletestplugin_b.dll") or die "failed : $!";
|
|
120 |
|
|
121 |
copy($epoc . "winscw/c/temp/tmp/test.txt", "temp/glibtest/glib/general/test.txt") or die "failed : $!";
|
|
122 |
copy($epoc . "winscw/c/1.gmarkup", "temp/glibtest/glib/general/1.gmarkup") or die "failed : $!";
|
|
123 |
copy($epoc . "winscw/c/iochannel-test-infile", "temp/glibtest/glib/general/iochannel-test-infile") or die "failed : $!";
|
|
124 |
copy($epoc . "winscw/c/casemap.bin", "temp/glibtest/glib/general/casemap.bin") or die "failed : $!";
|
|
125 |
copy($epoc . "winscw/c/casefold.bin", "temp/glibtest/glib/general/casefold.bin") or die "failed : $!";
|
|
126 |
copy($epoc . "winscw/c/utf8.txt", "temp/glibtest/glib/general/utf8.txt") or die "failed : $!";
|
|
127 |
copy($epoc . "winscw/c/casecollate.txt", "temp/glibtest/glib/general/casecollate.txt") or die "failed : $!";
|
|
128 |
copy($epoc . "winscw/c/utf8_hindi.txt", "temp/glibtest/glib/general/utf8_hindi.txt") or die "failed : $!";
|
|
129 |
copy($epoc . "winscw/c/scanfile.txt", "temp/glibtest/glib/general/scanfile.txt") or die "failed : $!";
|
|
130 |
copy($epoc . "winscw/c/NormalizationTest.txt", "temp/glibtest/glib/general/NormalizationTest.txt") or die "failed : $!";
|
|
131 |
|
|
132 |
system("7z a -tzip glibtest.zip ./temp/*");
|