Exemplo n.º 1
0
def run():
    t = SmokeTest()
    t.id = "17"
    t.name = "armv7_asmtest"
    t.command = "sbs -b smoke_suite/test_resources/asmtest/bld.inf -c armv7"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv7/udeb/asmtest.exe",
        "$(EPOCROOT)/epoc32/release/armv7/udeb/asmtest.exe.sym",
        "$(EPOCROOT)/epoc32/release/armv7/udeb/asmtest.exe.map",
        "$(EPOCROOT)/epoc32/release/armv7/urel/asmtest.exe",
        "$(EPOCROOT)/epoc32/release/armv7/urel/asmtest.exe.sym",
        "$(EPOCROOT)/epoc32/release/armv7/urel/asmtest.exe.map"
    ]
    t.addbuildtargets('smoke_suite/test_resources/asmtest/bld.inf', [
        "asmtest_/armv7/udeb/asmtest_udeb_objects.via",
        "asmtest_/armv7/udeb/testassembler.o.d",
        "asmtest_/armv7/udeb/testassembler.o",
        "asmtest_/armv7/udeb/testassembler.o",
        "asmtest_/armv7/udeb/testcia_.o", "asmtest_/armv7/udeb/testcia_.cpp",
        "asmtest_/armv7/udeb/testcia_.pre",
        "asmtest_/armv7/udeb/testcia_.pre.d",
        "asmtest_/armv7/udeb/testasm.o.d", "asmtest_/armv7/udeb/testasm.o",
        "asmtest_/armv7/urel/asmtest_urel_objects.via",
        "asmtest_/armv7/urel/testassembler.o.d",
        "asmtest_/armv7/urel/testassembler.o",
        "asmtest_/armv7/urel/testassembler.o",
        "asmtest_/armv7/urel/testcia_.o", "asmtest_/armv7/urel/testcia_.cpp",
        "asmtest_/armv7/urel/testcia_.pre",
        "asmtest_/armv7/urel/testcia_.pre.d",
        "asmtest_/armv7/urel/testasm.o.d", "asmtest_/armv7/urel/testasm.o"
    ])
    t.run()
    return t
def run():
	t = SmokeTest()
	t.id = "78"
	t.name = "dll_winscw_win32resource"
	t.description = """Test the construction of a custom WINSCW DLL containing Windows resources specified by win32_resource."""
	t.command = "sbs -b smoke_suite/test_resources/simple_dll/win32resource/bld.inf -c winscw"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticdll.lib",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticdll.dll",
		"$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll",
		"$(EPOCROOT)/epoc32/release/winscw/urel/createstaticdll.dll.map"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_dll/win32resource/bld.inf', [
		"createstaticdll_dll/winscw/udeb/CreateStaticDLL.o",
		"createstaticdll_dll/winscw/udeb/createstaticdll.UID.CPP",
		"createstaticdll_dll/winscw/udeb/createstaticdll_UID_.o",
		"createstaticdll_dll/winscw/udeb/gui.res",
		"createstaticdll_dll/winscw/udeb/gui.res.d",
		"createstaticdll_dll/winscw/urel/CreateStaticDLL.o",
		"createstaticdll_dll/winscw/urel/createstaticdll.UID.CPP",
		"createstaticdll_dll/winscw/urel/createstaticdll_UID_.o",
		"createstaticdll_dll/winscw/urel/gui.res",
		"createstaticdll_dll/winscw/urel/gui.res.d",
	])
	t.run()
	return t
Exemplo n.º 3
0
def run():
	t = SmokeTest()
	t.id = "0096"
	t.name = "kdll_armv5"
	t.usebash = 1

	t.command = "sbs -b smoke_suite/test_resources/simple_kdll/bld.inf -c armv5_urel -f-"

	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv5/urel/test_kdll.dll",
		"$(EPOCROOT)/epoc32/release/armv5/urel/test_kdll.dll.map",
		"$(EPOCROOT)/epoc32/release/armv5/urel/test_kdll.dll.sym"
		]

	t.mustmatch = [
		r".*\bksrt\d_\d\.lib\b.*",
		r".*\bekll\.lib\b.*"
		]

	t.mustnotmatch = [
		r".*usrt.*",
		r".*scppnwdl.*"
		]

	t.run()
	return t
Exemplo n.º 4
0
def run():
    t = SmokeTest()
    t.name = "dll_x86"
    t.description = "Build a basic DLL TARGETTYPE for x86"
    t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c x86"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll",
        "$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll.map",
        "$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll",
        "$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll.map",
        "$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll.lib",
        "$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll{000a0000}.lib"
    ]
    t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [
        "createstaticdll_dll/x86/udeb/CreateStaticDLL.o",
        "createstaticdll_dll/x86/udeb/CreateStaticDLL.o.d",
        "createstaticdll_dll/x86/urel/CreateStaticDLL.o",
        "createstaticdll_dll/x86/urel/CreateStaticDLL.o.d",
        "createstaticdll_dll/x86/udeb/createstaticdll_udeb_objects.via",
        "createstaticdll_dll/x86/urel/createstaticdll_urel_objects.via",
        [
            "createstaticdll_dll/x86/udeb/createstaticdll.prep",
            "createstaticdll_dll/x86/urel/createstaticdll.prep"
        ],
        [
            "createstaticdll_dll/x86/udeb/createstaticdll.lib.exp",
            "createstaticdll_dll/x86/urel/createstaticdll.lib.exp"
        ]
    ])

    t.run("windows")
    return t
Exemplo n.º 5
0
def run():
    t = SmokeTest()
    t.name = "dll_armv5_smp"
    t.id = "63"
    t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c " + \
      "armv5 -c armv5.smp"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll",
        "$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll",
        "$(EPOCROOT)/epoc32/release/armv5smp/udeb/createstaticdll.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5smp/urel/createstaticdll.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5smp/udeb/createstaticdll.dll",
        "$(EPOCROOT)/epoc32/release/armv5smp/urel/createstaticdll.dll"
    ]
    t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [
        "createstaticdll_dll/armv5/udeb/CreateStaticDLL.o",
        "createstaticdll_dll/armv5/urel/CreateStaticDLL.o",
        "createstaticdll_dll/armv5smp/udeb/CreateStaticDLL.o",
        "createstaticdll_dll/armv5smp/urel/CreateStaticDLL.o"
    ])
    t.run()
    return t
