mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 00:14:07 +08:00
Added scripts to do fail testing
This commit is contained in:
parent
98ae1e5241
commit
524517b369
14
compile_fail.sh
Executable file
14
compile_fail.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
export TEST_BIN_NAME=$1
|
||||||
|
echo "Building ${TEST_BIN_NAME}"
|
||||||
|
shift 1
|
||||||
|
export BUILD_COMMAND=$@
|
||||||
|
echo "Build command: ${BUILD_COMMAND}"
|
||||||
|
eval ${BUILD_COMMAND} #>/dev/null 2>/dev/null
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
echo "#!/bin/bash" > ${TEST_BIN_NAME}
|
||||||
|
chmod u+x ${TEST_BIN_NAME}
|
||||||
|
exit 0;
|
||||||
|
|
7
test_fail.sh
Executable file
7
test_fail.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ -e $@ ]]; then
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
exit 0;
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user