]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: drop test_suite configure argument
authorPavel Hrdina <phrdina@redhat.com>
Fri, 24 Jul 2020 14:04:19 +0000 (16:04 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:26:31 +0000 (09:26 +0200)
With autoconf this option controlled if the test suite is compiled by
default or not with the fact that it will be compiled later when
running `make check`.

With meson it is not possible to compile it later when running
`ninja test` as it will be always compiled if referenced by `test()`
function in meson.build files.

Since we cannot postpone compilation of the test suite drop this option
as it will not be converted to meson.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
configure.ac
tests/Makefile.am

index 33bd203e561462aa2e7bd9f30804dfdac8036872..7acf3f2fe70b52bb456d008acfcdb740c064b5a0 100644 (file)
@@ -729,23 +729,6 @@ if test -z "$PERL"; then
          AC_MSG_ERROR(['perl' binary is required to build libvirt])
 fi
 
-LIBVIRT_ARG_WITH([TEST_SUITE], [build test suite by default], [check])
-case "$with_test_suite" in
-    yes|no|check) ;;
-    *) AC_MSG_ERROR([bad value ${withval} for tests option]) ;;
-esac
-
-AC_MSG_CHECKING([Whether to build test suite by default])
-if test "$with_test_suite" = "check" ; then
-  if test -d $srcdir/.git ; then
-    with_test_suite=yes
-  else
-    with_test_suite=no
-  fi
-fi
-AC_MSG_RESULT([$with_test_suite])
-AM_CONDITIONAL([WITH_TESTS], [test "$with_test_suite" = "yes"])
-
 LIBVIRT_ARG_ENABLE([EXPENSIVE_TESTS],
                    [set the default for enabling expensive tests ]
                      [(long timeouts), use VIR_TEST_EXPENSIVE to ]
index 415b875ec45892f4a8090a07ec7159fd09cd9dba..00a6276ec050dba81ebbeade1e3ae109ad579383 100644 (file)
@@ -362,13 +362,8 @@ file-access-clean:
        > test_file_access.txt
 endif WITH_LINUX
 
-if WITH_TESTS
 noinst_PROGRAMS = $(test_programs) $(test_helpers)
 noinst_LTLIBRARIES = $(test_libraries)
-else ! WITH_TESTS
-check_PROGRAMS = $(test_programs) $(test_helpers)
-check_LTLIBRARIES = $(test_libraries)
-endif ! WITH_TESTS
 
 TESTS = $(test_programs) \
        $(test_scripts)
@@ -1256,11 +1251,7 @@ seclabeltest_LDADD = $(LDADDS)
 
 if WITH_SECDRIVER_SELINUX
 if WITH_ATTR
-if WITH_TESTS
 noinst_LTLIBRARIES += libsecurityselinuxhelper.la
-else ! WITH_TESTS
-check_LTLIBRARIES += libsecurityselinuxhelper.la
-endif ! WITH_TESTS
 
 libsecurityselinuxhelper_la_SOURCES = \
        securityselinuxhelper.c