summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"