+2020-11-28 Niels Möller <nisse@lysator.liu.se>
+
+ Merge changes by Marco Bodrato and Torbjorn Granlund, from the
+ gmp/mini-gmp copy of this file.
+ * run-tests: Delete special handling of zero arguments. Update
+ WINEPATH, instead of overwriting it.
+
2020-11-27 Niels Möller <nisse@lysator.liu.se>
* aclocal.m4: Replace some calls to exit with return, since exit
#! /bin/sh
-# Copyright (C) 2000, 2001, 2002, 2004, 2005, 2011, 2012 Niels Möller
+# Copyright (C) 2000-2002, 2004, 2005, 2011, 2012, 2016, 2020 Niels Möller
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# For Windows
PATH="${TEST_SHLIB_DIR}:${PATH}"
# For Wine
- WINEPATH="${TEST_SHLIB_DIR}"
+ WINEPATH="${TEST_SHLIB_DIR}${WINEPATH:+;$WINEPATH}"
export LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH
*)
if [ -x "$1" ] ; then
echo "./$1"
+ elif [ -x "$1.exe" ] ; then
+ echo "./$1.exe"
else
echo "$srcdir/$1"
fi
shift
done
-if [ $# -eq 0 ] ; then
- for f in *-test; do test_program "./$f"; done
-else
- for f in "$@" ; do test_program `find_program "$f"`; done
-fi
+for f in "$@" ; do test_program `find_program "$f"`; done
if [ $failed -eq 0 ] ; then
banner="All $all tests passed"