* tests/init.sh (setup_): Revert last change.
* modules/test-framework-sh (Makefile.am): Augment TESTS_ENVIRONMENT
here.
* modules/nlcanon-tests (Makefile.am): Don't augment TESTS_ENVIRONMENT
here.
+2025-08-04 Bruno Haible <bruno@clisp.org>
+
+ nlcanon tests: Fix last commit.
+ * tests/init.sh (setup_): Revert last change.
+ * modules/test-framework-sh (Makefile.am): Augment TESTS_ENVIRONMENT
+ here.
+ * modules/nlcanon-tests (Makefile.am): Don't augment TESTS_ENVIRONMENT
+ here.
+
2025-08-04 Paul Eggert <eggert@cs.ucla.edu>
vma-iter: pacify Coverity Scan
Makefile.am:
TESTS += test-nlcanon.sh
-TESTS_ENVIRONMENT += \
- top_builddir='@top_builddir@'
configure.ac:
Makefile.am:
+# The value of top_builddir, determined by Autoconf and stored in the Makefile,
+# consists of n times '..', where n is the depth of the $(srcdir) under
+# $(top_srcdir). Here we need one more '..', because the test framework
+# (init.sh) arranges to run the tests in a subdirectory of depth 1 under the
+# directory where the Makefile sits.
+TESTS_ENVIRONMENT += top_builddir='../@top_builddir@'
Include:
test_dir_=`mktempd_ "$initial_cwd_" "$pfx_-$ME_.XXXX"` \
|| fail_ "failed to create temporary directory in $initial_cwd_"
cd "$test_dir_" || fail_ "failed to cd to temporary directory"
- # Set variables srcdir, builddir, and optionally top_builddir,
- # for the convenience of the test.
+ # Set variables srcdir, builddir, for the convenience of the test.
case $srcdir in
/* | ?:*) ;;
*) srcdir="../$srcdir" ;;
esac
builddir=".."
export srcdir builddir
- if test -n "$top_builddir"; then
- case $top_builddir in
- /* | ?:*) ;;
- *) top_builddir="../$top_builddir" ;;
- esac
- export top_builddir
- fi
# As autoconf-generated configure scripts do, ensure that IFS
# is defined initially, so that saving and restoring $IFS works.