summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary configure time operations from CTestTest* testsZach Mullen2009-12-026-48/+0
|
* Make CTestTestTimeout time configurableBrad King2009-12-023-3/+9
| | | | | | | | | | | | | | | | In this test we start up a cmake script that runs a process that sleeps, and the timeout for the script is shorter than the sleep time. However, in order to properly detect that the sleeping grandchild is killed when the script times out we need to give sufficient time for the script to start the grandchild. Otherwise the log file for the grandchild is not available. On some (cygwin) builds our previous 1 second timeout for the script was not long enough to let the interpreter load and start the grandchild. We make the timeout time configurable by setting CTestTestTimeout_TIME in the cache for CMake itself. It tells the test how long to let the script run. The grandchild always sleeps for 4 seconds longer to ensure a comfortable window during which the process tree can be killed.
* Remove unused code from CTest test suiteBrad King2009-12-027-79/+5
| | | | | We remove from Tests/CTestTest*/CMakeLists.txt some historical cruft that is no longer used by the test suite.
* KWSys Nightly Date StampKWSys Robot2009-12-021-1/+1
|
* Use one arch for 1.4-compatible check_type_sizeBrad King2009-12-011-0/+16
| | | | | | | | | The CMakeBackwardCompatibilityC module provides some try-compile results that were automatically provided by CMake 1.4. When performing the checks for OS X universal binaries we just pick one architecture to get through the checks without error. Since CMake 1.4 did not support any universal binaries, projects that want them should not depend on this compatibility module anyway.
* Fix #9970: Use execute_process instead of deprecated exec_program.James Bigler2009-12-011-1/+1
|
* Drop -rdynamic from Linux build rulesBrad King2009-12-0112-16/+0
| | | | | | | | | | | | | | | This is a GNU-specific option that should not be specified for all compilers on Linux. It tells the GNU compiler to pass -export-dynamic to the linker to export symbols from executables for use by plugins. Since we provide the ENABLE_EXPORTS target property to do the same thing in a cross-platform way, there is no need to pass -rdynamic always. Since the option is not useful for GNU tools and breaks other tools on Linux we simply remove it from CMAKE_SHARED_LIBRARY_LINK_<lang>_FLAGS. This also allows us to stop setting the variable in other Linux compiler files just to erase the bad flag. See issue #9985.
* curl: Hard-code HAVE_W* macros on UNIX for CygwinBrad King2009-12-011-0/+6
| | | | | | | | | The curl library code assumes that HAVE_WINDOWS_H and similar macros are not defined on Cygwin. Its CMake code achieved this by not even testing for the corresponding headers on UNIX platforms. However, libarchive does test HAVE_WINDOWS_H and confuses our curl build. We avoid the conflict by hard-coding the macros to 0 for UNIX builds inside the curl tree.
* Always use a configuration for CTestTestTimeoutBrad King2009-12-012-1/+14
| | | | | | | | This test requires that the dashboard script it drives be invoked with "ctest -C <config> -S ...". We create a "CTestTest_CONFIG" variable to hold a configuration selected at test time. We use the configuration given to the outer CTest, if any, and then default to either Debug or the CMAKE_BUILD_TYPE.
* KWSys: List processes with "ps -ef" on OpenSolarisBrad King2009-12-011-1/+2
| | | | | | | | | In order to kill process trees we need to list all processes to find those whose parent we are killing. We implement process listing on OpenSolaris by using "ps -ef" and parsing the resulting format: UID PID PPID C STIME TTY TIME CMD %*s %d %d %*[^\n]\n
* KWSys: Use "ps -Af" for process list on QNXBrad King2009-12-011-0/+3
| | | | | | | | | In order to kill process trees we need to list all processes to find those whose parent we are killing. We implement process listing on QNX using "ps -Af" and parsing the resulting format: UID PID PPID C STIME TTY TIME CMD %*d %d %d %*[^\n]\n
* KWSys Nightly Date StampKWSys Robot2009-12-011-2/+2
|
* libarchive: Remove unused STDC_HEADERS try_runBrad King2009-11-307-95/+0
| | | | | This was the only try_run() in libarchive, and the result was not used in the source code. We remove it to allow cross-compiling to work.
* Don't allow -G -M on CUDA versions less than 3.0.James Bigler2009-11-301-1/+15
|
* CTest: Test process tree kill on timeoutBrad King2009-11-305-3/+34
| | | | | | | | | | | We extend the CTestTestTimeout test to check that when a test times out its children (grandchildren of ctest) are killed. Instead of running the timeout executable directly, we run it through a cmake script that redirects the timeout executable output to a file. A second test later runs and verifies that the timeout executable was unable to complete and write data to the log file. Only if the first inner test times out and the second inner test passes (log is empty) does the CTestTestTimeout test pass.
* KWSys: Fix process tree kill on 64-bit WindowsBrad King2009-11-301-1/+6
| | | | | | | | We enumerate processes to identify those whose parent is being killed so that we can recursively kill the children. Enumeration uses the Process32(First|Next) windows API functions, which accept PROCESSENTRY32 objects to be filled. This commit corrects the declaration of the entry structure to account for its size on 64-bit Windows.
* Document new timeout command line optionZach Mullen2009-11-301-0/+3
|
* Align test output for timeout condition.Zach Mullen2009-11-301-1/+1
|
* Added the --timeout option to ctest command line. This sets a global ↵Zach Mullen2009-11-303-1/+18
| | | | timeout on all tests if no more specific timeout is set on them.
* KWSys: Restore SIGSTOP/SIGKILL to end process treeBrad King2009-11-301-7/+15
| | | | | | | | | | | | | | | On UNIX systems we kill a tree of processes by performing a DFS walk of the tree. We send SIGSTOP to each process encountered, recursively handle its children, and then send SIGKILL. We once used the above approach in the past, but it was removed by the commit "Do not send both SIGSTOP and SIGKILL when killing a process". The commit was meant to work-around an OS X 10.3 bug in which the child would not always honor SIGKILL after SIGSTOP. At the time we wrongly assumed that the process tree remains intact after SIGKILL and before the child is reaped. In fact the grandchildren may be re-parented to ppid=1 even before the child is reaped, which causes the DFS walk to miss them.
* Singly-quote target names for Watcom linkerBrad King2009-11-302-4/+14
| | | | | | | The Watcom tools do their own command-line parsing and do not accept double-quotes. Instead we single-quote the target output name when invoking wlink and other Watcom tools. This fixes support for spaces in the target output directory path when it is not under the build tree.
* Cleanup CMakeBuildTest in test_clean targetBrad King2009-11-301-0/+1
| | | | | The test_clean target is supposed to remove all test build directories. We add the build directory for CMakeBuildTest because it was missing.
* KWSys Nightly Date StampKWSys Robot2009-11-301-1/+1
|
* KWSys Nightly Date StampKWSys Robot2009-11-291-1/+1
|
* CPackRPM:: Fix bug on Open SuSE 11.2 coming from initial fix of bug8972Eric Noulard2009-11-281-5/+18
| | | | Eric
* KWSys Nightly Date StampKWSys Robot2009-11-281-1/+1
|
* KWSys Nightly Date StampKWSys Robot2009-11-271-1/+1
|
* KWSys Nightly Date StampKWSys Robot2009-11-261-1/+1
|
* BUG 9969: document set_tests_properties TIMEOUT property.Zach Mullen2009-11-251-0/+2
|
* KWSys Nightly Date StampKWSys Robot2009-11-251-1/+1
|
* Fix for bug #9965 -i was not passed to -E commands.Bill Hoffman2009-11-251-1/+1
|
* Mac has gettimeofday defined, but cmsys wasn't aware of that, so it was ↵Zach Mullen2009-11-241-1/+1
| | | | falling back to using time() which only provides second resolution. Fixed to allow usec res.
* Improve fake $HOME test isolation codeBrad King2009-11-242-6/+10
| | | | | | | | | | | | | The commit "Fake $HOME to isolate tests from user" started setting $HOME in the CTest script environment. On some platforms tests depend on some local configuration in the home directory, such as the "cvs login" for KWSys in CTestTest3. In this commit we now construct a fake home dir during CMake config step and populate it with a .cvspass file needed by the test. We also check CTEST_NO_TEST_HOME to optionally disable the test home. See issue #9949.
* BUG 9961: ctest --help should not display a Generators sectionZach Mullen2009-11-243-1/+11
|
* Test CMP0015 OLD and NEW link_directories behaviorBrad King2009-11-246-0/+67
| | | | | We create a LinkDirectory test to check that the policy OLD and NEW behaviors work as documented. See issue #9697.
* Teach link_directories to recognize relative pathsBrad King2009-11-244-3/+59
| | | | | | | | We create CMake Policy CMP0015 to make link_directories() treat relative paths with respect to the source tree while retaining compatibility. This makes it consistent with include_directories() and other commands. Changes based on patch from Alex. See issue #9697.
* CTest: Move initial checkout to ctest_start()Brad King2009-11-247-86/+65
| | | | | | | | | | | | | | | | | | | | In CTest command-driven script mode we support starting without a source tree. Previously the ctest_start() command would do some initialization but could not do anything that required CTestConfig.cmake from the input source tree. Later, ctest_update() would run CTEST_CHECKOUT_COMMAND to create the source tree, and then re-initialize everything. This delayed-initialization approach led to many complicated cases of which only some worked. For example, the second initialization only worked correctly in Nightly mode and simply failed for Experimental and Continuous builds. A simpler solution is to run CTEST_CHECKOUT_COMMAND during ctest_start() and then have a single initialization path. In principle this change in behavior could break scripts that set the checkout command after ctest_start() but before ctest_update(). However, the convention we've always followed has been to set all variables before ctest_start(). See issue #9450.
* CTest: Simplify Initialize method signatureBrad King2009-11-242-9/+15
| | | | | | We make the cmCTest::Initialize method private since it is only called from inside the class implementation. We also combine the two boolean arguments into one since they both meant the same thing.
* Suppress Intel float-equality test warningsBrad King2009-11-242-0/+4
| | | | | | | We suppress Intel warning 1572 because the cases where we do equality tests are valid. Since this project does not do numerical computations we need not worry about real instances against which this warning protects.
* KWSys Nightly Date StampKWSys Robot2009-11-241-1/+1
|
* also provide QT_DESIGNER_EXECUTABLE and QT_LINGUIST_EXECUTABLEAlexander Neundorf2009-11-231-1/+18
| | | | Alex
* Remove dependence on Qt/STL support.Clinton Stimpson2009-11-231-15/+15
|
* KWSys: Work-around llvm-gcc-4.2 optimizer bugBrad King2009-11-231-0/+5
| | | | | Under -O3 optimization this compiler breaks our testProcess.c source file. We force -O0 for the file to avoid the problem.
* Fake $HOME to isolate tests from userBrad King2009-11-231-0/+7
| | | | | | | | | | On platforms with $HOME in the environment, some of our features use it to store information in the user home directory. However, tests for these features should not touch the real user home directory. Instead we configure a fake $HOME that points inside the build tree for use during testing. See issue #9949.
* 64 bit should be setting 64 bit and not 32 bit.Bill Hoffman2009-11-231-2/+2
|
* libarchive: Use one architecture for try-compilesBrad King2009-11-231-0/+7
| | | | | | | | | We use CHECK_TYPE_SIZE in libarchive to check for the existence of some types. For universal binary builds on the Mac, the size check can fail if it is inconsistent across architectures. However, we do not actually need the size so it is safe to do the checks for only one architecture. See issue #9913.
* BUG 9950: increase timeout for BootstrapTest to 1.5 hoursZach Mullen2009-11-231-1/+1
|
* KWSys Nightly Date StampKWSys Robot2009-11-231-1/+1
|
* CPackRPM: do not forget to include installed symlinks (bug 9927)Eric Noulard2009-11-221-1/+5
| | | | Eric
* don't use deprecated UsePkgConfig.cmake file in FindLibXslt.cmake, some ↵Alexander Neundorf2009-11-222-32/+22
| | | | | | | | | | cosmetics -use find_package(PkgConfig) instead of include(UsePkgConfig) -remove the "if already cached make silent" logic, this is already handled by find_package_handle_standard_args() -remove the if(WIN32) around pkg-config, it shouldn't be necessary Alex