Files
cmake-examples/04-static-analysis/clang-format/run_test.sh
2017-07-22 20:32:24 +01:00

12 lines
232 B
Bash
Executable File

#!/bin/bash
mkdir -p build && cd build && cmake .. && make format-check
RET=$?
echo "return code was ${RET}"
if [ ${RET} == "0" ]; then
echo "test failed. Expected format-check to fail"
exit 1
else
echo "test success"
exit 0
fi