Exemplo n.º 6
0
def run():
	t = SmokeTest()
	t.name = "preprocess"
	t.usebash = True
	t.description = "Exercise the global PREPROCESS target"
	
	# Build component normally first for one config - resource generate  .rsg files are #included in "straight" source
	# The PREPROCESS target does not resolve resource dependencies, but the test component is selected on the basis
	# that it will support the generation of resource .pre files in the future.

	addConfigs = ""
	addTargets = []
	if t.onWindows:
		addConfigs = "-c x86_udeb"
		addTargets = [
			"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.x86.udeb.helloworld.exe.pre",
			"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.x86.udeb.helloworld.exe.pre",
			"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.x86.udeb.helloworld.exe.pre",
			"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.x86.udeb.helloworld.exe.pre",
			"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.x86.udeb.helloworld.exe.pre"
			]

	t.command = """
		sbs -b smoke_suite/test_resources/simple_gui/Bld.inf -c armv5_urel &&
		sbs -b smoke_suite/test_resources/simple_gui/Bld.inf -c armv5 -c winscw_urel -c armv7_udeb -c arm.v7.urel.gcce4_4_1 {0} preprocess
		""".format(addConfigs)
	
	t.targets = [
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.armv5.udeb.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.armv5.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.armv5.udeb.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.armv5.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.armv5.udeb.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.armv5.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.armv5.udeb.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.armv5.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.armv5.udeb.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.armv5.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.winscw.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.winscw.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.winscw.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.winscw.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.winscw.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.armv7.udeb.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.armv7.udeb.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.armv7.udeb.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.armv7.udeb.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.armv7.udeb.helloworld.exe.pre",		
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Application.cpp.armv7.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppUi.cpp.armv7.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_AppView.cpp.armv7.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Document.cpp.armv7.urel.helloworld.exe.pre",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple_gui/HelloWorld_Main.cpp.armv7.urel.helloworld.exe.pre"
		] + addTargets

	t.run()
	
	# Explicit clean-up due to the source tree nature of the generated files
	t.clean()
	return t
Exemplo n.º 7
0
def run():
    t = SmokeTest()
    t.id = "22"
    t.name = "defs_armv7"
    t.command = "sbs -b smoke_suite/test_resources/defs/group/bld.inf -c armv7"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv7/udeb/deftest.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv7/urel/deftest.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5/lib/deftest{000a0000}.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/deftest.dso",
        "$(EPOCROOT)/epoc32/release/armv7/udeb/deftest.dll",
        "$(EPOCROOT)/epoc32/release/armv7/udeb/deftest.dll.map",
        "$(EPOCROOT)/epoc32/release/armv7/urel/deftest.dll",
        "$(EPOCROOT)/epoc32/release/armv7/urel/deftest.dll.map",
    ]
    t.addbuildtargets(
        "smoke_suite/test_resources/defs/group/bld.inf",
        [
            "deftest_/armv7/udeb/deftest_udeb_objects.via",
            "deftest_/armv7/udeb/test.o",
            "deftest_/armv7/urel/deftest_urel_objects.via",
            "deftest_/armv7/urel/test.o",
        ],
    )
    t.run()
    return t
Exemplo n.º 8
0
def run():
	t = SmokeTest()
	t.name = "dll_armv5_smp"
	t.id = "63"
	t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c " + \
			"armv5 -c armv5.smp"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll.sym",
		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll.sym",
		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso",
		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso",
		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll.dll",
		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll.dll",
		"$(EPOCROOT)/epoc32/release/armv5smp/udeb/createstaticdll.dll.sym",
		"$(EPOCROOT)/epoc32/release/armv5smp/urel/createstaticdll.dll.sym",
		"$(EPOCROOT)/epoc32/release/armv5smp/udeb/createstaticdll.dll",
		"$(EPOCROOT)/epoc32/release/armv5smp/urel/createstaticdll.dll"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [
		"createstaticdll_dll/armv5/udeb/CreateStaticDLL.o",
		"createstaticdll_dll/armv5/urel/CreateStaticDLL.o",
		"createstaticdll_dll/armv5smp/udeb/CreateStaticDLL.o",
		"createstaticdll_dll/armv5smp/urel/CreateStaticDLL.o"
	])
	t.run()
	return t
Exemplo n.º 9
0
def run():
	t = SmokeTest()
	t.name = "dll_x86"
	t.description = "Build a basic DLL TARGETTYPE for x86"
	t.command = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf -c x86"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll",
		"$(EPOCROOT)/epoc32/release/x86/udeb/createstaticdll.dll.map",
		"$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll",
		"$(EPOCROOT)/epoc32/release/x86/urel/createstaticdll.dll.map",
		"$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll.lib",
		"$(EPOCROOT)/epoc32/release/x86/lib/createstaticdll{000a0000}.lib"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_dll/bld.inf', [
		"createstaticdll_dll/x86/udeb/CreateStaticDLL.o",
		"createstaticdll_dll/x86/udeb/CreateStaticDLL.o.d",
		"createstaticdll_dll/x86/urel/CreateStaticDLL.o",
		"createstaticdll_dll/x86/urel/CreateStaticDLL.o.d",
		"createstaticdll_dll/x86/udeb/createstaticdll_udeb_objects.via",
		"createstaticdll_dll/x86/urel/createstaticdll_urel_objects.via",	
		["createstaticdll_dll/x86/udeb/createstaticdll.prep",
		"createstaticdll_dll/x86/urel/createstaticdll.prep"],	
		["createstaticdll_dll/x86/udeb/createstaticdll.lib.exp",
		"createstaticdll_dll/x86/urel/createstaticdll.lib.exp"]	
		])
	
	t.run("windows")
	return t
Exemplo n.º 10
0
def run():
    t = SmokeTest()
    t.id = "50"
    t.name = "sysdef_dud"
    t.description = "Test an invalid system_definition.xml file"
    t.command = "sbs -s " + "smoke_suite/test_resources/sysdef/system_definition_dud.xml"
    t.targets = []
    t.errors = 1
    t.returncode = 1
    t.run()
    return t
Exemplo n.º 11
0
def run():
	t = SmokeTest()
	t.name = "filter_html_unit"

	tests = unittest.makeSuite(TestFilterHtml)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
Exemplo n.º 12
0
def run():
	t = SmokeTest()
	t.name = "raptor_api_unit"

	tests = unittest.makeSuite(TestRaptorApi)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
Exemplo n.º 13
0
def run():
    t = SmokeTest()
    t.name = "raptor_api_unit"

    tests = unittest.makeSuite(TestRaptorApi)
    result = unittest.TextTestRunner(verbosity=2).run(tests)

    if result.wasSuccessful():
        t.result = SmokeTest.PASS
    else:
        t.result = SmokeTest.FAIL

    return t
