summaryrefslogtreecommitdiff
path: root/build_and_test.sh
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-05 10:18:46 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-05 10:18:46 +0200
commit77c5276fcc3fbf0702e8e21f20d757be3501639f (patch)
tree9932e339bd1e90b617efafe39d0667bc55315c46 /build_and_test.sh
parentdb11e169f844537c0ae10db3350c90a8d3fca530 (diff)
downloadkit-77c5276fcc3fbf0702e8e21f20d757be3501639f.zip
test
Diffstat (limited to 'build_and_test.sh')
-rw-r--r--build_and_test.sh33
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"