diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-05 10:45:18 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-05 10:45:18 +0200 |
commit | 3ff55995c30a583030eb90db986a26e84472596e (patch) | |
tree | 13d9a53e7553148c21f42fbb303305f3d9aef0ae | |
parent | e10ea26cc27d4965af86c236275230998bf1dc50 (diff) | |
download | kit-3ff55995c30a583030eb90db986a26e84472596e.zip |
Update build script
-rw-r--r-- | build_and_test.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/build_and_test.sh b/build_and_test.sh index 3e18d8c..627e062 100644 --- a/build_and_test.sh +++ b/build_and_test.sh @@ -80,14 +80,14 @@ fi $COMPILE ${FLAGS} \ ${FLAG_OBJ}"build/kit${OBJ_POSTFIX}" \ "source/kit/_static.c" -if [ ! $? -eq 0 ]; then +if [ $? -ne 0 ]; then exit 1 fi $COMPILE ${FLAGS} \ ${FLAG_OBJ}"build/kit_test${OBJ_POSTFIX}" \ "source/kit_test/_static.c" -if [ ! $? -eq 0 ]; then +if [ $? -ne 0 ]; then exit 1 fi @@ -97,7 +97,7 @@ $COMPILE ${FLAGS} \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/_static.c" \ ${LINK_FLAGS} -if [ ! $? -eq 0 ]; then +if [ $? -ne 0 ]; then exit 1 fi @@ -107,7 +107,7 @@ $COMPILE ${FLAGS} \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/test_too_many_assertions.c" \ ${LINK_FLAGS} -if [ ! $? -eq 0 ]; then +if [ $? -ne 0 ]; then exit 1 fi @@ -117,7 +117,7 @@ $COMPILE ${FLAGS} \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/test_too_many_tests.c" \ ${LINK_FLAGS} -if [ ! $? -eq 0 ]; then +if [ $? -ne 0 ]; then exit 1 fi @@ -127,7 +127,7 @@ $COMPILEPP ${FLAGS} \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/test_cpp.cpp" \ ${LINK_FLAGS} -if [ ! $? -eq 0 ]; then +if [ $? -ne 0 ]; then exit 1 fi @@ -137,7 +137,7 @@ $COMPILEPP ${FLAGS} \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/test_signals.cpp" \ ${LINK_FLAGS} -if [ ! $? -eq 0 ]; then +if [ $? -ne 0 ]; then exit 1 fi @@ -147,7 +147,7 @@ echo "" STATUS=0 ./build/kit_test_suite -if [ ! $? -eq 0 ]; then +if [ $? -ne 0 ]; then STATUS=1 fi |