Exemplo n.º 14
0
def run():
    t = SmokeTest()
    t.id = "36"
    t.name = "implib_winscw"
    t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \
      + "winscw LIBRARY"
    t.targets = ["$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib"]
    t.addbuildtargets('smoke_suite/test_resources/simple_implib/bld.inf', [[
        "simple_implib_lib/winscw/udeb/simple_implib.prep.def",
        "simple_implib_lib/winscw/urel/simple_implib.prep.def"
    ]])
    t.run()
    return t
Exemplo n.º 15
0
def run():
	t = SmokeTest()
	t.name = "filter_html_unit"

	tests = unittest.makeSuite(TestFilterHtml)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
Exemplo n.º 16
0
def run():
    t = SmokeTest()
    t.name = "armv5_stringtable"
    t.command = "sbs -b smoke_suite/test_resources/simple_stringtable/bld.inf -c armv5"
    t.targets = ["$(EPOCROOT)/epoc32/include/strconsts.h"]
    t.addbuildtargets(
        'smoke_suite/test_resources/simple_stringtable/bld.inf',
        ["stringtabletest_/strconsts.h", "stringtabletest_/strconsts.cpp"])
    t.run()
    return t
def run():
	t = SmokeTest()
	t.id = "80"
	t.name = "sbs_with_nonexisting_bldinf"
	t.description = "Test if sbs generates warning if invoked without bld.inf specified i.e. using default bld.inf which doesn't exist"
	t.command = "mkdir ${EPOCROOT}/emptydir; rm ${EPOCROOT}/emptydir/*;  cd ${EPOCROOT}/emptydir; sbs -f ${SBSLOGFILE} -m {SBSMAKEFILE}"
	t.usebash = True
	t.warnings = 1 
	t.run()
	return t
Exemplo n.º 18
0
def run():
	t = SmokeTest()
	t.id = "999"
	t.name = "mmpparser_unit"

	tests = unittest.makeSuite(TestMMPParser)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
Exemplo n.º 19
0
def run():
    t = SmokeTest()
    t.id = "31"
    t.name = "listing"
    t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
      "-c winscw -k listing"
    t.targets = [
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.WINSCW.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.urel.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.udeb.test.exe.lst",
        "$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.WINSCW.lst"
    ]
    t.run()
    return t
Exemplo n.º 20
0
def run():
	t = SmokeTest()
	t.id = "999"
	t.name = "generic_path_unit"

	tests = unittest.makeSuite(TestGenericPaths)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
Exemplo n.º 21
0
def run():
	t = SmokeTest()
	t.id = "46"
	t.name = "wrong_projectname"
	t.description = "Test -p with wrong project name"
	t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf " \
			+ "-p wrongname1.mmp -p wrongname2.mmp"
	t.targets = []
	t.warnings = 2 # One for armv5, one for winscw.
	t.run()
	return t
def run():
    t = SmokeTest()
    t.id = "65"
    t.name = "implib_armv5_with_armv5_smp"
    t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \
      + "armv5 -c armv5.smp LIBRARY"
    # ABIv1 .lib files are not generated on Linux
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso"
    ]
    t.run()

    t.print_result()
    return t
Exemplo n.º 23
0
def run():
    t = SmokeTest()
    t.id = "3"
    t.name = "exe_armv7"
    t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv7"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe",
        "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe.map",
        "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe",
        "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe.map"
    ]
    t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf',
                      ["test_/armv7/udeb/test.o", "test_/armv7/urel/test.o"])
    t.run()
    return t
Exemplo n.º 24
0
def run():
	t = SmokeTest()
	t.name = "implib_x86"
	t.description = "Build a basic IMPLIB TARGETTYPE for x86"
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c x86"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/x86/lib/simple_implib.lib"
		]
	t.addbuildtargets("smoke_suite/test_resources/simple_implib/bld.inf", [	
		["simple_implib_lib/x86/udeb/simple_implib.prep",
		"simple_implib_lib/x86/urel/simple_implib.prep"],	
		])
	
	t.run("windows")
	return t
Exemplo n.º 25
0
def run():
    t = SmokeTest()
    t.id = "52"
    t.name = "tools"
    t.command = "sbs -b smoke_suite/test_resources/tools/bld.inf -c tools"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/tools/deb/tool_exe.bsc",
        "$(EPOCROOT)/epoc32/release/tools/deb/tool_exe.exe",
        "$(EPOCROOT)/epoc32/release/tools/deb/tool_exe.ilk",
        "$(EPOCROOT)/epoc32/release/tools/deb/tool_lib1.bsc",
        "$(EPOCROOT)/epoc32/release/tools/deb/tool_lib1.lib",
        "$(EPOCROOT)/epoc32/release/tools/deb/tool_lib2.bsc",
        "$(EPOCROOT)/epoc32/release/tools/deb/tool_lib2.lib",
        "$(EPOCROOT)/epoc32/release/tools/rel/tool_exe.exe",
        "$(EPOCROOT)/epoc32/release/tools/rel/tool_lib1.lib",
        "$(EPOCROOT)/epoc32/release/tools/rel/tool_lib2.lib",
        "$(EPOCROOT)/epoc32/tools/tool_exe.exe",
        "$(EPOCROOT)/epoc32/tools/tool_lib1.lib",
        "$(EPOCROOT)/epoc32/tools/tool_lib2.lib"
    ]
    t.addbuildtargets('smoke_suite/test_resources/tools/bld.inf', [
        "tool_exe_exe/tools/deb/tool_exe_a.obj",
        "tool_exe_exe/tools/deb/tool_exe_a.sbr",
        "tool_exe_exe/tools/deb/tool_exe_b.obj",
        "tool_exe_exe/tools/deb/tool_exe_b.sbr",
        "tool_exe_exe/tools/rel/tool_exe_a.obj",
        "tool_exe_exe/tools/rel/tool_exe_a.sbr",
        "tool_exe_exe/tools/rel/tool_exe_b.obj",
        "tool_exe_exe/tools/rel/tool_exe_b.sbr",
        "tool_lib1_lib/tools/deb/tool_lib1_a.obj",
        "tool_lib1_lib/tools/deb/tool_lib1_a.sbr",
        "tool_lib1_lib/tools/deb/tool_lib1_b.obj",
        "tool_lib1_lib/tools/deb/tool_lib1_b.sbr",
        "tool_lib1_lib/tools/rel/tool_lib1_a.obj",
        "tool_lib1_lib/tools/rel/tool_lib1_a.sbr",
        "tool_lib1_lib/tools/rel/tool_lib1_b.obj",
        "tool_lib1_lib/tools/rel/tool_lib1_b.sbr",
        "tool_lib2_lib/tools/deb/tool_lib2_a.obj",
        "tool_lib2_lib/tools/deb/tool_lib2_a.sbr",
        "tool_lib2_lib/tools/deb/tool_lib2_b.obj",
        "tool_lib2_lib/tools/deb/tool_lib2_b.sbr",
        "tool_lib2_lib/tools/rel/tool_lib2_a.obj",
        "tool_lib2_lib/tools/rel/tool_lib2_a.sbr",
        "tool_lib2_lib/tools/rel/tool_lib2_b.obj",
        "tool_lib2_lib/tools/rel/tool_lib2_b.sbr",
    ])
    t.run("windows")  # no MSVC compiler on Linux
    return t
