Ensure binaries are compiled before testing
This commit is contained in:
parent
0324ce8bbe
commit
f7049cdd15
@ -5,6 +5,13 @@ import shutil
|
|||||||
def CheckOutput(output):
|
def CheckOutput(output):
|
||||||
return output == 'Hello world!\n'
|
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():
|
def test_c():
|
||||||
print(os.getcwd())
|
print(os.getcwd())
|
||||||
fh = os.popen("./HelloWorld", mode='r', buffering=-1)
|
fh = os.popen("./HelloWorld", mode='r', buffering=-1)
|
||||||
|
Loading…
Reference in New Issue
Block a user