common/tools/ats/smoketest/Group/smoketest.pl
author Maciej Seroka <maciejs@symbian.org>
Wed, 18 Nov 2009 10:25:32 +0000
changeset 775 c429f766ba6f
parent 759 862cab47b1ba
child 788 a8a37ca9cc04
permissions -rw-r--r--
Changed current baseline version for BC check.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
136
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     1
#!/usr/bin/perl
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     2
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     3
use strict;
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     4
use File::Copy;
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     5
use File::Path;
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     6
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     7
unlink "smoketest.zip";
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     8
rmtree "temp";
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
     9
mkpath "temp/smoketest/general";
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    10
mkpath "temp/smoketest/winscw_udeb";
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    11
mkpath "temp/smoketest/sms/general";
719
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    12
mkpath "temp/smoketest/emailmessage/general";
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    13
mkpath "temp/smoketest/emailsettings/general";
757
7ec1750944ef Test: Fixed up the app install smoke tests so that both now pass
brendand
parents: 749
diff changeset
    14
mkpath "temp/smoketest/appinstall/general";
136
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    15
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    16
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    17
copy("smoketest.xml",												"temp/test.xml");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    18
copy($epoc . "data/z/smoketest/smoketest_agenda.ini",				"temp/smoketest/general/smoketest_agenda.ini");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    19
copy($epoc . "data/z/smoketest/smoketest_agenda.script",			"temp/smoketest/general/smoketest_agenda.script");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    20
copy($epoc . "data/z/smoketest/smoketest_apploader.ini",			"temp/smoketest/general/smoketest_apploader.ini");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    21
copy($epoc . "data/z/smoketest/smoketest_apploader.script",			"temp/smoketest/general/smoketest_apploader.script");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    22
copy($epoc . "data/z/smoketest/smoketest_contacts.ini",				"temp/smoketest/general/smoketest_contacts.ini");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    23
copy($epoc . "data/z/smoketest/smoketest_contacts.script",			"temp/smoketest/general/smoketest_contacts.script");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    24
copy($epoc . "data/z/smoketest/smoketest_createsmsaccount.script",	"temp/smoketest/general/smoketest_createsmsaccount.script");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    25
copy($epoc . "data/z/smoketest/smoketest_mess.ini",					"temp/smoketest/general/smoketest_mess.ini");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    26
copy($epoc . "data/z/smoketest/smoketest_mess.script",				"temp/smoketest/general/smoketest_mess.script");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    27
copy($epoc . "data/z/smoketest/smoketest_phone.script",				"temp/smoketest/general/smoketest_phone.script");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    28
copy($epoc . "data/z/smoketest/smoketest_syncmlapp.script",			"temp/smoketest/general/smoketest_syncmlapp.script");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    29
copy($epoc . "data/z/smoketest/smoketest_system.script",			"temp/smoketest/general/smoketest_system.script");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    30
copy($epoc . "data/z/smoketest/smoketest_timew.ini",				"temp/smoketest/general/smoketest_timew.ini");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    31
copy($epoc . "data/z/smoketest/smoketest_timew.script",				"temp/smoketest/general/smoketest_timew.script");
719
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    32
copy($epoc . "data/z/smoketest/smoketest_email.ini",				"temp/smoketest/general/smoketest_email.ini");
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    33
copy($epoc . "data/z/smoketest/smoketest_email.script",				"temp/smoketest/general/smoketest_email.script");
748
e13acd883fbe Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 740
diff changeset
    34
copy($epoc . "data/z/smoketest/smoketest_lbs.ini",					"temp/smoketest/general/smoketest_lbs.ini");
e13acd883fbe Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 740
diff changeset
    35
