Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tools: add segfault detection for checkusage.sh | Ruediger Meier | 2017-06-29 | 1 | -2/+4 |
| | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl> | ||||
* | tools: checkusage can dump all command output | Ruediger Meier | 2017-06-27 | 1 | -0/+10 |
| | | | | | | | | | | | | | | | | | use $ make CU_DUMP=1 checkusage for easily reviewing and comparing all output in /tmp/checkusage--help /tmp/checkusage--version /tmp/checkusage--unknownopt This was a big help when doing all my last usage cleanup. Actually I used it to dump the original output, edited it how I would like it, and then changed our programs to match the wanted output. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl> | ||||
* | tools: ignore unsafe commands in checkusage.sh | Ruediger Meier | 2017-06-27 | 1 | -7/+9 |
| | | | | | | These commands behave unusual with --unknownopt. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl> | ||||
* | tools: add checkusage.sh | Ruediger Meier | 2017-06-26 | 1 | -0/+145 |
Just some simple generic tests for our UL commands, regarding options --help, --version and --unknownopt. The script looks still a bit weired but could be polished to be used in tests/. It would be the first time testing at least "something" for *all* built binaries (currently 109! commands). For the record here are the current candidates with possible problems: $ make checkusage agetty: --unknownopt, stderr too long: 45 blockdev: --unknownopt, stderr too long: 28 flock: --help, no stdout flock: --help, non-empty stderr getopt: --help, returns error kill: --unknownopt, stderr too short: 1 lsipc: --unknownopt, stderr too long: 77 pg: --unknownopt, stderr too long: 23 renice: --unknownopt, stderr too long: 18 rtcwake: --unknownopt, non-empty stdout rtcwake: --unknownopt, stderr too long: 21 sulogin: --unknownopt, stderr too long: 17 write: --unknownopt, stderr too long: 12 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl> |