Stephen Kelly
e253348ecd
Possibly fix test on HPUX.
2011-08-23 19:49:52 +02:00
David Cole
b00463f06c
QtAutomoc test: Pass QT_QMAKE_EXECUTABLE
...
...in case qmake is not in the PATH
2011-08-19 12:31:38 -04:00
Alex Neundorf
a6ccf3cb65
Use $(CXXFLAGS) and $(LDFLAGS) in the --find-package test Makefile
...
This should make the test succeed in the coverage builds, where CXXFLAGS
and LDFLAGS are set accordingly.
Alex
2011-08-18 18:43:33 +02:00
Stephen Kelly
42154ec01c
Fix up the regex command for Intel.
2011-08-18 13:29:06 +02:00
Alex Neundorf
678e124481
Only enable the automoc test after checking that Qt4 works
...
On some systems which contribute nightly builds there were strange
errors which seemed to hint that the installed Qt4 is not usable/
not usable with this compiler. So first check whether it works,
and only if this was successful, enable the test.
Alex
2011-08-18 00:16:02 +02:00
Alex Neundorf
7d693108fa
Only enable the test when using GNU make
...
The makefile used in the test uses $(shell ...), which is
AFAIK a GNU extension, and will probably not work e.g. with OpenBSD make.
According to the FreeBSD make manpage their make has a != assignment,
which seems to do something similar, but I don't have such a system
around for testing.
Also, the point of this test is not to write a portable makefile,
but to check whether cmake --find-package prints a correct string.
Alex
2011-08-17 23:44:34 +02:00
Alex Neundorf
3011149947
Make the test harder by always having a space in the include dirs
...
The commit message for the previous commit was wrong, it should
have been: fix the test by using $(shell ...) syntax instead
of backticks in the Makefile.
With backticks I couldn't get the quoting right.
Printing -I"/some/path with space" did not work, the compiler
complained that there is not file "with". Also backslashes in
different numbers did not make it work.
Alex
2011-08-17 22:53:35 +02:00
Alex Neundorf
ab57ff6156
Make the --find-package test harder
...
Now it is guaranteed that the include paths always contain a space.
This should make the cont. build fail.
Alex
2011-08-17 22:51:57 +02:00
Stephen Kelly
a147a069a5
Add some settings for non-truncation of test output.
2011-08-17 14:03:12 +02:00
Stephen Kelly
bf73e75941
Hopefully add version extraction for Intel.
2011-08-17 13:37:57 +02:00
Stephen Kelly
aa4f0b6ba8
Fix the version extraction regex for clang.
2011-08-17 13:32:48 +02:00
Stephen Kelly
a493d1a353
Test the correct cxx variable.
2011-08-17 13:32:20 +02:00
Stephen Kelly
b6ee2ee03a
Comment the test assertion for now
...
At least until I know which gcc versions do not pass.
2011-08-17 02:42:09 +02:00
Stephen Kelly
a9a8b9e8d1
Exclude win32 from hidden visibility checks.
2011-08-17 02:40:56 +02:00
Stephen Kelly
afae7a95a0
Start testing expected values for compiler flags.
...
Should help catch unhandled flag warnings so far not handled by
check_cxx_compiler_flag FAIL_REGEXen.
2011-08-17 02:36:22 +02:00
Alex Neundorf
2963d0b078
Fix logic which decides when to execute automoc test
...
Alex
2011-08-16 23:48:01 +02:00
David Cole
674be27a7f
Merge topic 'WriteConfigVersionFile_2TemplateFiles'
...
c9761de Improve documentation for WriteBasicConfigVersionFile.cmake
208bb90 Set UNSUITABLE instead of not COMPATIBLE
bb03c2d Really fix copyright notice
d50a61a Fix copyright notice
4ba09bc Add some tests for write_basic_config_version_file()
02b1e4b Add example to documentation
d216a67 Provide macro write_basic_config_version_file()
2011-08-16 17:03:00 -04:00
David Cole
a772f21a7d
Merge topic 'intel_fortran_vs2010'
...
3c53fbb Fix custom commands in VS2010 Fortran projects using CFG_INTDIR and test.
2011-08-16 17:01:33 -04:00
Alex Neundorf
626fc717c6
Much improved test, should now be executed on all UNIXes
...
Instead of relying on that some development package is installed on the
system, now a tiny library is built, which is the searched and used
during the test.
Alex
2011-08-16 22:31:26 +02:00
Alex Neundorf
bf8ef778a3
Add a test for automoc
...
The files are taken from the Qt examples. They are BSD licensed, so it
should be fine. I only edited main.cpp to use both widgets.
Alex
2011-08-16 02:13:26 +02:00
Alex Neundorf
aecfc1fd10
Fix test on OpenBSD with BSD make
...
BSD make doesn't seem to support -C, so do not use it,
According to the documentation the working directory is set
to CMAKE_CURRENT_BINARY_DIR anyway, so it should work just the same.
Alex
2011-08-16 00:08:43 +02:00
Stephen Kelly
10d8c446d5
Disable testing of deprecated macros.
...
It is not possible to test for it sanely across multiple ancient
compilers supported by cmake.
2011-08-14 15:45:36 +02:00
Alex Neundorf
6bb4ca3802
The makefile for the test was kindof wrong
...
Alex
2011-08-14 15:38:24 +02:00
Stephen Kelly
c41c68bfa4
Try to error on deprecated on Intel and SunCC.
2011-08-13 23:49:17 +02:00
Stephen Kelly
c448b09ad3
Perform the -Werror test only once.
...
This way, the output of the test should be visible on CDash.
2011-08-13 22:57:55 +02:00
Stephen Kelly
fb88c6e32a
Add some messaging output to make remaining issues findable.
2011-08-12 11:39:21 +02:00
Stephen Kelly
01e9e983e3
Test -Werror instead of enabling it per compiler.
...
Maybe the Intel compiler supports it too.
2011-08-12 10:47:08 +02:00
Stephen Kelly
9aab2aa77f
Expect the tests to pass if hidden visibilty is not enabled.
2011-08-12 10:42:16 +02:00
Stephen Kelly
856bdb317b
Don't change the expected build result based on the platform.
...
Hopefully the compiler feature tests will cover those cases.
2011-08-12 00:30:31 +02:00
Alex Neundorf
fd15b5e1c4
Only run the test if we are using a makefile generator under UNIX
...
Alex
2011-08-11 23:34:25 +02:00
Alex Neundorf
9fc87c6343
Add a test for the new --find-package mode
...
Alex
2011-08-11 23:34:17 +02:00
Stephen Kelly
e1f7ee3de7
Test for compiler features, instead of for specific platforms.
2011-08-11 19:06:23 +02:00
Stephen Kelly
9554e1013e
Split the deprecated available check from setting macro values.
2011-08-11 18:17:12 +02:00
Stephen Kelly
1590d5fe4f
Don't export methods on already exported classes.
...
This is always a mistake.
2011-08-11 10:55:12 +02:00
Stephen Kelly
1c6b41bee7
Remember to surround the other deprecated test in the Borland check.
2011-08-11 00:19:53 +02:00
Stephen Kelly
3f7e03643d
Export deprecated free methods too.
...
That way they can be linked to even after being deprecated.
2011-08-11 00:18:33 +02:00
Stephen Kelly
7924c1d6a8
Another attempt at fixing Borland.
...
Apparently it still needs to be exported, but only declspec(deprecated)
does not work.
2011-08-10 22:19:39 +02:00
Stephen Kelly
b4434591fb
Use the correct project name compiletest not compilefail
...
Should fix windows VS solution based builds.
2011-08-10 21:50:06 +02:00
Stephen Kelly
cff9493598
Only set the COMPILER_HAS_HIDDEN_VISIBILITY if GCC >= 4.2
...
Hearsay has it that before that version it didn't work properly.
Hopefully this will fix more dashboard builds.
2011-08-10 21:14:46 +02:00
Stephen Kelly
af443b830b
Set the CMAKE_RUNTIME_OUTPUT_DIRECTORY for windows builds.
2011-08-10 21:01:42 +02:00
Stephen Kelly
61726f867e
Only run the failure tests with gcc >= 4.2
2011-08-10 15:17:01 +02:00
Stephen Kelly
002ddf253c
Fix typo and tests failing as a result.
2011-08-10 14:58:00 +02:00
Stephen Kelly
44430379b7
Fix tests with clang.
2011-08-10 13:43:48 +02:00
Stephen Kelly
ffaa127b19
Test expected no-op instead of aborting the build.
...
Aborting causes make clean to fail if the executable is not created.
2011-08-10 11:54:35 +02:00
Stephen Kelly
6aca0e257b
Short-circuit the tests on unsupported compilers.
2011-08-10 10:41:38 +02:00
Stephen Kelly
706ed2b1b0
Add a newline at the end of the file.
...
Hopefully fix the test execution reported on CDash.
2011-08-09 15:02:48 +02:00
Stephen Kelly
8963716615
Add a newline at the end of the file.
...
Hopefully fix the test execution reported on CDash.
2011-08-09 00:18:00 +02:00
Stephen Kelly
def0a54e0a
Handle the case where the user changes the DEFINE_SYMBOL property.
...
This eases porting of KDE code.
2011-08-08 02:08:10 +02:00
Stephen Kelly
30880707c0
Add the GenerateExportMacro with unit tests.
...
Reviewed-by: Marcus D. Hanwell <marcus.hanwell@kitware.com>
2011-08-07 18:33:47 +02:00
Alex Neundorf
208bb9009b
Set UNSUITABLE instead of not COMPATIBLE
...
Alex
2011-08-05 22:42:57 +02:00