common/tools/ats/smoketest/Group/smoketest.pl
author brendand
Mon, 02 Nov 2009 13:34:14 +0000
changeset 724 dc3b9f6bf48c
parent 719 d5603c08781b
child 726 da6b4fd2d1ca
permissions -rw-r--r--
updated smoketest plan to support both harnesses
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";
724
dc3b9f6bf48c updated smoketest plan to support both harnesses
brendand
parents: 719
diff changeset
    14
mkpath "temp/smoketest/general/TestFramework";
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");
136
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    34
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
    35
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
    36
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
    37
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
    38
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
    39
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
    40
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
    41
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
    42
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
    43
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
    44
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
    45
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
    46
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
    47
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
    48
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
    49
copy($epoc . "release/winscw/udeb/t_msgsmtpserver.exe",				"temp/smoketest/winscw_udeb/t_msgsmtpserver.exe");
136
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    50
724
dc3b9f6bf48c updated smoketest plan to support both harnesses
brendand
parents: 719
diff changeset
    51
copy($epoc . "release/winscw/udeb/ProfileSmokeTestModule.dll",      "temp/smoketest/winscw_udeb/ProfileSmokeTestModule.dll");
dc3b9f6bf48c updated smoketest plan to support both harnesses
brendand
parents: 719
diff changeset
    52
copy($epoc . "winscw/c/TestFramework/ProfileSmokeTestModule.cfg",   "temp/smoketest/general/TestFramework/ProfileSmokeTestModule.cfg");
dc3b9f6bf48c updated smoketest plan to support both harnesses
brendand
parents: 719
diff changeset
    53
136
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    54
system("7z a -tzip smoketest.zip ./temp/*");