domo-io WIP: add nats broker. and setup the rest handler.

This commit is contained in:
NADAL Jean-Baptiste
2019-12-26 11:33:45 +01:00
parent a0a3c90e3c
commit c43fc0b195
13 changed files with 629 additions and 245 deletions

37
lib/tests/launcher.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/sh
if [ $# = 0 ]; then
echo "This program is called by make. Please use \"make test\" command instead."
exit 1
fi
FAIL=0
FAILDESC=""
for EXECUTABLE in $*; do
./$EXECUTABLE
echo ""
if [ $? != 0 ]; then
FAIL=1
FAILDESC="$FAILDESC $EXECUTABLE"
fi
done
if [ $FAIL != 0 ]; then
echo "======================================================================"
echo "**** OOOOOPS!!! UNSUCESSFUL UNIT TEST FOUND. PLEASE FIX AND RERUN ****"
echo "======================================================================"
echo "Fails in =>$FAILDESC"
exit 1
fi
echo "======================================================================"
echo "**** Good job! All tests are successful ****"
echo "======================================================================"
echo "* ____ _ All tests have finished successfully. *"
echo "* / ___| ___ ___ __| | | | ___ | |__ | | *"
echo "* | | _ / _ \ / _ \ / _\` | _ | |/ _ \| '_ \ | | *"
echo "* | |_| | (_) | (_) | (_| | | |_| | (_) | |_) | |_| *"
echo "* \____|\___/ \___/ \__,_| \___/ \___/|_.__/ (_) *"
echo "======================================================================"
echo "Tested: $*"
exit 0