Updated testing so that failures of the should fail tests will compile

but will return 1 in testing if they actually built
This commit is contained in:
Darrell Wright 2017-11-26 23:22:29 -05:00
parent 524517b369
commit 748a1fd5a9
2 changed files with 11 additions and 6 deletions

View File

@ -5,10 +5,12 @@ shift 1
export BUILD_COMMAND=$@ export BUILD_COMMAND=$@
echo "Build command: ${BUILD_COMMAND}" echo "Build command: ${BUILD_COMMAND}"
eval ${BUILD_COMMAND} #>/dev/null 2>/dev/null eval ${BUILD_COMMAND} #>/dev/null 2>/dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
exit 1; echo -ne "#!/bin/bash\nexit 1;" > ${TEST_BIN_NAME}
else
echo -ne "#!/bin/bash\nexit 0;" > ${TEST_BIN_NAME}
fi fi
echo "#!/bin/bash" > ${TEST_BIN_NAME}
chmod u+x ${TEST_BIN_NAME} chmod u+x ${TEST_BIN_NAME}
exit 0; exit 0;

View File

@ -1,7 +1,10 @@
#!/bin/bash #!/bin/bash
if [[ -e $@ ]]; then echo $1
exit 1; eval $1
fi
exit 0; if [ $? -eq 0 ]; then
exit 0;
fi
exit 1;