From a809bc0f49ee4c6e777f39d1f80ee57862a0fcab Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Wed, 1 Apr 2026 22:24:22 +0200 Subject: Initial import of the code into git --- tests/testsuite.at | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/testsuite.at (limited to 'tests/testsuite.at') 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 -- cgit v1.2.3