Created
June 30, 2019 22:19
-
-
Save Jammyjamjamman/3dbb7a12bf6f52e284c4d8438f226346 to your computer and use it in GitHub Desktop.
some tests...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$RMW_TEST_CMD_STRING --verbose $HOME/somefiles | |
test_result $? | |
echo " == Should not work if '-f' isn't used" | |
output=`echo "y" | $RMW_ALT_TEST_CMD_STRING --purge -e` | |
test "$output" = "purge has been skipped: use -f or --force" | |
test_result $? | |
echo " == Should not work if '--purge' isn't used" | |
output=`echo "y" | $RMW_TEST_CMD_STRING -ffe` | |
test "$output" = "'-f/--force' does nothing without '-g/--purge'" | |
test_result $? | |
echo " == Should not work if '--purge' and '-f' isn't used" | |
RMWTRASH=empty $RMW_TEST_CMD_STRING | |
test_result $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment