Skip to content

Commit

Permalink
Added scripts to do fail testing
Browse files Browse the repository at this point in the history
  • Loading branch information
beached committed Nov 27, 2017
1 parent 98ae1e5 commit 524517b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions compile_fail.sh
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions test_fail.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

if [[ -e $@ ]]; then
exit 1;
fi
exit 0;

0 comments on commit 524517b

Please sign in to comment.