From bb944ffd41cfde8d381e1e62be23c2310218688c Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 23 Mar 2015 00:59:22 +0100 Subject: [PATCH] Added tests and coverage for the rest of the command line switches --- samples/Makefile.am | 3 +++ samples/tests/fail_fast.sh | 2 ++ samples/tests/list.sh | 3 +++ samples/tests/pattern.sh | 2 ++ 4 files changed, 10 insertions(+) create mode 100755 samples/tests/fail_fast.sh create mode 100755 samples/tests/list.sh create mode 100755 samples/tests/pattern.sh diff --git a/samples/Makefile.am b/samples/Makefile.am index 6660f1c..be4a916 100644 --- a/samples/Makefile.am +++ b/samples/Makefile.am @@ -15,6 +15,9 @@ LDADD = -L$(top_srcdir)/ -lcriterion SCRIPT_TESTS = tests/tap_test.sh \ tests/early_exit.sh \ tests/verbose.sh \ + tests/list.sh \ + tests/pattern.sh \ + tests/fail_fast.sh \ tests/help.sh EXTRA_DIST = $(SCRIPT_TESTS) diff --git a/samples/tests/fail_fast.sh b/samples/tests/fail_fast.sh new file mode 100755 index 0000000..3fecfd8 --- /dev/null +++ b/samples/tests/fail_fast.sh @@ -0,0 +1,2 @@ +#!/bin/sh +./simple --fail-fast --always-succeed diff --git a/samples/tests/list.sh b/samples/tests/list.sh new file mode 100755 index 0000000..2040e54 --- /dev/null +++ b/samples/tests/list.sh @@ -0,0 +1,3 @@ +#!/bin/sh +./simple --list +./simple --list --ascii diff --git a/samples/tests/pattern.sh b/samples/tests/pattern.sh new file mode 100755 index 0000000..c44e812 --- /dev/null +++ b/samples/tests/pattern.sh @@ -0,0 +1,2 @@ +#!/bin/sh +./simple --pattern '*/passing'