|
Added
Link Here
|
| 1 |
--- tests/testit.sh.orig 2020-06-24 22:53:32 UTC |
| 2 |
+++ tests/testit.sh |
| 3 |
@@ -114,63 +114,6 @@ run test1 "test1 - 56" "arg1: 0 arg2: (none) aFlag: 0x |
| 4 |
|
| 5 |
run test1 "test1 - 57" "arg1: 0 arg2: (none) aBits: foo,baz" --bits foo,bar,baz,!bar |
| 6 |
|
| 7 |
-run test1 "test1 - 58" "\ |
| 8 |
-Usage: lt-test1 [-I?] [-c|--cb2=STRING] [--arg1] [-2|--arg2=ARG] |
| 9 |
- [-3|--arg3=ANARG] [-onedash] [--optional=STRING] [--val] |
| 10 |
- [-i|--int=INT] [-s|--short=SHORT] [-l|--long=LONG] |
| 11 |
- [-L|--longlong=LONGLONG] [-f|--float=FLOAT] [-d|--double=DOUBLE] |
| 12 |
- [--randint=INT] [--randshort=SHORT] [--randlong=LONG] |
| 13 |
- [--randlonglong=LONGLONG] [--argv=STRING] [--bitset] [--bitclr] |
| 14 |
- [--bitxor] [--nstr=STRING] [--lstr=STRING] [-I|--inc] |
| 15 |
- [-c|--cb=STRING] [--longopt] [-?|--help] [--usage] [--simple=ARG]" --usage |
| 16 |
-run test1 "test1 - 59" "\ |
| 17 |
-Usage: lt-test1 [OPTION...] |
| 18 |
- --arg1 First argument with a really long |
| 19 |
- description. After all, we have to test |
| 20 |
- argument help wrapping somehow, right? |
| 21 |
- -2, --arg2=ARG Another argument (default: \"(none)\") |
| 22 |
- -3, --arg3=ANARG A third argument |
| 23 |
- -onedash POPT_ARGFLAG_ONEDASH: Option takes a single - |
| 24 |
- --optional[=STRING] POPT_ARGFLAG_OPTIONAL: Takes an optional |
| 25 |
- string argument |
| 26 |
- --val POPT_ARG_VAL: 125992 141421 |
| 27 |
- -i, --int=INT POPT_ARG_INT: 271828 (default: 271828) |
| 28 |
- -s, --short=SHORT POPT_ARG_SHORT: 4523 (default: 4523) |
| 29 |
- -l, --long=LONG POPT_ARG_LONG: 738905609 (default: 738905609) |
| 30 |
- -L, --longlong=LONGLONG POPT_ARG_LONGLONG: 738905609 (default: |
| 31 |
- 738905609) |
| 32 |
- -f, --float=FLOAT POPT_ARG_FLOAT: 3.14159 (default: 3.14159) |
| 33 |
- -d, --double=DOUBLE POPT_ARG_DOUBLE: 9.8696 (default: 9.8696) |
| 34 |
- --randint=INT POPT_ARGFLAG_RANDOM: experimental |
| 35 |
- --randshort=SHORT POPT_ARGFLAG_RANDOM: experimental |
| 36 |
- --randlong=LONG POPT_ARGFLAG_RANDOM: experimental |
| 37 |
- --randlonglong=LONGLONG POPT_ARGFLAG_RANDOM: experimental |
| 38 |
- --argv STRING POPT_ARG_ARGV: append string to argv array |
| 39 |
- (can be used multiple times) |
| 40 |
- --[no]bitset POPT_BIT_SET: |= 0x7777 |
| 41 |
- --[no]bitclr POPT_BIT_CLR: &= ~0xf842 |
| 42 |
- --bitxor POPT_ARGFLAG_XOR: ^= (0x8ace^0xfeed) |
| 43 |
- --nstr=STRING POPT_ARG_STRING: (null) (default: null) |
| 44 |
- --lstr=STRING POPT_ARG_STRING: \"123456789...\" (default: |
| 45 |
- \"This tests default strings and exceeds the |
| 46 |
- ... limit. |
| 47 |
- 123456789+123456789+123456789+123456789+123456789+ 123456789+123456789+123456789+123456789+123456789+ 1234567...\") |
| 48 |
- |
| 49 |
-arg for cb2 |
| 50 |
- -c, --cb2=STRING Test argument callbacks |
| 51 |
- -I, --inc An included argument |
| 52 |
- |
| 53 |
-Callback arguments |
| 54 |
- -c, --cb=STRING Test argument callbacks |
| 55 |
- --longopt Unused option for help testing |
| 56 |
- |
| 57 |
-Options implemented via popt alias/exec: |
| 58 |
- --simple=ARG simple description |
| 59 |
- |
| 60 |
-Help options: |
| 61 |
- -?, --help Show this help message |
| 62 |
- --usage Display brief usage message" --help |
| 63 |
- |
| 64 |
#run_diff test3 "test3 - 51" test3-data/01.input test3-data/01.answer |
| 65 |
#run_diff test3 "test3 - 52" test3-data/02.input test3-data/02.answer |
| 66 |
#run_diff test3 "test3 - 53" test3-data/03.input test3-data/03.answer |