Exemplo n.º 26
0
def run():
	t = SmokeTest()
	t.name = "cli_makevar_overide"
	t.id = "0117"
	t.description = "Attempt to override a makefile var at the command line."
	t.usebash = True
	
	t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf REALLYCLEAN -m ${SBSMAKEFILE} -f ${SBSLOGFILE} HOSTPLATFORM_DIR=unlikelydir"  
	
	t.mustmatch = ["sbs: warning: CLEAN, CLEANEXPORT and a REALLYCLEAN should not be combined with other targets as the result is unpredictable"]
	
	t.warnings = 1
	t.run()
	
	return t
	
Exemplo n.º 27
0
def run():
    t = SmokeTest()
    t.id = "4"
    t.name = "commandfile"
    t.command = "sbs " \
      + "--command=smoke_suite/test_resources/simple/commands-v7.txt " \
      + "-c armv7_udeb"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe",
        "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe.map",
        "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe",
        "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe.map"
    ]
    t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf',
                      ["test_/armv7/udeb/test.o", "test_/armv7/urel/test.o"])
    t.run()
    return t
Exemplo n.º 28
0
def run():
	t = SmokeTest()
	t.name = "exe_x86"
	t.description = "Build a basic EXE TARGETTYPE for x86"
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c x86"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/x86/udeb/test.exe",
		"$(EPOCROOT)/epoc32/release/x86/udeb/test.exe.map",
		"$(EPOCROOT)/epoc32/release/x86/urel/test.exe",
		"$(EPOCROOT)/epoc32/release/x86/urel/test.exe.map"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [
		"test_/x86/udeb/test.o",
		"test_/x86/udeb/test.o.d",
		"test_/x86/udeb/test1.o",
		"test_/x86/udeb/test1.o.d",
		"test_/x86/udeb/test2.o",
		"test_/x86/udeb/test2.o.d",
		"test_/x86/udeb/test3.o",
		"test_/x86/udeb/test3.o.d",
		"test_/x86/udeb/test4.o",
		"test_/x86/udeb/test4.o.d",
		"test_/x86/udeb/test5.o",
		"test_/x86/udeb/test5.o.d",
		"test_/x86/udeb/test6.o",
		"test_/x86/udeb/test6.o.d",
		"test_/x86/urel/test.o",
		"test_/x86/urel/test.o.d",
		"test_/x86/urel/test1.o",
		"test_/x86/urel/test1.o.d",
		"test_/x86/urel/test2.o",
		"test_/x86/urel/test2.o.d",
		"test_/x86/urel/test3.o",
		"test_/x86/urel/test3.o.d",
		"test_/x86/urel/test4.o",
		"test_/x86/urel/test4.o.d",
		"test_/x86/urel/test5.o",
		"test_/x86/urel/test5.o.d",
		"test_/x86/urel/test6.o",
		"test_/x86/urel/test6.o.d",
		"test_/x86/udeb/test_udeb_objects.via",
		"test_/x86/urel/test_urel_objects.via"
		])
	
	t.run("windows")
	return t
Exemplo n.º 29
0
def run():
    t = SmokeTest()
    t.id = "81"
    t.name = "export_multi"
    t.description = "Test that the export section only gets included once even if all platforms are selected (see DPDEF138366)"
    # Note I'm not including 'tools' to avoid a dependency on MSVC6
    # Given this test will not be necessary once the export section is removed from the make files anyway, I'm not too worried.
    t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf -c winscw -c armv5 -c tools2 -c armv7 -c gccxml EXPORT"
    t.mustnotmatch = [
        ".*warning: overriding commands for target.*",
        ".*warning: ignoring old commands for target.*"
    ]
    t.run()
    return t
Exemplo n.º 30
0
def run():
	t = SmokeTest()
	t.id = "31"
	t.name = "listing"
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 " + \
			"-c winscw -k listing"
	t.targets = [
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test1.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test2.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test3.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test4.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test5.WINSCW.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.urel.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.armv5.udeb.test.exe.lst",
		"$(SBS_HOME)/test/smoke_suite/test_resources/simple/test6.WINSCW.lst"
		]
	t.run()
	return t
Exemplo n.º 31
0
def run():
	t = SmokeTest()
	t.name = "missing_keywords"

	t.command = "sbs -b smoke_suite/test_resources/invalid_metadata/bld.inf -c armv5"

	t.mustmatch_singleline = [
		"sbs: error: required keyword TARGET is missing"
		]

	t.errors = 1
	t.returncode = 1
	t.run()
	return t
Exemplo n.º 32
0
def run():
	t = SmokeTest()
	t.id = "88"
	t.name = "exe_checksource"
	t.description = "Build a exe with a checksource filter"
	t.usebash = True
	
	bldinf = "smoke_suite/test_resources/checksource/helloworld/bld.inf"
	cmd1 = "sbs -b %s REALLYCLEAN -m ${SBSMAKEFILE} -f ${SBSLOGFILE}" % bldinf
	cmd2 = "sbs -b %s --filter=FilterCheckSource -m ${SBSMAKEFILE} -f ${SBSLOGFILE}" % bldinf
	cmd3 = "grep -i '.*checksource errors found.*' ${SBSLOGFILE}"
	t.command = cmd1 + " && " + cmd2 + " && " + cmd3

	t.mustmatch_singleline = ["[1-9] checksource errors found"]
	
	t.returncode = 1
	t.run("windows")
	return t
Exemplo n.º 33
0
def run():
	t = SmokeTest()
	t.id = "36"
	t.name = "implib_winscw"
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \
			+ "winscw LIBRARY"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/winscw/udeb/simple_implib.lib"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_implib/bld.inf', [
		["simple_implib_lib/winscw/udeb/simple_implib.prep.def",
		"simple_implib_lib/winscw/urel/simple_implib.prep.def"]
	])
	t.run()
	return t
