The warning about missing entries in that file then doesn't require that
the Makefile has been regenerated which was confusing.
The scan for the test num is a little more error prone than before
(since now it doesn't actually verify that it is legitimate Makefile
syntax), but I think it is good enough.
Closes #7177
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
RC=$$? ; \
rm -rf test-place ; \
exit $$RC
-
-show:
- @echo $(EXTRA_DIST)
#
my $disttests;
sub get_disttests {
- my $makeCmd = 'make';
- if(-f "../CMakeCache.txt") {
- $makeCmd = 'cmake --build ../.. --target';
+ open(D, "<$TESTDIR/Makefile.inc");
+ while(<D>) {
+ chomp $_;
+ if(($_ =~ /^#/) ||($_ !~ /test/)) {
+ next;
+ }
+ $disttests .= join("", $_);
}
- my @dist = `cd data && $makeCmd show`;
- $disttests = join("", @dist);
+ close(D);
}
#######################################################################