mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +03:00
12 lines
232 B
Bash
Executable File
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
|