diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2003-05-18 12:50:49 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2003-05-18 12:50:49 +0000 |
commit | aa41b765081a0322e59e60764f17458bc3a352ee (patch) | |
tree | 061a30d1bb77b18f2dca2c1da8a6348ea7bcb9a1 /test | |
parent | 86712e07ce367d2dd016080d6d945834ba3430ae (diff) | |
download | libapr-aa41b765081a0322e59e60764f17458bc3a352ee.tar.gz |
add "-l" option for listing testcases to make it easier for a regression
test to run them one at a time, since it avoids having to hard-code the
testcase names
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64507 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testall.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testall.c b/test/testall.c index cbaa4679e..a7d803064 100644 --- a/test/testall.c +++ b/test/testall.c @@ -135,6 +135,12 @@ int main(int argc, char *argv[]) exclude = 1; continue; } + if (!strcmp(argv[i], "-l")) { + for (i = 0; tests[i].func != NULL; i++) { + printf("%s\n", tests[i].testname); + } + exit(0); + } if (argv[i][0] == '-') { fprintf(stderr, "invalid option: `%s'\n", argv[i]); exit(1); |