diff options
| author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2026-04-01 22:24:22 +0200 |
|---|---|---|
| committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2026-04-04 19:51:35 +0200 |
| commit | a809bc0f49ee4c6e777f39d1f80ee57862a0fcab (patch) | |
| tree | 5187dbd9b83205aac62d1f48252025b6e2d158a9 /tests/testsuite.at | |
Initial import of the code into gitv0.1
Diffstat (limited to 'tests/testsuite.at')
| -rw-r--r-- | tests/testsuite.at | 19 |
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 |