Пример #1
0
	def runTest(self):
		compile = agCompile.agCompile()
		compile.runMake(GOOD_FOLDER)
		files = os.listdir(GOOD_FOLDER)
		check = ['stage2.out','prog419']
		for c in check:
			self.assertIn(c, files)
Пример #2
0
	def runTest(self):
		compile = agCompile.agCompile()
		compile.runMake(NO_MAKE)
		files = os.listdir(EMPTY_FOLDER)
		check = 'stage2.out'
		checkNot = 'prog419'
		self.assertNotIn(checkNot, files)
		self.assertIn(check, files)
Пример #3
0
def run(folder):
    gf = agGetSubFolders.agGetSubFolders(folder)  #instantiate agGetSubFolder object
    c = agCompile.agCompile()         #instantiate agCompile object
    folders = gf.getFolders()     #get student folder list
    for f in folders:
        c.runMake(f)