build: Fixes for make check.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 23 Aug 2018 17:57:50 +0000 (19:57 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 23 Aug 2018 17:57:50 +0000 (19:57 +0200)
* build-aux/config.sh (srcdir): Initialize if unset.
* build-aux/test.sh (DIFF): Do not fail if unset.

build-aux/config.sh
build-aux/test.sh

index db27c07cc6d79f540e37b69fe08f6a05a4bc5673..55b37966a89ac6e66226c070ad252926d8cf9e93 100644 (file)
@@ -16,6 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GNU Mes.  If not, see <http://www.gnu.org/licenses/>.
 
+srcdir=${srcdir-.}
 if [ "$V" = 2 ]; then
     echo $0
     echo srcdest=${srcdest}
index 7eb88d15118cc13a8734e2c331ac3c483859efae..eca48854c7043c4b8577cd484acace51f7a89635 100755 (executable)
@@ -25,15 +25,12 @@ set -e
 MES_ARENA=100000000
 
 GUILE=${GUILE-$MES}
-DIFF=${DIFF-$(command -v diff)}
+DIFF=${DIFF-$(command -v diff)} || true
 [ -z "$DIFF" ] && DIFF="sh scripts/diff.scm"
 
 t=${1-scaffold/tests/t}
 o="$t"
 rm -f "$o".mes-out
-shift
-
-set -e
 
 rm -f "$o".gcc-out
 if [ -n "$CC" ]; then