diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-05 10:18:46 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-05 10:18:46 +0200 |
commit | 77c5276fcc3fbf0702e8e21f20d757be3501639f (patch) | |
tree | 9932e339bd1e90b617efafe39d0667bc55315c46 | |
parent | db11e169f844537c0ae10db3350c90a8d3fca530 (diff) | |
download | kit-77c5276fcc3fbf0702e8e21f20d757be3501639f.zip |
test
-rw-r--r-- | build_and_test.sh | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/build_and_test.sh b/build_and_test.sh index 48fa846..218feb5 100644 --- a/build_and_test.sh +++ b/build_and_test.sh @@ -7,8 +7,8 @@ COMPILEPP=g++ OBJ_POSTFIX=.o EXE_POSTFIX= FLAGS= -FLAG_OBJ="-c -o" -FLAG_EXE="-o" +FLAG_OBJ="-c -o " +FLAG_EXE="-o " case $(uname | tr '[:upper:]' '[:lower:]') in *darwin*) @@ -75,23 +75,22 @@ else fi fi -echo "$COMPILE ${FLAGS} ${FLAG_OBJ}" -$COMPILE ${FLAGS} ${FLAG_OBJ} \ - "build/kit${OBJ_POSTFIX}" \ +$COMPILE ${FLAGS} \ + ${FLAG_OBJ}"build/kit${OBJ_POSTFIX}" \ "source/kit/_static.c" if [ ! $? -eq 0 ]; then exit 1 fi -$COMPILE ${FLAGS} ${FLAG_OBJ} \ - "build/kit_test${OBJ_POSTFIX}" \ +$COMPILE ${FLAGS} \ + ${FLAG_OBJ}"build/kit_test${OBJ_POSTFIX}" \ "source/kit_test/_static.c" if [ ! $? -eq 0 ]; then exit 1 fi -$COMPILE ${FLAGS} ${FLAG_EXE} \ - "build/kit_test_suite${EXE_POSTFIX}" \ +$COMPILE ${FLAGS} \ + ${FLAG_EXE}"build/kit_test_suite${EXE_POSTFIX}" \ "build/kit${OBJ_POSTFIX}" \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/_static.c" @@ -99,8 +98,8 @@ if [ ! $? -eq 0 ]; then exit 1 fi -$COMPILE ${FLAGS} ${FLAG_EXE} \ - "build/test_too_many_assertions${EXE_POSTFIX}" \ +$COMPILE ${FLAGS} \ + ${FLAG_EXE}"build/test_too_many_assertions${EXE_POSTFIX}" \ "build/kit${OBJ_POSTFIX}" \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/test_too_many_assertions.c" @@ -108,8 +107,8 @@ if [ ! $? -eq 0 ]; then exit 1 fi -$COMPILE ${FLAGS} ${FLAG_EXE} \ - "build/test_too_many_tests${EXE_POSTFIX}" \ +$COMPILE ${FLAGS} \ + ${FLAG_EXE}"build/test_too_many_tests${EXE_POSTFIX}" \ "build/kit${OBJ_POSTFIX}" \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/test_too_many_tests.c" @@ -117,8 +116,8 @@ if [ ! $? -eq 0 ]; then exit 1 fi -$COMPILEPP ${FLAGS} ${FLAG_EXE} \ - "build/test_cpp${EXE_POSTFIX}" \ +$COMPILEPP ${FLAGS} \ + ${FLAG_EXE}"build/test_cpp${EXE_POSTFIX}" \ "build/kit${OBJ_POSTFIX}" \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/test_cpp.cpp" @@ -126,8 +125,8 @@ if [ ! $? -eq 0 ]; then exit 1 fi -$COMPILEPP ${FLAGS} ${FLAG_EXE} \ - "build/test_signals${EXE_POSTFIX}" \ +$COMPILEPP ${FLAGS} \ + ${FLAG_EXE}"build/test_signals${EXE_POSTFIX}" \ "build/kit${OBJ_POSTFIX}" \ "build/kit_test${OBJ_POSTFIX}" \ "source/tests/test_signals.cpp" |