def run():
	t = SmokeTest()
	t.id = "65"
	t.name = "implib_armv5_with_armv5_smp"
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/bld.inf -c " \
			+ "armv5 -c armv5.smp LIBRARY"
	# ABIv1 .lib files are not generated on Linux
	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib.dso",
		"$(EPOCROOT)/epoc32/release/armv5/lib/simple_implib{000a0000}.dso"
		]
	t.run()
	
	t.print_result()	
	return t
Exemplo n.º 35
0
def run():
	t = SmokeTest()
	t.id = "27"
	t.name = "armv7_stringtable"
	t.command = "sbs -b smoke_suite/test_resources/simple_stringtable/bld.inf" \
			+ " -c armv7 EXPORT"
	t.targets = [
		"$(EPOCROOT)/epoc32/include/strconsts.h"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_stringtable/bld.inf', [
		"stringtabletest_/strconsts.h",
		"stringtabletest_/strconsts.cpp"
	])
	t.run()
	return t
Exemplo n.º 36
0
def run():
    t = SmokeTest()
    t.name = "exe_checksource"
    t.description = "Build a exe with a checksource filter"
    t.usebash = True

    bldinf = "smoke_suite/test_resources/checksource/helloworld/bld.inf"
    cmd1 = "sbs -b {0} REALLYCLEAN -m ${{SBSMAKEFILE}} -f ${{SBSLOGFILE}}".format(
        bldinf)
    cmd2 = "sbs -b {0} --filter=FilterCheckSource -m ${{SBSMAKEFILE}} -f ${{SBSLOGFILE}}".format(
        bldinf)
    cmd3 = "grep -i '.*checksource errors found.*' ${SBSLOGFILE}"
    t.command = cmd1 + " && " + cmd2 + " && " + cmd3

    t.mustmatch_singleline = ["[1-9] checksource errors found"]

    t.returncode = 1
    t.run("windows")
    return t
Exemplo n.º 37
0
def run():	
	t = SmokeTest()
	t.id = "52"
	t.name = "tools"
	t.command = "sbs -b smoke_suite/test_resources/tools/bld.inf -c tools"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/tools/deb/tool_exe.bsc",
		"$(EPOCROOT)/epoc32/release/tools/deb/tool_exe.exe",
		"$(EPOCROOT)/epoc32/release/tools/deb/tool_exe.ilk",
		"$(EPOCROOT)/epoc32/release/tools/deb/tool_lib1.bsc",
		"$(EPOCROOT)/epoc32/release/tools/deb/tool_lib1.lib",
		"$(EPOCROOT)/epoc32/release/tools/deb/tool_lib2.bsc",
		"$(EPOCROOT)/epoc32/release/tools/deb/tool_lib2.lib",
		"$(EPOCROOT)/epoc32/release/tools/rel/tool_exe.exe",
		"$(EPOCROOT)/epoc32/release/tools/rel/tool_lib1.lib",
		"$(EPOCROOT)/epoc32/release/tools/rel/tool_lib2.lib",
		"$(EPOCROOT)/epoc32/tools/tool_exe.exe",
		"$(EPOCROOT)/epoc32/tools/tool_lib1.lib",
		"$(EPOCROOT)/epoc32/tools/tool_lib2.lib"
		]
	t.addbuildtargets('smoke_suite/test_resources/tools/bld.inf', [
		"tool_exe_exe/tools/deb/tool_exe_a.obj",
		"tool_exe_exe/tools/deb/tool_exe_a.sbr",
		"tool_exe_exe/tools/deb/tool_exe_b.obj",
		"tool_exe_exe/tools/deb/tool_exe_b.sbr",
		"tool_exe_exe/tools/rel/tool_exe_a.obj",
		"tool_exe_exe/tools/rel/tool_exe_a.sbr",
		"tool_exe_exe/tools/rel/tool_exe_b.obj",
		"tool_exe_exe/tools/rel/tool_exe_b.sbr",
		"tool_lib1_lib/tools/deb/tool_lib1_a.obj",
		"tool_lib1_lib/tools/deb/tool_lib1_a.sbr",
		"tool_lib1_lib/tools/deb/tool_lib1_b.obj",
		"tool_lib1_lib/tools/deb/tool_lib1_b.sbr",
		"tool_lib1_lib/tools/rel/tool_lib1_a.obj",
		"tool_lib1_lib/tools/rel/tool_lib1_a.sbr",
		"tool_lib1_lib/tools/rel/tool_lib1_b.obj",
		"tool_lib1_lib/tools/rel/tool_lib1_b.sbr",
		"tool_lib2_lib/tools/deb/tool_lib2_a.obj",
		"tool_lib2_lib/tools/deb/tool_lib2_a.sbr",
		"tool_lib2_lib/tools/deb/tool_lib2_b.obj",
		"tool_lib2_lib/tools/deb/tool_lib2_b.sbr",
		"tool_lib2_lib/tools/rel/tool_lib2_a.obj",
		"tool_lib2_lib/tools/rel/tool_lib2_a.sbr",
		"tool_lib2_lib/tools/rel/tool_lib2_b.obj",
		"tool_lib2_lib/tools/rel/tool_lib2_b.sbr",
	])
	t.run("windows") # no MSVC compiler on Linux
	return t
Exemplo n.º 38
0
def run():
    # Generate source files for simple_lib tests
    dir = ReplaceEnvs("$(SBS_HOME)/test/smoke_suite/test_resources/simple_lib")
    zs = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
    for i in range(1, 100):
        file = open(os.path.join(dir, zs + "_" + str(i) + ".cpp"), "w")
        file.write("int f(void) { return 1; }\n")
        file.close()

    # Convenience method to list generated source build output
    def __generatedFiles(aConfig):
        udeb = "etest_lib/{0}/udeb/".format(aConfig)
        urel = "etest_lib/{0}/urel/".format(aConfig)

        generated = []
        for i in range(1, 100):
            generated.append(udeb + zs + "_" + str(i) + ".o")
            generated.append(udeb + zs + "_" + str(i) + ".o.d")
            generated.append(urel + zs + "_" + str(i) + ".o")
            generated.append(urel + zs + "_" + str(i) + ".o.d")
        return generated

    buildtargets = [
        "etest_lib/x86/udeb/etest_udeb_objects.via",
        "etest_lib/x86/udeb/test_lib.o",
        "etest_lib/x86/urel/etest_urel_objects.via",
        "etest_lib/x86/urel/test_lib.o"
    ]
    buildtargets.extend(__generatedFiles("x86"))

    t = SmokeTest()
    t.name = "lib_x86"
    t.description = "Build a basic LIB TARGETTYPE for x86"
    t.command = "sbs -b smoke_suite/test_resources/simple_lib/bld.inf -c x86"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/x86/udeb/etest.lib",
        "$(EPOCROOT)/epoc32/release/x86/urel/etest.lib"
    ]
    t.addbuildtargets('smoke_suite/test_resources/simple_lib/bld.inf',
                      buildtargets)

    t.run("windows")
    return t
