common/tools/ats/bctest/browser/browser.pl
author Dario Sestito <darios@symbian.org>
Mon, 07 Jun 2010 11:00:51 +0100
changeset 1059 41e4f69f652f
parent 552 8018a074606b
permissions -rw-r--r--
Fix: wrong name for diamonds_envinfo file
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
440
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     1
#!/usr/bin/perl
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     3
# This component and the accompanying materials are made available
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     5
# which accompanies this distribution, and is available
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     7
#
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     8
# Initial Contributors:
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    10
#
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    11
# Contributors:
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    12
# Brendan Donegan <brendand@symbian.org>
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    13
#
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    14
# Description:
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    15
# Script to build ATS test drop for BC Profiles Engine tests
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    16
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    17
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    18
use strict;
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    19
use File::Copy;
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    20
use File::Path;
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    21
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    22
unlink "browser.zip";
525
5fdd56755c8a put in rmtree to cleanup properly
Brendan Donegan brendand@symbian.org
parents: 458
diff changeset
    23
rmtree "temp";
440
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    24
mkpath "temp/bcbrowser/winscw_udeb";
458
ef8c69f2539d Add http download manager tests
Louis Henry Nayegon <louisn@symbian.org>
parents: 440
diff changeset
    25
mkpath "temp/bcbrowser/general/testframework";
440
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    26
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    27
my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    28
copy("browser.xml", "temp/test.xml");
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    29
552
8018a074606b removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents: 525
diff changeset
    30
copy($epoc . "release/winscw/udeb/favouritesbctest.dll",		"temp/bcbrowser/winscw_udeb/favouritesbctest.dll") or die "failed : $!";
8018a074606b removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents: 525
diff changeset
    31
copy($epoc . "release/winscw/udeb/downloadmgrbctest.dll",		"temp/bcbrowser/winscw_udeb/downloadmgrbctest.dll") or die "failed : $!";
440
097b220a49d0 adding browser tests
Brendan Donegan brendand@symbian.org
parents:
diff changeset
    32
552
8018a074606b removed 'NAME' property from test plans
Brendan Donegan brendand@symbian.org
parents: 525
diff changeset
    33
copy($epoc . "winscw/c/testframework/testframework_dwmgr.ini",	"temp/bcbrowser/general/testframework/testframework_dwmgr.ini") or die "failed : $!";
458
ef8c69f2539d Add http download manager tests
Louis Henry Nayegon <louisn@symbian.org>
parents: 440
diff changeset
    34
ef8c69f2539d Add http download manager tests
Louis Henry Nayegon <louisn@symbian.org>
parents: 440
diff changeset
    35
system("7z a -tzip browser.zip ./temp/*");