Exemple #1
0
    def runSingle(self, key):
	t = tests.testSuite("pi5", self.address)
	for result in t.runSingleTest(key):
		self.passed.append(result)
	print self.passed
Exemple #2
0
#!/bin/python

import unittest
import sys
import advcubit

# import test suits
import tests

print('Running advcubit test suite:')

try:
    advcubit.init(silentMode=False)
except EnvironmentError as e:
    print('Error initializing advcubit. $PYTHON_PATH must be set!\n' + str(e))
    sys.exit(1)

# run tests
testSuite = tests.testSuite()
try:
    unittest.main(defaultTest='testSuite')
finally:
    # clean journal files
    advcubit.deleteJournalFiles()
Exemple #3
0
    def runAll(self,barcode):
        '''Run all tests'''
        t = tests.testSuite("pi5", self.address)
	t.runTests(barcode)
Exemple #4
0
 def runAll(self):
     '''Run all tests'''
     t = tests.testSuite("pi5", self.address)
     for result in t.runTests():
         self.passed.append(result)
Exemple #5
0
    def runAll(self,inBus,suiteSelection,iters):
        '''Run all tests'''
        t = tests.testSuite(inBus, self.address, self.outCard, iters)
	t.runTests(suiteSelection)
Exemple #6
0
 def runSingle(self, key, piAddress):
     t = tests.testSuite(piAddress, self.address)
     for result in t.runSingleTest(key):
         self.passed.append(result)
     print self.passed
Exemple #7
0
 def runAll(self, inBus, suiteSelection, iters):
     '''Run all tests'''
     t = tests.testSuite(inBus, self.address, self.outCard, iters)
     t.runTests(suiteSelection)