summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Hook for scheduling tests in a random orderZach Mullen2009-10-291-2/+2
| | | | | This may help statistically detect implicit dependencies among unit tests while running in parallel.
* Fixed CTestTestRunScriptZach Mullen2009-10-295-30/+8
|
* Backout RunScript test again... (debugging on faraway)Zach Mullen2009-10-291-4/+4
|
* Fix RunScript test; it should now work on all platformsZach Mullen2009-10-294-4/+17
|
* Fix OutDir test on HP, MinGW, and CygwinBrad King2009-10-291-1/+1
| | | | | | | The commit "Test per-config OUTPUT_DIRECTORY properties" added this test with a find_library() call in a CMake script, which requires an explicit list of possible library prefixes and suffixes. This commit adds more suffixes to match the libraries built on HP, MinGW, and Cygwin.
* Add more coverage and use the ARGS option of try_runBill Hoffman2009-10-292-0/+33
|
* Increase timeout for the nightly build tests so that the poor mac nightly ↵David Cole2009-10-281-1/+1
| | | | build on dashmacmini2 might have enough time to complete successfully. Use CMAKE_LONG_TEST_TIMEOUT instead of a hard-coded number for the test TIMEOUT property so that a calling script may adjust it by setting a higher CTEST_TEST_TIMEOUT value.
* Increase timeout for the nightly build tests so that the poor mac nightly ↵David Cole2009-10-281-1/+1
| | | | build on dashmacmini2 might have enough time to complete successfully. Allow for up to 3 hours. After measuring successful runs for a few weeks, perhaps we can use a lower value.
* Avoid failure of CPackComponents test on dash16 and dash17 since makensis ↵David Cole2009-10-281-1/+9
| | | | was installed on those machines to increase coverage. Do not add install rules with absolute paths when makensis is going to be used to build an installer.
* Deleted old RunScript cmake scripts (renamed)Zach Mullen2009-10-282-13/+0
|
* Changed RunScript test to be in-source build safeZach Mullen2009-10-283-2/+15
|
* Test per-config OUTPUT_DIRECTORY propertiesBrad King2009-10-284-0/+88
| | | | | | | We test (ARCHIVE|LIBRARY|RUNTIME)_OUTPUT_DIRECTORY_<CONFIG> properties by building COnly as a subdirectory and setting the properties to put its files in specific locations. We build an executable that verifies the targets actually appear where expected.
* Create CMake.ELF test to cover cmELF furtherBrad King2009-10-276-0/+52
| | | | | This commit adds a CMake.ELF test to exercise cmELF and file(RPATH_*). We test all combinations of 32/64-bit and LSB/MSB binaries.
* Add test CMakeTestBadCommandLines. Also add --graphviz arg to cmake invoked ↵David Cole2009-10-272-0/+95
| | | | during the CPackComponents test. The purpose of each is to increase coverage of cmake.cxx.
* Avoid Intel linker crash in BuildDepends testBrad King2009-10-271-0/+8
| | | | | | | The BuildDepends test exercises incremental linking with MSVC and Intel tools on Windows. In some cases the Intel compiler creates objects that cause the MS linker it invokes to crash during incremental linking. We avoid the problem for this test by disabling incremental linking.
* Test if() boolean coersion and CMP0012 behaviorsBrad King2009-10-272-0/+159
| | | | | | We introduce the "CMake.If" test to try out conversion of constants and variables to boolean values in the if() command. We cover both OLD and NEW behavior for policy CMP0012.
* Add test to enable detecting differences between generation N and N+1 of a ↵David Cole2009-10-262-0/+180
| | | | cmake generated build tree. Theoretically, each generation run with exactly the same arguments should be identical to the previous generation... Practically, there are differences. This is a tool to help us measure those differences. For now, the test always succeeds. Eventually, we may add the code to make it fail when there are differences.
* Disable run_script test for now, it is failing currently on linuxZach Mullen2009-10-261-4/+4
|
* Added test coverage for cmCTestRunScriptCommandZach Mullen2009-10-263-0/+26
|
* Skip SHARED lib Fortran test with XL and old GNUBrad King2009-10-261-1/+15
| | | | | | | | | | The commit "Test all target types in Fortran" enabled a SHARED library in the Fortran test. However, we do not yet implement support for shared libraries with XL Fortran (it seems this requires using the C compiler to link). Furthermore, the old g77 2.97 from Red Hat does not support shared libs on Itanium because the g2c lib is not -fPIC. For now we just disable SHARED libs in the test for these tools.
* Fix Intel and MinGW Fortran DLL import librariesBrad King2009-10-262-1/+3
| | | | | | | | | We add Intel and MinGW Fortran linker options to create the import library portion of a DLL. This allows other binaries to link to a Fortran DLL. We also update the Fortran test to use a .def file to specify exports since there is no __declspec(dllexport) markup syntax in Fortran.
* Add a ctest test to cover cmCTestBatchTestHandler. Since its behavior isn't ↵Zach Mullen2009-10-261-2/+3
| | | | fully defined yet, we just run it as is and don't care much about the result.
* Turn on the NSIS binary for the CPackComponents test if NSIS is found. ↵David Cole2009-10-251-4/+9
| | | | Should increase coverage of the NSIS generator on the dash16 coverage dashboard.
* Test all target types in FortranBrad King2009-10-234-3/+19
| | | | | This teaches the Fortran test to try all basic target types (archive, shared lib, exe) with Fortran-only sources.
* Add test of all cmake -G generators. Ignore any errors from this as not all ↵David Cole2009-10-222-0/+109
| | | | generators are expected to be usable on all machines. Help to increase coverage of the various generators and cmake.cxx itself.
* More verbose BuildDepends test outputBrad King2009-10-221-2/+4
| | | | | We teach BuildDepends to always print the output from each try_compile. This may make debugging easier.
* Test OSX_ARCHITECTURES target propertyBrad King2009-10-214-2/+34
| | | | | | | We test the property with a project that fails to link due to an architecture mismatch between an executable and a static library. See issue #8725.
* Fix failing test. Forgot to double quote last arg to STRING.David Cole2009-10-201-3/+3
|
* Add test of all available CPack generators. Add this test with the goal of ↵David Cole2009-10-203-0/+94
| | | | increasing coverage of the cpack source code, even/especially when the underlying packager tool is not installed. The test does not fail if there is a cpack problem with a certain generator. I expect some generators will fail on every machine running a CMake dashboard.
* Added a ctest add_subdirectory test which fails before my patch made earlier ↵Zach Mullen2009-10-206-0/+65
| | | | today.
* Remove the rpath_remove_file_is_not_executable test case. It fails on ↵David Cole2009-10-172-3/+3
| | | | Windows, but passes on Linux. Put back later after addressing inconsistency.
* Fixed issues with message text in FILE command error situations. Added many ↵David Cole2009-10-172-3/+113
| | | | new test cases to increase the coverage of the FILE command even further.
* Add more testing coverage of the FILE command.David Cole2009-10-162-0/+116
|
* Allow test to pass even if an expected-to-fail submit claims 'Submission ↵David Cole2009-10-161-1/+2
| | | | successful' - apparently when there is a valid HTTP_PROXY involved, our submitting to an empty drop location appears to succeed. Presumably, the proxy simply takes it like a man, and then discards it...
* add a test which checks that cmake can build the latest stable KDE4 ↵Alexander Neundorf2009-10-152-0/+104
| | | | | | | | | | | (kdelibs) release To enable this test, the option TEST_KDE4_STABLE_BRANCH must be switched on. It can only be switched on if CMAKE_RUN_LONG_TESTS is ON. Then the test will only be added if Qt >= 4.5 can be found, Perl can be found and ZLIB can be found. Alex
* Increase ctest coverage. Introduce optionally on intentional compile errors ↵David Cole2009-10-154-1/+24
| | | | and warnings to the SmallAndFast project. Turn them on for the FailedSubmit tests to cover analyzing LABELS-related errors and warnings.
* Use LABELS in some ctest_coverage calls to increase coverage in ↵David Cole2009-10-152-1/+12
| | | | cmCTestCoverageHandler.cxx.
* Add LABELS to the SmallAndFast test project to increase coverage of ctest ↵David Cole2009-10-151-0/+7
| | | | code that is only invoked when labels are present.
* Fix crash on Windows. Remove trailing white space from regex. These changes ↵David Cole2009-10-151-1/+1
| | | | should correct all failures of the new FailedSubmit tests.
* Add another possible error message that curl might emit with an empty drop ↵David Cole2009-10-141-0/+1
| | | | location.
* Use macro instead of function since DASH2 continuous dashboard still uses ↵David Cole2009-10-141-2/+11
| | | | CMake 2.4.8 to drive the dashboard. Add clarifying comments so that a future developer does not delete seemingly unused variables: they are used: inside the input to the configure_file call.
* Increase ctest coverage. Add tests that intentionally call ctest_submit ↵David Cole2009-10-142-1/+70
| | | | without any drop location so that the submits fail. Call for each possible type of submit. Also use the launchers from these scripts.
* Reduce duration of ctest_sleep arguments. Add SmallAndFast project. Replace ↵David Cole2009-10-083-10/+28
| | | | kwsys with SmallAndFast to make CTestTest faster. (I will keep an eye on coverage results after this commit and make sure we still have equivalent ctest coverage.)
* Split Borland compiler information filesBrad King2009-10-081-0/+3
| | | | | | | | | | | This commit re-writes Borland compiler build rules. We split the rules into modern <os>-<id>-<lang> information modules but share a common macro between languages to avoid duplication. We also address a bug in the previous rules that would build some target types against the static Borland runtime and others against the shared Borland runtime in one build tree. Now we always use the shared runtime as is the default in the rules for MS tools.
* Make Complex test of CMakeLib more optionalBrad King2009-10-074-25/+12
| | | | | | | Previously we passed inputs to the decision to each Complex test and let the test source decide. This commit moves the decision out of the tests and makes it an option() in their source. This makes it possible to build the Complex tests from outside the CMake test tree.
* Fix find_package() when <pkg>_DIR is wrongBrad King2009-10-071-3/+33
| | | | | | | | | | | | When <pkg>_DIR is set to an incorrect version we search again and store the result in the variable, even if it is <pkg>_DIR-NOTFOUND. There was a bug in the case when the new search does not find anything and the old value came from a cache entry with UNINITALIZED type. The command used to try to load a package configuration file from the last place searched, and would leave the old wrong value in the entry. This commit fixes the behavior to avoid trying to load a missing file and to set the value to <pkg>_DIR-NOTFOUND as expected.
* More robust implicit link line detection regexBrad King2009-10-071-0/+8
| | | | | | | | The regex used by CMAKE_PARSE_IMPLICIT_LINK_INFO to detect link lines should not match lines that happen to have ".../ld.../..." in them. A linker name should match only as the last component of a path. See issue #9666.
* Use the correct CMake (the freshly built one) to drive the CMakeWizardTest.David Cole2009-10-071-1/+1
|
* Log implicit link information parsing actionsBrad King2009-10-061-1/+3
| | | | | | | This commit teaches the CMAKE_PARSE_IMPLICIT_LINK_INFO function to log its actions. We store the log in CMakeFiles/CMakeOutput.log at the top of the project build tree. This will make diagnosis of implicit link information parsing problems easier.
* Increase coverage. Intentionally trigger error conditions. Call all the ↵David Cole2009-10-064-0/+94
| | | | else*/end* functions without proper opening or containing code structure: else, elseif, endforeach, endfunction, endif, endmacro, endwhile.