summaryrefslogtreecommitdiff
path: root/tests/testsuite.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
new file mode 100644
index 0000000..41af6b5
--- /dev/null
+++ b/tests/testsuite.at
@@ -0,0 +1,19 @@
+AT_INIT([aplwc-repl test suite])
+AT_COLOR_TESTS
+
+AT_SETUP([Command line arguments])
+AT_TESTED([aplwc])
+AT_CHECK([aplwc --version | sed 1q], [0], [AT_PACKAGE_NAME AT_PACKAGE_VERSION
+])
+AT_CHECK([aplwc -v | sed 1q], [0], [AT_PACKAGE_NAME AT_PACKAGE_VERSION
+])
+AT_CHECK([aplwc --help | sed 1q], [0], [Usage: aplwc [[OPTION...]]
+])
+AT_CHECK([aplwc --h | sed 1q], [0], [Usage: aplwc [[OPTION...]]
+])
+AT_CHECK([aplwc --some-unknown-long-option], [1], ignore, ignore)
+AT_CHECK([aplwc -k], [1], ignore, ignore)
+AT_CHECK([aplwc --help | grep -e '-v, --version'], [0], ignore)
+AT_CHECK([aplwc --help | grep -e '-h, --help'], [0], ignore)
+AT_CHECK([aplwc --help | grep -e '-k, --ksdfsgs'], [1], ignore, ignore)
+AT_CLEANUP \ No newline at end of file