Decoupled fuzzy and unit tests

This commit is contained in:
Alfredo Cardigliano
2020-10-12 12:11:35 +02:00
parent c92e0d13fd
commit 2051e51380
3 changed files with 33 additions and 23 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/bin/sh
cd "$(dirname "${0}")"
UNIT="./unit/unit"
RC=0
check_unit() {
case "$CXXFLAGS" in
# Skipping tests with sanitizer enabled due to use-of-uninitialized-value in json-c
*sanitize* )
echo "Skipping unit tests for this environment"
return
;;
* )
echo ""
echo "Running unit tests.."
;;
esac
$UNIT
UNIT_RC=$?
if [ $UNIT_RC -ne 0 ]; then
RC=1
fi
}
check_unit
exit $RC