summaryrefslogtreecommitdiffstats
path: root/test/run.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-15 18:29:01 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-16 13:20:53 (GMT)
commit5ded44aea8b7b5b979f674db531e6aecbb7df44f (patch)
tree01b31f234c5aeb3a7fc06c112bd8544f693ab68f /test/run.cmake
parent14920d65e1ae550a375bef282a4232ca317ccfd7 (diff)
downloadCastXML-5ded44aea8b7b5b979f674db531e6aecbb7df44f.zip
CastXML-5ded44aea8b7b5b979f674db531e6aecbb7df44f.tar.gz
CastXML-5ded44aea8b7b5b979f674db531e6aecbb7df44f.tar.bz2
test: Add cases for --castxml-cc-(gnu|msvc) detection
Create dummy gnu-like and msvc-like compiler binaries. Use them with the --castxml-cc-<id> options to verify that the preprocessor definitions and include directories are detected as expected.
Diffstat (limited to 'test/run.cmake')
-rw-r--r--test/run.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run.cmake b/test/run.cmake
index 854cf8c..0f027ec 100644
--- a/test/run.cmake
+++ b/test/run.cmake
@@ -19,6 +19,10 @@ if(xml)
file(REMOVE "${xml}")
endif()
+if(prologue)
+ include(${prologue})
+endif()
+
execute_process(
COMMAND ${command}
OUTPUT_VARIABLE actual_stdout