|
1 #!/usr/bin/perl |
|
2 |
|
3 use strict; |
|
4 use File::Copy; |
|
5 use File::Path; |
|
6 |
|
7 unlink "smoketest.zip"; |
|
8 rmtree "temp"; |
|
9 mkpath "temp/smoketest/general"; |
|
10 mkpath "temp/smoketest/winscw_udeb"; |
|
11 mkpath "temp/smoketest/sms/general"; |
|
12 |
|
13 my $epoc=$ENV{'EPOCROOT'} . "epoc32/"; |
|
14 copy("smoketest.xml", "temp/test.xml"); |
|
15 copy($epoc . "data/z/smoketest/smoketest_agenda.ini", "temp/smoketest/general/smoketest_agenda.ini"); |
|
16 copy($epoc . "data/z/smoketest/smoketest_agenda.script", "temp/smoketest/general/smoketest_agenda.script"); |
|
17 copy($epoc . "data/z/smoketest/smoketest_apploader.ini", "temp/smoketest/general/smoketest_apploader.ini"); |
|
18 copy($epoc . "data/z/smoketest/smoketest_apploader.script", "temp/smoketest/general/smoketest_apploader.script"); |
|
19 copy($epoc . "data/z/smoketest/smoketest_contacts.ini", "temp/smoketest/general/smoketest_contacts.ini"); |
|
20 copy($epoc . "data/z/smoketest/smoketest_contacts.script", "temp/smoketest/general/smoketest_contacts.script"); |
|
21 copy($epoc . "data/z/smoketest/smoketest_createsmsaccount.script", "temp/smoketest/general/smoketest_createsmsaccount.script"); |
|
22 copy($epoc . "data/z/smoketest/smoketest_mess.ini", "temp/smoketest/general/smoketest_mess.ini"); |
|
23 copy($epoc . "data/z/smoketest/smoketest_mess.script", "temp/smoketest/general/smoketest_mess.script"); |
|
24 copy($epoc . "data/z/smoketest/smoketest_phone.script", "temp/smoketest/general/smoketest_phone.script"); |
|
25 copy($epoc . "data/z/smoketest/smoketest_syncmlapp.script", "temp/smoketest/general/smoketest_syncmlapp.script"); |
|
26 copy($epoc . "data/z/smoketest/smoketest_system.script", "temp/smoketest/general/smoketest_system.script"); |
|
27 copy($epoc . "data/z/smoketest/smoketest_timew.ini", "temp/smoketest/general/smoketest_timew.ini"); |
|
28 copy($epoc . "data/z/smoketest/smoketest_timew.script", "temp/smoketest/general/smoketest_timew.script"); |
|
29 copy($epoc . "data/z/smoketest/sms/message1.txt", "temp/smoketest/sms/general/message1.txt"); |
|
30 copy($epoc . "release/winscw/udeb/SmokeTestSecureFSclient.dll", "temp/smoketest/winscw_udeb/SmokeTestSecureFSclient.dll"); |
|
31 copy($epoc . "release/winscw/udeb/SmokeTestSecureFSserver.exe", "temp/smoketest/winscw_udeb/SmokeTestSecureFSserver.exe"); |
|
32 copy($epoc . "release/winscw/udeb/Smoketest_Agenda_Server.exe", "temp/smoketest/winscw_udeb/Smoketest_Agenda_Server.exe"); |
|
33 copy($epoc . "release/winscw/udeb/smoketest_apploader.exe", "temp/smoketest/winscw_udeb/smoketest_apploader.exe"); |
|
34 copy($epoc . "release/winscw/udeb/Smoketest_Contacts_Server.exe", "temp/smoketest/winscw_udeb/Smoketest_Contacts_Server.exe"); |
|
35 copy($epoc . "release/winscw/udeb/Smoketest_Mess_Server.exe", "temp/smoketest/winscw_udeb/Smoketest_Mess_Server.exe"); |
|
36 copy($epoc . "release/winscw/udeb/Smoketest_System.exe", "temp/smoketest/winscw_udeb/Smoketest_System.exe"); |
|
37 copy($epoc . "release/winscw/udeb/Smoketest_Timew_Server.exe", "temp/smoketest/winscw_udeb/Smoketest_Timew_Server.exe"); |
|
38 copy($epoc . "release/winscw/udeb/SmokeTest_Utils.dll", "temp/smoketest/winscw_udeb/SmokeTest_Utils.dll"); |
|
39 |
|
40 system("7z a -tzip smoketest.zip ./temp/*"); |