From 007a48a044dea23570111c19941de413e6a7f1a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Sat, 16 May 2015 11:38:08 +0200 Subject: [PATCH] Add Boolean tests. --- tests/command/understand_bool_option.test | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tests/command/understand_bool_option.test diff --git a/tests/command/understand_bool_option.test b/tests/command/understand_bool_option.test new file mode 100755 index 0000000..0a4562d --- /dev/null +++ b/tests/command/understand_bool_option.test @@ -0,0 +1,11 @@ +#!/bin/sh + +for t in 0 1; do + TEST=$($srcdir/command/option_test_command bool=$t) + if [ ! "$TEST" = "bool: $t" ]; then + echo "Command should understand Option. Expecting output: 'bool: $t', got: '$TEST'. Program exited with $? code." + return 1; + fi +done + +return 0; -- 2.30.2