copy($epoc . "data/z/smoketest/smoketest_lbs.script",				"temp/smoketest/general/smoketest_lbs.script");
136
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    36
copy($epoc . "data/z/smoketest/sms/message1.txt",					"temp/smoketest/sms/general/message1.txt");
719
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    37
copy($epoc . "data/z/smoketest/MachineName.txt",					"temp/smoketest/general/MachineName.txt");
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    38
copy($epoc . "data/z/smoketest/emailmessage/20KBody.txt",			"temp/smoketest/emailmessage/general/20KBody.txt");
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    39
copy($epoc . "data/z/smoketest/emailsettings/popsettings_test908.txt",	"temp/smoketest/emailsettings/general/popsettings_test908.txt");
136
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    40
copy($epoc . "release/winscw/udeb/SmokeTestSecureFSclient.dll",		"temp/smoketest/winscw_udeb/SmokeTestSecureFSclient.dll");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    41
copy($epoc . "release/winscw/udeb/SmokeTestSecureFSserver.exe",		"temp/smoketest/winscw_udeb/SmokeTestSecureFSserver.exe");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    42
copy($epoc . "release/winscw/udeb/Smoketest_Agenda_Server.exe",		"temp/smoketest/winscw_udeb/Smoketest_Agenda_Server.exe");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    43
copy($epoc . "release/winscw/udeb/smoketest_apploader.exe",			"temp/smoketest/winscw_udeb/smoketest_apploader.exe");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    44
copy($epoc . "release/winscw/udeb/Smoketest_Contacts_Server.exe",	"temp/smoketest/winscw_udeb/Smoketest_Contacts_Server.exe");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    45
copy($epoc . "release/winscw/udeb/Smoketest_Mess_Server.exe",		"temp/smoketest/winscw_udeb/Smoketest_Mess_Server.exe");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    46
copy($epoc . "release/winscw/udeb/Smoketest_System.exe",			"temp/smoketest/winscw_udeb/Smoketest_System.exe");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    47
copy($epoc . "release/winscw/udeb/Smoketest_Timew_Server.exe",		"temp/smoketest/winscw_udeb/Smoketest_Timew_Server.exe");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    48
copy($epoc . "release/winscw/udeb/SmokeTest_Utils.dll",				"temp/smoketest/winscw_udeb/SmokeTest_Utils.dll");
719
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    49
copy($epoc . "release/winscw/udeb/t_msgutilityserver.dll",			"temp/smoketest/winscw_udeb/t_msgutilityserver.dll");
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    50
copy($epoc . "release/winscw/udeb/t_msgpopserver.exe",				"temp/smoketest/winscw_udeb/t_msgpopserver.exe");
d5603c08781b Added smoketest for email
Maciej Seroka <maciejs@symbian.org>
parents: 136
diff changeset
    51
copy($epoc . "release/winscw/udeb/t_msgsmtpserver.exe",				"temp/smoketest/winscw_udeb/t_msgsmtpserver.exe");
748
e13acd883fbe Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 740
diff changeset
    52
copy($epoc . "release/winscw/udeb/lbstestutils.dll",				"temp/smoketest/winscw_udeb/lbstestutils.dll");
e13acd883fbe Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 740
diff changeset
    53
copy($epoc . "release/winscw/udeb/lbstestclient.dll",				"temp/smoketest/winscw_udeb/lbstestclient.dll");
e13acd883fbe Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 740
diff changeset
    54
copy($epoc . "release/winscw/udeb/lbstestchannel.dll",				"temp/smoketest/winscw_udeb/lbstestchannel.dll");
e13acd883fbe Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 740
diff changeset
    55
copy($epoc . "release/winscw/udeb/lbstestserver.exe",				"temp/smoketest/winscw_udeb/lbstestserver.exe");
e13acd883fbe Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 740
diff changeset
    56
copy($epoc . "release/winscw/udeb/ctlbsexeclient.exe",				"temp/smoketest/winscw_udeb/ctlbsexeclient.exe");
e13acd883fbe Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 740
diff changeset
    57
copy($epoc . "release/winscw/udeb/lbsclienttestserver.exe",			"temp/smoketest/winscw_udeb/lbsclienttestserver.exe");
136
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    58
724
dc3b9f6bf48c updated smoketest plan to support both harnesses
brendand
parents: 719
diff changeset
    59