Exemplo n.º 39
0
def run():
	t = SmokeTest()
	t.id = "35"
	t.name = "lib_winscw"
	t.command = "sbs -b smoke_suite/test_resources/simple_lib/bld.inf -c " + \
			"winscw LIBRARY"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/winscw/udeb/etest.lib",
		"$(EPOCROOT)/epoc32/release/winscw/urel/etest.lib"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_lib/bld.inf', [
		"etest_lib/winscw/udeb/test_lib.o",
		"etest_lib/winscw/urel/test_lib.o"
	])
	t.run()
	return t
Exemplo n.º 40
0
def run():
    t = SmokeTest()
    t.id = "4"
    t.name = "commandfile"
    t.command = "sbs " + "--command=smoke_suite/test_resources/simple/commands-v7.txt " + "-c armv7_udeb"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe",
        "$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe.map",
        "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe",
        "$(EPOCROOT)/epoc32/release/armv7/urel/test.exe.map",
    ]
    t.addbuildtargets(
        "smoke_suite/test_resources/simple/bld.inf", ["test_/armv7/udeb/test.o", "test_/armv7/urel/test.o"]
    )
    t.run()
    return t
Exemplo n.º 41
0
def run():
    t = SmokeTest()
    t.id = "0094"
    t.name = "tem_conflicts"
    t.usebash = 1
    t.command = "sbs -b smoke_suite/test_resources/tem_conflict/bld.inf " + \
     "-c armv5 -j 2 -f $SBSLOGFILE; cat $SBSLOGFILE"
    t.targets = [
        "$(EPOCROOT)/epoc32/tools/makefile_templates/test/tem_conflicts.mk",
        "$(EPOCROOT)/epoc32/tools/makefile_templates/test/tem_conflicts.meta",
        "$(EPOCROOT)/epoc32/tools/makefile_templates/test/tem_conflicts.sh"
    ]
    t.mustnotmatch = [
        "cp: cannot open .* for reading: Permission denied",
        "cp: cannot stat .*: No such file or directory",
        "rm: cannot remove .*: No such file or directory",
        "rm: cannot remove .*: Permission denied"
    ]
    t.run()
    return t
Exemplo n.º 42
0
def run():
	t = SmokeTest()
	t.name = "exe_x86"
	t.description = "Build a basic EXE TARGETTYPE for x86"
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c x86"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/x86/udeb/test.exe",
		"$(EPOCROOT)/epoc32/release/x86/udeb/test.exe.map",
		"$(EPOCROOT)/epoc32/release/x86/urel/test.exe",
		"$(EPOCROOT)/epoc32/release/x86/urel/test.exe.map"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [
		"test_/x86/udeb/test.o",
		"test_/x86/udeb/test.o.d",
		"test_/x86/udeb/test1.o",
		"test_/x86/udeb/test1.o.d",
		"test_/x86/udeb/test2.o",
		"test_/x86/udeb/test2.o.d",
		"test_/x86/udeb/test3.o",
		"test_/x86/udeb/test3.o.d",
		"test_/x86/udeb/test4.o",
		"test_/x86/udeb/test4.o.d",
		"test_/x86/udeb/test5.o",
		"test_/x86/udeb/test5.o.d",
		"test_/x86/udeb/test6.o",
		"test_/x86/udeb/test6.o.d",
		"test_/x86/urel/test.o",
		"test_/x86/urel/test.o.d",
		"test_/x86/urel/test1.o",
		"test_/x86/urel/test1.o.d",
		"test_/x86/urel/test2.o",
		"test_/x86/urel/test2.o.d",
		"test_/x86/urel/test3.o",
		"test_/x86/urel/test3.o.d",
		"test_/x86/urel/test4.o",
		"test_/x86/urel/test4.o.d",
		"test_/x86/urel/test5.o",
		"test_/x86/urel/test5.o.d",
		"test_/x86/urel/test6.o",
		"test_/x86/urel/test6.o.d",
		"test_/x86/udeb/test_udeb_objects.via",
		"test_/x86/urel/test_urel_objects.via"
		])
	
	t.run("windows")
	return t
Exemplo n.º 43
0
def run():
	t = SmokeTest()
	t.id = "3"
	t.name = "exe_armv7"
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv7"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe",
		"$(EPOCROOT)/epoc32/release/armv7/udeb/test.exe.map",
		"$(EPOCROOT)/epoc32/release/armv7/urel/test.exe",
		"$(EPOCROOT)/epoc32/release/armv7/urel/test.exe.map"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple/bld.inf', [
		"test_/armv7/udeb/test.o",
		"test_/armv7/urel/test.o"
	])
	t.run()
	return t
Exemplo n.º 44
0
def run():
	t = SmokeTest()
	t.id = "44"
	t.name = "mmp_select"
	t.description = "Test -p option"
	t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf " \
			+ "-p hElLoWoRlD.mMp"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv5/udeb/HelloWorld.exe",
		"$(EPOCROOT)/epoc32/release/armv5/urel/HelloWorld.exe",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/HelloWorld.exe",
		"$(EPOCROOT)/epoc32/release/winscw/urel/HelloWorld.exe"
		]
	t.addbuildtargets('smoke_suite/test_resources/basics/helloworld/Bld.inf', [
		"helloworld_exe/armv5/udeb/HelloWorld.o",
		"helloworld_exe/armv5/urel/HelloWorld.o",
		"helloworld_exe/winscw/udeb/HelloWorld.o",
		"helloworld_exe/winscw/urel/HelloWorld.o"
	])
	t.run()
	return t
