diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 3588ebd9c..2e10bd4d1 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -5,7 +5,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2020, Daniel Stenberg, , et al. +# Copyright (C) 1998 - 2021, Daniel Stenberg, , et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -45,6 +45,3 @@ filecheck: RC=$$? ; \ rm -rf test-place ; \ exit $$RC - -show: - @echo $(EXTRA_DIST) diff --git a/tests/runtests.pl b/tests/runtests.pl index c2d9289f3..696c11a72 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -578,12 +578,15 @@ sub checkcmd { # my $disttests; sub get_disttests { - my $makeCmd = 'make'; - if(-f "../CMakeCache.txt") { - $makeCmd = 'cmake --build ../.. --target'; + open(D, "<$TESTDIR/Makefile.inc"); + while() { + chomp $_; + if(($_ =~ /^#/) ||($_ !~ /test/)) { + next; + } + $disttests .= join("", $_); } - my @dist = `cd data && $makeCmd show`; - $disttests = join("", @dist); + close(D); } #######################################################################