def runTest(self): stage2.run(EMPTY_FOLDER) files = os.listdir(EMPTY_FOLDER) check = 'stage2.out' checkNot = 'prog419' self.assertNotIn(checkNot, files) self.assertIn(check, files)
def runTest(self): stage2.run(NO_MAKE) files = os.listdir(NO_MAKE) check = 'stage2.out' checkNot = 'prog419' self.assertNotIn(checkNot, files) self.assertIn(check, files)
def runTest(self): """Positive test case""" stage2.run(GOOD_FOLDER) files = os.listdir(GOOD_FOLDER) check = ['stage2.out','prog419'] for c in check: self.assertIn(c, files)
## if no argument for stage provided, assume running all if args.getStage() == []: args.stage = [1, 2, 3, 4] ## Stage 1 = decompression if 1 in args.getStage(): print "---Begin Stage 1---" stage1.run(args.getFolder()) print "---End Stage 1-----" ## if error that prevents continuation occurs, exit program ## Stage 2 = compilation if 2 in args.getStage(): print "---Begin Stage 2---" stage2.run(args.getFolder()) print "---End Stage 2-----" ## if error that prevents continuation occurs, exit program ## Stage 3 = testing if 3 in args.getStage(): print "---Begin Stage 3---" stage3.run(args.getFolder(), args.getTimeout(), args.getTest()) print "---End Stage 3-----" ## Stage 3.5 = uploading if 1 in args.getStage() or 2 in args.getStage() or 3 in args.getStage(): print "---Begin Stage 3.5---" stage3_5.run(args.getFolder()) print "---End Stage 3.5-----"