From b52d7c8fed34b8506751cbf3e26f878f0cc7fd7b Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Fri, 17 Aug 2012 21:31:19 -0400 Subject: [PATCH] Add missing test script to the distribution. This fixes a test failure in distcheck. --- Makefile.am | 2 +- tests/randomdecl-sanity.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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" -- 2.43.0