summaryrefslogtreecommitdiff
path: root/build_and_test.sh
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-14 22:55:59 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-14 22:55:59 +0200
commitb2666b7ec2c923c2d33627f75d032eb4dbbf2937 (patch)
tree0e2e725ecabf083a1732640bce9ea2a3cecdd154 /build_and_test.sh
parent909bd8e0b36183e6d9d6fc059d98c386dff3740b (diff)
downloadkit-b2666b7ec2c923c2d33627f75d032eb4dbbf2937.zip
interprocess test
Diffstat (limited to 'build_and_test.sh')
-rw-r--r--build_and_test.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/build_and_test.sh b/build_and_test.sh
index 157f88a..bd347f2 100644
--- a/build_and_test.sh
+++ b/build_and_test.sh
@@ -172,6 +172,15 @@ if [ $? -ne 0 ]; then
exit 1
fi
+$COMPILEPP ${FLAGS} \
+ ${FLAG_EXE}"build/test_interprocess${EXE_POSTFIX}" \
+ "build/kit${OBJ_POSTFIX}" \
+ "source/tests/test_interprocess.c" \
+ ${LINK_FLAGS}
+if [ $? -ne 0 ]; then
+ exit 1
+fi
+
echo "Run tests"
echo ""
@@ -206,7 +215,7 @@ else
STATUS=1
fi
-./build/test_signals
+./build/test_signals --quiet
if [ $? -eq 0 ]; then
echo "signals - OK"
else
@@ -214,4 +223,13 @@ else
STATUS=1
fi
+./build/test_interprocess writer &
+./build/test_interprocess reader
+if [ $? -eq 0 ]; then
+ echo "interprocess - OK"
+else
+ echo "interprocess - FAILED (code $?)"
+ STATUS=1
+fi
+
exit $STATUS