Exemplo n.º 45
0
def run():
	t = SmokeTest()
	t.name = "badconfigs"

	t.description = """Tests that Raptor does indicate errors but does not traceback when reading faulty config files"""
	t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf --configpath=test/smoke_suite/test_resources/badconfigs --export-only -n -m ${SBSMAKEFILE} -f ${SBSLOGFILE}"
	t.mustmatch = [
		"sbs: warning: Failed to read XML file: .*missing_model_close_tag.xml:14:3: mismatched tag.*",
		"sbs: warning: Failed to read XML file: .*missing_build_close.xml:18:0: no element found.*",
		"sbs: warning: Unknown element bset.*",
		"sbs: warning: Failed to read XML file: .*testconfig.xml:17:2: mismatched tag.*",
		"sbs: warning: Unknown element bset.*",
		"sbs: warning: Failed to read XML file: .*uknowntag.xml:17:2: mismatched tag.*",
		"sbs: warning: Failed to read XML file:.*notxml1.xml:1:5:.*"
	]
	t.warnings = 7
	t.errors = 0
	t.returncode=0
	t.run()

	return t
Exemplo n.º 46
0
def run():
	t = SmokeTest()
	t.id = "29"
	t.name = "armv7_testcode"
	t.command = "sbs -b smoke_suite/test_resources/simple_test/bld.inf -c " + \
			"armv7.test -f - "
	
	# Don't allow -f to be appended
	t.logfileOption = lambda :""
	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv7/urel/simple_test_auto.exe",
		"$(EPOCROOT)/epoc32/release/armv7/urel/simple_test_manual.exe",
		"$(EPOCROOT)/epoc32/release/armv7/udeb/simple_test_auto.exe",
		"$(EPOCROOT)/epoc32/release/armv7/udeb/simple_test_manual.exe",
		"$(EPOCROOT)/epoc32/include/testexportheader.h",
		"$(EPOCROOT)/epoc32/data/z/test/smoke_suite_test_resources_simple_test/armv7.auto.bat",
		"$(EPOCROOT)/epoc32/data/z/test/smoke_suite_test_resources_simple_test/armv7.manual.bat"
		]
	t.mustmatch = [".*/epoc32/data/z/test/smoke_suite_test_resources_simple_test/armv7.auto.bat</build>.*"]
	t.run()
	return t
Exemplo n.º 47
0
def run():
	t = SmokeTest()
	t.id = "105"
	t.name = "pdll_winscw"
	t.command = "sbs -b smoke_suite/test_resources/simple_dll/pbld.inf -c winscw"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticpdll.lib",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/createstaticpdll.dll",
		"$(EPOCROOT)/epoc32/release/winscw/urel/createstaticpdll.dll",
		"$(EPOCROOT)/epoc32/release/winscw/urel/createstaticpdll.dll.map"
		]
	t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', [
		"createstaticpdll_dll/winscw/udeb/CreateStaticDLL.o",
		"createstaticpdll_dll/winscw/udeb/createstaticpdll.UID.CPP",
		"createstaticpdll_dll/winscw/udeb/createstaticpdll_UID_.o",
		"createstaticpdll_dll/winscw/urel/CreateStaticDLL.o",
		"createstaticpdll_dll/winscw/urel/createstaticpdll.UID.CPP",
		"createstaticpdll_dll/winscw/urel/createstaticpdll_UID_.o"
	])
	t.run()
	return t
Exemplo n.º 48
0
def run():
	t = SmokeTest()
	t.id = "81"
	t.name = "export_multi"
	t.description = "Test that the export section only gets included once even if all platforms are selected (see DPDEF138366)"
	# Note I'm not including 'tools' to avoid a dependency on MSVC6
	# Given this test will not be necessary once the export section is removed from the make files anyway, I'm not too worried.
	t.command = "sbs -b smoke_suite/test_resources/basics/helloworld/Bld.inf -c winscw -c armv5 -c tools2 -c armv7 -c gccxml EXPORT"
	t.mustnotmatch = [
		".*warning: overriding commands for target.*",
		".*warning: ignoring old commands for target.*"
	]
	t.run()
	return t
Exemplo n.º 49
0
def run():
	t = SmokeTest()

	t.description = "Ensure Raptor builds Qt applications successfully"	

	t.id = "0110"
	t.name = "qt_helloworld"

	# Its using rvct4_0 because thats's also the 10.1 default now.
	t.command = "sbs --qtpro smoke_suite/test_resources/qt/helloworld/helloworldqt.pro -k -c arm.v5.urel.rvct4_0 -c arm.v5.udeb.rvct4_0 -c winscw"
	t.targets = [
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/bld.inf",
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/helloworldqt.loc",
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/helloworldqt.rss",
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/helloworldqt_reg.rss",
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/helloworldqt_template.pkg",
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld/Makefile",
			"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe.sym",
			"$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe.sym",
			"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe",
			"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe.map",
			"$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe",
			"$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe.map",
			"$(EPOCROOT)/epoc32/release/winscw/urel/helloworldqt.exe",
			"$(EPOCROOT)/epoc32/release/winscw/udeb/helloworldqt.exe"
		]
	t.addbuildtargets('smoke_suite/test_resources/qt/helloworld/bld.inf', [
		"helloworldqt_exe/helloworldqt_helloworldqt.rsc",
		"helloworldqt_exe/armv5/udeb/helloworld.o",
		"helloworldqt_exe/armv5/udeb/helloworld.o.d",
		"helloworldqt_exe/armv5/urel/helloworld.o",
		"helloworldqt_exe/armv5/urel/helloworld.o.d",
		"helloworldqt_exe/winscw/udeb/helloworld.o",
		"helloworldqt_exe/winscw/udeb/helloworld.o.d",	
		"helloworldqt_exe/winscw/urel/helloworld.o",
		"helloworldqt_exe/winscw/urel/helloworld.o.d"
	])
	t.run()

	return t
Exemplo n.º 50
0
def run():
    t = SmokeTest()
    t.id = "53"
    t.name = "gnumakefile"
    t.command = "sbs -b smoke_suite/test_resources/gnumakefile/bld.inf"
    t.targets = [
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_bld_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_bld_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_bld_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_bld_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_final_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_final_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_final_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_final_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_lib_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_lib_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_lib_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_lib_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_makmake_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_makmake_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_makmake_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_makmake_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_resource_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_resource_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_resource_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/master_resource_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_bld_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_bld_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_bld_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_bld_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_final_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_final_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_final_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_final_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_lib_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_lib_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_lib_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_lib_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_makmake_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_makmake_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_makmake_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_makmake_WINSCW_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_resource_ARMV5_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_resource_ARMV5_UREL.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_resource_WINSCW_UDEB.txt",
        "$(SBS_HOME)/test/smoke_suite/test_resources/gnumakefile/slave_resource_WINSCW_UREL.txt"
    ]
    t.run("windows")  # we don't have make 3.79 on Linux
    return t
