X-Git-Url: https://git.dlugolecki.net.pl/?p=command.git;a=blobdiff_plain;f=tests%2Fcommand%2Funderstand_void_option.test;fp=tests%2Fcommand%2Funderstand_void_option.test;h=36fc4d2d181c7c3fe0c8c0b320bc99fb8f2ad7a0;hp=0000000000000000000000000000000000000000;hb=2a2da27d624b7ddd79707c0c1c4851f75a64c578;hpb=e0fda02032d7d502e57e24eb218da9e24155541a diff --git a/tests/command/understand_void_option.test b/tests/command/understand_void_option.test new file mode 100755 index 0000000..36fc4d2 --- /dev/null +++ b/tests/command/understand_void_option.test @@ -0,0 +1,10 @@ +#!/bin/sh + +TEST_VOID=$($srcdir/command/option_test_command void) + +if [ "$TEST_VOID" = "VOID" ]; then + return 0; +fi + +echo "Command should understand Option (switch). Expecting output: 'VOID', got: '$TEST_VOID'. Program exited with $? code." +return 1;