Ensure binaries are compiled before testing
This commit is contained in:
parent
0324ce8bbe
commit
f7049cdd15
@ -5,6 +5,13 @@ import shutil
|
||||
def CheckOutput(output):
|
||||
return output == 'Hello world!\n'
|
||||
|
||||
def test_make():
|
||||
print(os.getcwd())
|
||||
fh = os.popen("/bin/bash -c 'make compile'", mode='r', buffering=-1)
|
||||
output = fh.read()
|
||||
retcode = fh.close()
|
||||
assert retcode == None
|
||||
|
||||
def test_c():
|
||||
print(os.getcwd())
|
||||
fh = os.popen("./HelloWorld", mode='r', buffering=-1)
|
||||
|
Loading…
Reference in New Issue
Block a user