summaryrefslogtreecommitdiffstats
path: root/Tests/Module/GenerateExportHeader/libstatictest
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-11 00:01:50 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-12-15 10:22:19 (GMT)
commit4017db13aa54527e979f80f059b9aab1b344734e (patch)
treeac32315a438fd81911dc859a7abecb971a20b590 /Tests/Module/GenerateExportHeader/libstatictest
parenta2489ce49c0cbf5582a29ef8c4a0d9728994f465 (diff)
downloadCMake-4017db13aa54527e979f80f059b9aab1b344734e.zip
CMake-4017db13aa54527e979f80f059b9aab1b344734e.tar.gz
CMake-4017db13aa54527e979f80f059b9aab1b344734e.tar.bz2
Speed up the GenerateExportHeader unit test (#14453).
Instead of running many small tests with many cmake projects, simply compare the generated export header against a reference. Remove the helper macros and the try_compiles which are duplicates of the library build tests.
Diffstat (limited to 'Tests/Module/GenerateExportHeader/libstatictest')
-rw-r--r--Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt18
1 files changed, 0 insertions, 18 deletions
diff --git a/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt b/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt
deleted file mode 100644
index eb6bb87..0000000
--- a/Tests/Module/GenerateExportHeader/libstatictest/CMakeLists.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-
-macro(static_build_pass Source Message)
- build_pass("libstatic.h" "libstatic" "libstatic" "${Source}" ${Message})
-endmacro()
-
-macro(static_build_fail Source Message)
- build_fail("libstatic.h" "libstatic" "libstatic" "${Source}" ${Message})
-endmacro()
-
-static_build_pass("Libstatic l; return l.libstatic_exported();" "Failed to build exported.")
-
-# if (COMPILER_HAS_DEPRECATED)
-# static_build_fail("Libstatic l; return l.libstatic_deprecated();" "Built use of deprecated class method. This should not be possible.")
-# static_build_fail("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.")
-# else()
-# static_build_pass("Libstatic l; return l.libstatic_deprecated();" "Built use of deprecated class method. This should not be possible.")
-# static_build_pass("libstatic_deprecated();" "Built use of deprecated function. This should not be possible.")
-# endif()