From 2a2da27d624b7ddd79707c0c1c4851f75a64c578 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Wed, 15 Jun 2016 00:19:49 +0200 Subject: [PATCH] Add .travis.yml file and missing test --- .travis.yml | 4 ++++ tests/command/understand_void_option.test | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .travis.yml create mode 100755 tests/command/understand_void_option.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; -- 2.30.2