diff -r be27ed110b50 -r e1eecf4d390d sbsv2/raptor/test/smoke_suite/zip_export_plus_clean.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/zip_export_plus_clean.py Mon Nov 16 09:46:46 2009 +0000 @@ -0,0 +1,63 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +from raptor_tests import SmokeTest, AntiTargetSmokeTest, ReplaceEnvs +import re + +def run(): + markerfile = re.sub("(\\\\|\/|:|;| )", "_", + ReplaceEnvs("$(SBS_HOME)_test_smoke_suite_test_resources_simple_zip_export_archive.zip$(EPOCROOT)_epoc32_testunzip.unzipped")) + + result = SmokeTest.PASS + + t = SmokeTest() + t.id = "0024a" + t.name = "zip_export" + t.command = "sbs -b smoke_suite/test_resources/simple_zip_export/bld.inf" + t.targets = [ + "$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt", + "$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt", + "$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt", + "$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt", + "$(EPOCROOT)/epoc32/build/" + markerfile + ] + t.run() + if t.result == SmokeTest.FAIL: + result = SmokeTest.FAIL + + + t = AntiTargetSmokeTest() + t.id = "0024b" + t.name = "zip_export_reallyclean" + t.command = "sbs -b smoke_suite/test_resources/simple_zip_export/bld.inf " \ + + "REALLYCLEAN" + t.antitargets = [ + "$(EPOCROOT)/epoc32/testunzip/archive/archivefile1.txt", + "$(EPOCROOT)/epoc32/testunzip/archive/archivefile2.txt", + "$(EPOCROOT)/epoc32/testunzip/archive/archivefile3.txt", + "$(EPOCROOT)/epoc32/testunzip/archive/archivefile4.txt", + "$(EPOCROOT)/epoc32/build/" + markerfile + ] + t.run() + if t.result == SmokeTest.FAIL: + result = SmokeTest.FAIL + + + t.id = "24" + t.name = "zip_export_plus_clean" + t.result = result + t.print_result() + return t