summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/Executable
Commit message (Collapse)AuthorAgeFilesLines
* Add additional <= and >= comparison operatorsChuck Atkins2016-08-091-17/+183
| | | | | This adds the LESS_EQUAL, GREATER_EQUAL, and associated STR and VERSION equivalents to use the combined <= and >= functionality.
* Use string(APPEND) in TestsDaniel Pfeifer2016-07-271-2/+2
| | | | | | | Automate with: find Tests -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
* Revise C++ coding style using clang-formatKitware Robot2016-05-166-248/+204
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Format include directive blocks and ordering with clang-formatBrad King2016-04-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort include directives within each block (separated by a blank line) in lexicographic order (except to prioritize `sys/types.h` first). First run `clang-format` with the config file: --- SortIncludes: false ... Commit the result temporarily. Then run `clang-format` again with: --- SortIncludes: true IncludeCategories: - Regex: 'sys/types.h' Priority: -1 ... Commit the result temporarily. Start a new branch and cherry-pick the second commit. Manually resolve conflicts to preserve indentation of re-ordered includes. This cleans up the include ordering without changing any other style. Use the following command to run `clang-format`: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '(Lexer|Parser|ParserHelper)\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i This selects source files that do not come from a third-party. Inspired-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
* Xcode: Disable test for system include dirsGregor Jasny2016-02-081-1/+2
|
* Tests: Remove incorrect indentation from Complex test commentBrad King2015-01-221-1/+1
|
* Encoding: Modify tests to work using non-ascii paths.Clinton Stimpson2015-01-092-16/+20
| | | | | | | | | | For complex*, CustomCommand and OutDir tests, non-ascii paths are avoided in test code by using relative paths, and setting the working when running the test. This also avoids the need to internationalize the test code. For RunCMake.GeneratorExpression, use a UTF-8 encoding in file(STRINGS) to retrieve the compiled absolute path correctly.
* Drop compatibility with CMake < 2.4Brad King2013-10-232-4/+3
| | | | | | | | | | | | Drop all behavior activated by setting CMAKE_BACKWARDS_COMPATIBILITY to a value lower than 2.4, and generate an error when projects or the user attempt to do so. In the error suggest using a CMake 2.8.x release. Teach cmake_minimum_required to warn about projects that do not require at least CMake 2.4. They are not supported by CMake >= 3.0. Replace the documentation of CMAKE_BACKWARDS_COMPATIBILITY with a reference to policy CMP0001.
* get_filename_component: Add explicit unit testsBrad King2013-04-161-80/+0
| | | | | Add test RunCMake.get_filename_component to cover cases of the command. Remove redundant coverage of these cases from the "complex" tests.
* Use PRE_LINK instead of PRE_BUILD when testing PRE_LINK.James Bigler2013-03-041-1/+1
|
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-14/+14
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-133-85/+85
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-134-71/+71
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* complex: Remove unused option to test CMakeLibBrad King2011-12-232-31/+0
| | | | | Now that the Complex tests do not depend on cmSystemTools or other classes from CMakeLib the COMPLEX_TEST_CMAKELIB option is useless.
* complex: Remove test dependence on cmSystemToolsBrad King2011-12-231-12/+12
| | | | Use C standard 'remove' and POSIX standard 'stat'.
* complex: Move cmSystemTools::UpperCase test to CMakeLibTestsBrad King2011-12-231-14/+0
| | | | | This test belongs in the CMakeLibTests test driver executable which correctly links to CMakeLib.
* complex: Simplify test for single-character exe nameBrad King2011-12-233-37/+13
| | | | | Run the test executable as a custom command instead of depending on cmSystemTools::RunSingleCommand.
* complex: Move GeneratedFileStream test to CMakeLibTestsBrad King2011-12-232-88/+1
| | | | | | This test belongs in the CMakeLibTests test driver executable which correctly links to CMakeLib. Fix incorrect library link order in the Complex tests exposed by this change.
* complex: Remove dynamic loader testsBrad King2011-12-231-61/+1
| | | | | Everything covered by these tests is now covered by the KWSys DynamicLoader test and the Plugin test.
* complex: Remove ancient unused ComplexRelativePaths testBrad King2011-12-231-4/+2
|
* Fix vs2010 project generation error when HEADER_FILE_ONLY is set.Bill Hoffman2010-12-202-1/+9
| | | | | | | In vs2010 a bad project file could be generated if a .c or .cxx file was marked with HEADER_FILE_ONLY, if it was in a library that contained both c and c++ code. This fixes the error in the code, and adds a test for this case.
* Switch to using libarchive from libtar for cpack and cmake -E tarBill Hoffman2009-10-301-2/+5
| | | | | | This allows for a built in bzip and zip capability, so external tools will not be needed for these packagers. The cmake -E tar xf should be able to handle all compression types now as well.
* ENH: Remove CMAKE_ANSI_CFLAGS from testsBrad King2009-07-081-1/+0
| | | | | As of CMake 2.6 this variable is not defined, and the ANSI flags for the HP compiler are simply hard-coded in the default C flags.
* ENH: make this test pass if new curl is onBill Hoffman2008-11-211-1/+1
|
* ENH: only link in curl directories that exist, this will help with vs6 nmakeBill Hoffman2008-11-201-3/+6
|
* ENH: make it work if new curl is onBill Hoffman2008-11-191-4/+3
|
* ENH: make it work if new curl is onBill Hoffman2008-11-181-1/+5
|
* ENH: Add if(TARGET) commandBrad King2008-08-201-0/+17
| | | | | | | | | | It is useful to be able to test if a target has been created. Often targets are created only inside conditions. Rather than storing the result of the condition manually for testing by other parts of the project, it is much easier for the other parts to just test for the target's existence. This will also be useful when find-modules start reporting results with IMPORTED targets and projects want to test if a certain target is available.
* ENH: support parenthesis as arguments and in conditionals feature request #6191Ken Martin2008-06-261-0/+6
|
* ENH: complex must link to curl nowBill Hoffman2008-02-071-1/+2
|
* ENH: Implement linking with paths to library files instead of -L and -l ↵Brad King2008-01-221-115/+3
| | | | | | | | | | | | | | | | | separation. See bug #3832 - This is purely an implementation improvement. No interface has changed. - Create cmComputeLinkInformation class - Move and re-implement logic from: cmLocalGenerator::ComputeLinkInformation cmOrderLinkDirectories - Link libraries to targets with their full path (if it is known) - Dirs specified with link_directories command still added with -L - Make link type specific to library names without paths (name libfoo.a without path becomes -Wl,-Bstatic -lfoo) - Make directory ordering specific to a runtime path computation feature (look for conflicting SONAMEs instead of library names) - Implement proper rpath support on HP-UX and AIX.
* ENH: Make per-configuration COMPILE_DEFINITIONS_<CONFIG> directory property ↵Brad King2008-01-181-1/+5
| | | | initialized from parent.
* ENH: Adding test for using HEADER_FILE_ONLY to avoid building a .cxx file.Brad King2007-11-192-1/+6
|
* ENH: fix leakBill Hoffman2007-08-211-0/+1
|
* BUG: Disable test of feature that is not documented or implemented everywhere.Brad King2007-05-162-1/+4
|
* BUG: Fixed cmLocalVisualStudio7Generator to deal with quotes in macro ↵Brad King2007-05-092-1/+15
| | | | definitions properly. This addresses bug#4983.
* ENH: Testing new target properties RUNTIME_OUTPUT_DIRECTORY, ↵Brad King2007-03-121-2/+7
| | | | LIBRARY_OUTPUT_DIRECTORY, and ARCHIVE_OUTPUT_DIRECTORY. This is an incremental fix for bug#2240 and bug#4210.
* ENH: Added smoke test for user-value flag mapping for VS IDE.Brad King2007-02-011-0/+6
|
* COMP: Fixed typo: CMAKE_TEST_CMAKELIB -> COMPLEX_TEST_CMAKELIB.Brad King2006-10-221-5/+5
|
* ENH: Added explicit name for option to test CMakeLib. Added option to ↵Brad King2006-10-192-9/+9
| | | | disable testing of CMakeLib if system utility libraries are used until linking made easier.
* BUG: Fix link flags on cygwin shared libraries. This requires that the ↵Brad King2006-10-051-1/+1
| | | | shared library prefix be supported in the link library regex.
* BUG: Run testSystemDir test only if -isystem flag is available.Brad King2006-10-051-2/+2
|
* ENH: Adding SYSTEM option to INCLUDE_DIRECTORIES command. This addresses ↵Brad King2006-10-052-0/+8
| | | | bug #3462.
* ENH: Renamed NOT_IN_ALL to EXCLUDE_FROM_ALL.Brad King2006-10-021-1/+1
|
* ENH: Added NOT_IN_ALL option for ADD_LIBRARY and ADD_EXECUTABLE to avoid ↵Brad King2006-10-022-0/+18
| | | | building the targets by default.
* ENH: added test for elseifKen Martin2006-09-221-0/+6
|
* ENH: Added test for linking to a static library that is next to a shared ↵Brad King2006-09-152-1/+24
| | | | library. See bug#1644 for related changes.
* BUG: Make sure sources with unknown extensions are not compiled by VS.Brad King2006-08-032-1/+2
|
* ENH: Adding test for source files and header files with the same base name ↵Brad King2006-08-014-2/+11
| | | | in the same target.
* BUG: Fix REMOVE_DEFINITIONS command to not remove substrings.Brad King2006-05-232-0/+20
|