From f7049cdd158bb76ed7baf87d0f03feed18b87a28 Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Tue, 17 May 2022 23:54:36 -0500 Subject: [PATCH] Ensure binaries are compiled before testing --- tests/test_unit.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_unit.py b/tests/test_unit.py index 3c425f8..f0fe949 100644 --- a/tests/test_unit.py +++ b/tests/test_unit.py @@ -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)