Exemplo n.º 51
0
def run():
    t = SmokeTest()
    t.id = "21"
    t.name = "defs_armv5"
    t.command = "sbs -b smoke_suite/test_resources/defs/group/bld.inf -c armv5"
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv5/udeb/deftest.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5/urel/deftest.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5/lib/deftest{000a0000}.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/deftest.dso",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/deftest.dll",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/deftest.dll.map",
        "$(EPOCROOT)/epoc32/release/armv5/urel/deftest.dll",
        "$(EPOCROOT)/epoc32/release/armv5/urel/deftest.dll.map"
    ]
    t.addbuildtargets('smoke_suite/test_resources/defs/group/bld.inf', [
        "deftest_/armv5/udeb/deftest_udeb_objects.via",
        "deftest_/armv5/udeb/test.o",
        "deftest_/armv5/urel/deftest_urel_objects.via",
        "deftest_/armv5/urel/test.o"
    ])
    t.run()
    return t
Exemplo n.º 52
0
def run():

    generate_files()

    t = SmokeTest()

    t.id = "1"
    t.name = "parse_time_exports_mmps"
    t.description = """Test to measure time taken to parse a large number of
			exports and mmps"""
    t.command = "sbs -b timing_tests/test_resources/parse_time/bld.inf -n " + \
      "-c armv5_urel --toolcheck=off --timing"
    t.run()

    delete_files()
    return t
Exemplo n.º 53
0
def run():
    t = SmokeTest()
    t.id = "58"
    t.name = "lib_versioned"
    t.command = "sbs -b smoke_suite/test_resources/versioned_lib/bld.inf" + \
         " -b smoke_suite/test_resources/versioned_lib/dllversioning.inf" + \
         " -c armv5 -c winscw "
    t.targets = [
        "$(EPOCROOT)/epoc32/release/armv5/lib/testver.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/testver{00020000}.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/testver{00030000}.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/version.ed.lib.04.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/version.ed.lib{000a0000}.04.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/versioned.lib.03.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/versioned.lib{000a0000}.03.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/versionedlib.02.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/versionedlib01.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/versionedlib01{000a0000}.dso",
        "$(EPOCROOT)/epoc32/release/armv5/lib/versionedlib{000a0000}.02.dso",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/testver.dll",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/testver.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/testver{00020000}.dll",
        "$(EPOCROOT)/epoc32/release/armv5/udeb/testver{00020000}.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5/urel/testver.dll",
        "$(EPOCROOT)/epoc32/release/armv5/urel/testver.dll.sym",
        "$(EPOCROOT)/epoc32/release/armv5/urel/testver{00020000}.dll",
        "$(EPOCROOT)/epoc32/release/armv5/urel/testver{00020000}.dll.sym",
        "$(EPOCROOT)/epoc32/release/winscw/udeb/version.ed.lib.04.lib",
        "$(EPOCROOT)/epoc32/release/winscw/udeb/versioned.lib.03.lib",
        "$(EPOCROOT)/epoc32/release/winscw/udeb/versionedlib.02.lib",
        "$(EPOCROOT)/epoc32/release/winscw/udeb/versionedlib01.lib"
    ]
    t.run()

    t.print_result()
    return t
Exemplo n.º 54
0
def run():
    t = SmokeTest()
    t.name = "planb"
    t.description = "Basic planb test of the makefile mechanism."

    t.usebash = True
    t.command = "sbs -b smoke_suite/test_resources/planb/bld.inf -f-"
    t.countmatch = [
        ["\+ echo bitmap-all", 4],  # 2 platforms * 2 variants
        ["\+ echo resource-all", 4],
        ["\+ echo target-all", 4],
        ["\+ echo bitmap-no_var_dep", 2],  # 2 platforms
        ["\+ echo resource-no_var_dep", 2],
        ["\+ echo target-no_var_dep", 2],
        ["\+ echo bitmap-no_plat_dep", 1],  # 1 build
        ["\+ echo resource-no_plat_dep", 1],
        ["\+ echo target-no_plat_dep", 1],
    ]

    t.run()
    return t
Exemplo n.º 55
0
def run():
    t = SmokeTest()
    t.id = "38"
    t.name = "winscw_resource"
    t.command = "sbs -b smoke_suite/test_resources/resource/group/bld.inf -c " \
      + "winscw RESOURCE"
    t.targets = [
        "$(EPOCROOT)/epoc32/include/onelang.rsg",
        "$(EPOCROOT)/epoc32/include/testresource.rsg",
        "$(EPOCROOT)/epoc32/include/testresource.hrh",
        "$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.r01",
        "$(EPOCROOT)/epoc32/data/z/resource/testresource/testresource.rsc",
        "$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.r01",
        "$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.r01",
        "$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/testresource/testresource.rsc",
        "$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/testresource/testresource.rsc"
    ]
    t.run()
    return t
Exemplo n.º 56
0
def run():
	t = SmokeTest()
	t.name = "emulated_drives"
	t.command = "sbs -b smoke_suite/test_resources/emulated_drives_export/bld.inf --export-only"
	t.targets = [
		"$(EPOCROOT)/epoc32/data/c/private/10001234/policy/emulated_drives_export2.mbm",
		"$(EPOCROOT)/epoc32/winscw/c/private/10001234/policy/emulated_drives_export2.mbm",
		"$(EPOCROOT)/epoc32/data/z/private/10001234/policy/emulated_drives_export1.mbm",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10001234/policy/emulated_drives_export1.mbm",
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10001234/policy/emulated_drives_export1.mbm",
		"$(EPOCROOT)/epoc32/data/z/private/10001234/policy/emulated_drives_export2.mbm",
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10001234/policy/emulated_drives_export2.mbm",
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/private/10001234/policy/emulated_drives_export2.mbm"
		]
	t.run()
	return t
Exemplo n.º 57
0
def run():
	t = SmokeTest()
	t.id = "999"
	t.name = "mmpparser_unit"

	tests = unittest.makeSuite(TestMMPParser)
	result = unittest.TextTestRunner(verbosity=2).run(tests)

	if result.wasSuccessful():
		t.result = SmokeTest.PASS
	else:
		t.result = SmokeTest.FAIL

	return t
Exemplo n.º 58
0
def run():
    t = SmokeTest()
    t.id = "999"
    t.name = "generic_path_unit"

    tests = unittest.makeSuite(TestGenericPaths)
    result = unittest.TextTestRunner(verbosity=2).run(tests)

    if result.wasSuccessful():
        t.result = SmokeTest.PASS
    else:
        t.result = SmokeTest.FAIL

    return t