common/tools/ats/smoketest/Group/smoketest.pl
author Brendan Donegan brendand@symbian.org
Mon, 28 Sep 2009 15:15:11 +0100
changeset 524 7a89f7c75cd2
parent 136 44a878dcb782
child 719 d5603c08781b
permissions -rw-r--r--
merge
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";
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    12
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    13
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    14
copy("smoketest.xml",												"temp/test.xml");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    15
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
    16
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
    17
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
    18
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
    19
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
    20
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
    21
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
    22
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
    23
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
    24
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
    25
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
    26
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
    27
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
    28
copy($epoc . "data/z/smoketest/smoketest_timew.script",				"temp/smoketest/general/smoketest_timew.script");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    29
copy($epoc . "data/z/smoketest/sms/message1.txt",					"temp/smoketest/sms/general/message1.txt");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    30
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
    31
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
    32
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
    33
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
    34
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
    35
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
    36
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
    37
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
    38
copy($epoc . "release/winscw/udeb/SmokeTest_Utils.dll",				"temp/smoketest/winscw_udeb/SmokeTest_Utils.dll");
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    39
44a878dcb782 Add perl script to build test zip
Louis Henry Nayegon <louisn@symbian.org>
parents:
diff changeset
    40
system("7z a -tzip smoketest.zip ./temp/*");