diff options
author | Brad King <brad.king@kitware.com> | 2014-03-31 20:22:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-01 13:50:56 (GMT) |
commit | b88536173b6ca2e79d8837bed62b9452920a319e (patch) | |
tree | 18e020e333dedfdff1b7e00ea52ca31a0266174a /test | |
parent | 9b059184628f1d7dea927a6f08a3ac70f8036da4 (diff) | |
download | CastXML-b88536173b6ca2e79d8837bed62b9452920a319e.zip CastXML-b88536173b6ca2e79d8837bed62b9452920a319e.tar.gz CastXML-b88536173b6ca2e79d8837bed62b9452920a319e.tar.bz2 |
castxml: Report help with '-help' and '--help'
Also pass the flag through so Clang reports its help too.
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | test/expect/cmd.help1-stderr.txt | 1 | ||||
-rw-r--r-- | test/expect/cmd.help1-stdout.txt | 7 | ||||
-rw-r--r-- | test/expect/cmd.help2-stderr.txt | 1 | ||||
-rw-r--r-- | test/expect/cmd.help2-stdout.txt | 7 |
5 files changed, 18 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6d3d8a9..19c00dc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -63,6 +63,8 @@ set(empty_cxx ${input}/empty.cxx) set(empty_m ${input}/empty.m) set(empty_mm ${input}/empty.mm) +castxml_test_cmd(help1 -help) +castxml_test_cmd(help2 --help) castxml_test_cmd(no-arguments) castxml_test_cmd(version --version) diff --git a/test/expect/cmd.help1-stderr.txt b/test/expect/cmd.help1-stderr.txt new file mode 100644 index 0000000..10f3293 --- /dev/null +++ b/test/expect/cmd.help1-stderr.txt @@ -0,0 +1 @@ +^$ diff --git a/test/expect/cmd.help1-stdout.txt b/test/expect/cmd.help1-stdout.txt new file mode 100644 index 0000000..9b47306 --- /dev/null +++ b/test/expect/cmd.help1-stdout.txt @@ -0,0 +1,7 @@ +^Usage: castxml .* + +Help for the internal Clang compiler appears below. + +--------------------------------------------------------------- + +OVERVIEW: clang LLVM compiler diff --git a/test/expect/cmd.help2-stderr.txt b/test/expect/cmd.help2-stderr.txt new file mode 100644 index 0000000..10f3293 --- /dev/null +++ b/test/expect/cmd.help2-stderr.txt @@ -0,0 +1 @@ +^$ diff --git a/test/expect/cmd.help2-stdout.txt b/test/expect/cmd.help2-stdout.txt new file mode 100644 index 0000000..9b47306 --- /dev/null +++ b/test/expect/cmd.help2-stdout.txt @@ -0,0 +1,7 @@ +^Usage: castxml .* + +Help for the internal Clang compiler appears below. + +--------------------------------------------------------------- + +OVERVIEW: clang LLVM compiler |