]> git.ipfire.org Git - thirdparty/curl.git/commit
CMake: fix runtests.pl with CMake, add new test targets
authorPeter Wu <peter@lekensteyn.nl>
Sun, 10 May 2020 00:12:12 +0000 (02:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 12 May 2020 06:50:17 +0000 (08:50 +0200)
commitad6416986755e417c66e2c646d532561b445a5b5
tree88a3b56f838cdefd14f6a21bd22b10e0a25a0b1f
parentc2ab2494ef375bfc5d621b39badabeb9a0c86f6a
CMake: fix runtests.pl with CMake, add new test targets

  * runtests.pl:
    - Fix out-of-tree build under CMake when srcdir is not set. Default
      srcdir to the location of runtests.pl.
    - Add a hack to allow CMake to use the TFLAGS option as documented
      in tests/README and used in scripts/travis/script.sh.
  * Bump CMake version to 3.2 for USES_TERMINAL, dropping Debian Jessie
    support (no one should care, it is already EOL.).
  * Remove CTest since it defines its own 'test' target with no tests
    since all unittests are already broken and not built by default.
  * Add new test targets based on the options from Makefile.am. Since
    new test targets are rarely added, I opted for duplicating the
    runtests.pl options as opposed to creating a new Makefile.inc file.
    Use top-level target names (test-x) instead of x-test since that is
    used by CI and others.

Closes #5358
CMakeLists.txt
docs/TODO
tests/CMakeLists.txt
tests/runtests.pl
tests/unit/CMakeLists.txt