copy($epoc . "release/winscw/udeb/ProfileSmokeTestModule.dll",      "temp/smoketest/winscw_udeb/ProfileSmokeTestModule.dll");
726
da6b4fd2d1ca export to 'smoketest' instead of 'testframework'
brendand
parents: 724
diff changeset
    60
copy($epoc . "winscw/c/smoketest/ProfileSmokeTestModule.cfg",       "temp/smoketest/general/ProfileSmokeTestModule.cfg");
740
cd5265e3bfd7 Test: Changes to test drop files to run AppInstall
brendand
parents: 729
diff changeset
    61
copy($epoc . "release/winscw/udeb/AppInstallSmokeTestModule.dll",   "temp/smoketest/winscw_udeb/AppInstallSmokeTestModule.dll");
cd5265e3bfd7 Test: Changes to test drop files to run AppInstall
brendand
parents: 729
diff changeset
    62
copy($epoc . "winscw/c/smoketest/AppInstallSmokeTestModule.cfg",    "temp/smoketest/general/AppInstallSmokeTestModule.cfg");
757
7ec1750944ef Test: Fixed up the app install smoke tests so that both now pass
brendand
parents: 749
diff changeset
    63
copy($epoc . "winscw/c/smoketest/appinstall/sistest_winscw.sisx",   "temp/smoketest/appinstall/general/sistest_winscw.sisx");
729
eaa8962bb979 Added smoketest for Notepad
Maciej Seroka <maciejs@symbian.org>
parents: 726
diff changeset
    64
copy($epoc . "release/winscw/udeb/TestNpdApi.dll",					"temp/smoketest/winscw_udeb/TestNpdApi.dll");
eaa8962bb979 Added smoketest for Notepad
Maciej Seroka <maciejs@symbian.org>
parents: 726
diff changeset
    65
copy($epoc . "data/c/smoketest/smoketest_notepad.cfg",				"temp/smoketest/general/smoketest_notepad.cfg");
eaa8962bb979 Added smoketest for Notepad
Maciej Seroka <maciejs@symbian.org>
parents: 726
diff changeset
    66
copy($epoc . "data/c/smoketest/ui_TestNpdApi.cfg",					"temp/smoketest/general/ui_TestNpdApi.cfg");
749
09c37dab59b4 Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 748
diff changeset
    67
copy($epoc . "release/winscw/udeb/testsdkskins.dll",				"temp/smoketest/winscw_udeb/testsdkskins.dll");
09c37dab59b4 Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 748
diff changeset
    68
copy($epoc . "data/c/smoketest/smoketest_uiresources.cfg",			"temp/smoketest/general/smoketest_uiresources.cfg");
09c37dab59b4 Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 748
diff changeset
    69
copy($epoc . "data/c/smoketest/ui_testsdkskinsu.cfg",				"temp/smoketest/general/ui_testsdkskinsu.cfg");
758
dd806856a8f6 Test: Input methods smoke tests added.
brendand
parents: 757
diff changeset
    70
copy($epoc . "release/winscw/udeb/InputMethodSmokeTestModule.dll",   "temp/smoketest/winscw_udeb/InputMethodSmokeTestModule.dll");
dd806856a8f6 Test: Input methods smoke tests added.
brendand
parents: 757
diff changeset
    71
copy($epoc . "winscw/c/smoketest/InputMethodSmokeTestModule.cfg",    "temp/smoketest/general/InputMethodSmokeTestModule.cfg");
756
736214c0060b Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 749
diff changeset
    72
copy($epoc . "release/winscw/udeb/IMApiTest.dll",					"temp/smoketest/winscw_udeb/IMApiTest.dll");
736214c0060b Added new smoketest
Maciej Seroka <maciejs@symbian.org>
parents: 749
diff changeset
    73
copy($epoc . "data/c/smoketest/imapitest.ini",						"temp/smoketest/general/imapitest.ini");
724
dc3b9f6bf48c updated smoketest plan to support both harnesses
brendand
parents: 719
diff changeset
    74
136
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    75
system("7z a -tzip smoketest.zip ./temp/*");