Skip to content

Instantly share code, notes, and snippets.

@Jammyjamjamman
Created June 30, 2019 22:19
Show Gist options
  • Save Jammyjamjamman/3dbb7a12bf6f52e284c4d8438f226346 to your computer and use it in GitHub Desktop.
Save Jammyjamjamman/3dbb7a12bf6f52e284c4d8438f226346 to your computer and use it in GitHub Desktop.
some tests...
$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