From: Nick Bowler Date: Sat, 18 Aug 2012 01:31:19 +0000 (-0400) Subject: Add missing test script to the distribution. X-Git-Tag: v1~36 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/b52d7c8fed34b8506751cbf3e26f878f0cc7fd7b Add missing test script to the distribution. This fixes a test failure in distcheck. --- diff --git a/Makefile.am b/Makefile.am index 1371614..8634a09 100644 --- a/Makefile.am +++ b/Makefile.am @@ -77,7 +77,7 @@ SH_LOG_COMPILER = $(SHELL) TESTS = tests/libcdecl-static-symbols.sh tests/randomdecl-sanity.sh \ tests/crossparse-c-random.sh tests/cdecl99-c-invalid.sh -EXTRA_DIST += $(TESTS) +dist_check_SCRIPTS = tests/randomdecl-sanity.sed $(TESTS) src/parse.lo: src/scan.h src/scan.lo: src/parse.h diff --git a/tests/randomdecl-sanity.sh b/tests/randomdecl-sanity.sh index 52b5534..fad6d5a 100755 --- a/tests/randomdecl-sanity.sh +++ b/tests/randomdecl-sanity.sh @@ -13,7 +13,8 @@ randomdecl=test/randomdecl$EXEEXT test -x $randomdecl || exit 77 proc() { - sed -f tests/randomdecl-sanity.sed || { echo "result=fail"; return 1; } + sed -f "$srcdir/tests/randomdecl-sanity.sed" \ + || { echo "result=fail"; return 1; } } printf '%s: randomized test using RANDOMSEED=%d\n' "$0" "$RANDOMSEED"