From 78850255e0beae544caedc508e77a561cc1f0cfc Mon Sep 17 00:00:00 2001 From: Emil Sit Date: Sun, 10 May 2009 21:49:37 -0400 Subject: [PATCH] tests: Add tests to validate listcon and listproj. Two basic tests to ensure that listcon and listproj function as expected. Signed-off-by: Emil Sit --- tests/t1310-listcon.sh | 58 +++++++++++++++++++++++++++++++++++++++++ tests/t1320-listproj.sh | 58 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100755 tests/t1310-listcon.sh create mode 100755 tests/t1320-listproj.sh diff --git a/tests/t1310-listcon.sh b/tests/t1310-listcon.sh new file mode 100755 index 0000000..4ea6756 --- /dev/null +++ b/tests/t1310-listcon.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# + +test_description='listcon functionality + +This test checks basic context listing functionality +' +. ./test-lib.sh + +cat > todo.txt < output && ! test -s output +' + +cat > todo.txt <>> todo.sh listcon +@1 +@c2 +@con03 +@con04 +@con05@con06 +EOF + +cat > todo.txt <>> todo.sh listcon +@con01 +@con02 +@con03 +EOF + +cat > todo.txt <>> todo.sh listcon +@con01 +@con02 +EOF + +test_done diff --git a/tests/t1320-listproj.sh b/tests/t1320-listproj.sh new file mode 100755 index 0000000..79b8bcf --- /dev/null +++ b/tests/t1320-listproj.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# + +test_description='listproj functionality + +This test checks basic project listing functionality +' +. ./test-lib.sh + +cat > todo.txt < output && ! test -s output +' + +cat > todo.txt <>> todo.sh listproj ++1 ++p2 ++prj03 ++prj04 ++prj05+prj06 +EOF + +cat > todo.txt <>> todo.sh listproj ++prj01 ++prj02 ++prj03 +EOF + +cat > todo.txt <>> todo.sh listproj ++prj01 ++prj02 +EOF + +test_done