Ensure binaries are compiled before testing

This commit is contained in:
DarkFeather 2022-05-17 23:54:36 -05:00
parent 0324ce8bbe
commit f7049cdd15
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296

View File

@ -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)