From: Rafał Długołęcki Date: Tue, 14 Jun 2016 22:19:49 +0000 (+0200) Subject: Add .travis.yml file and missing test X-Git-Url: https://git.dlugolecki.net.pl/?p=command.git;a=commitdiff_plain;h=2a2da27d624b7ddd79707c0c1c4851f75a64c578;ds=sidebyside Add .travis.yml file and missing test --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1740c99 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +compiler: + - clang++ +language: cpp +script: ./autogen.sh && ./configure && make && make check 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;