From: Stephan Beyer Date: Sun, 22 Jun 2008 15:04:26 +0000 (+0200) Subject: Extend parse-options test suite X-Git-Tag: v1.5.6.1~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/010a2dacc1acf3305e399ef1eb2e620110b95d5e?ds=inline;hp=-c Extend parse-options test suite This patch serves two purposes: 1. test-parse-option.c should be a more complete example for the parse-options API, and 2. there have been no tests for OPT_CALLBACK, OPT_DATE, OPT_BIT, OPT_SET_INT and OPT_SET_PTR before. Signed-off-by: Stephan Beyer Signed-off-by: Junio C Hamano --- 010a2dacc1acf3305e399ef1eb2e620110b95d5e diff --git a/t/t0040-parse-options.sh b/t/t0040-parse-options.sh index 9965cfa1dc..6309aed451 100755 --- a/t/t0040-parse-options.sh +++ b/t/t0040-parse-options.sh @@ -11,23 +11,35 @@ cat > expect.err << EOF usage: test-parse-options -b, --boolean get a boolean + -4, --or4 bitwise-or boolean with ...0100 + -i, --integer get a integer -j get a integer, too + --set23 set integer to 23 + -t