]> git.draconx.ca Git - cdecl99.git/commitdiff
Add missing test script to the distribution.
authorNick Bowler <nbowler@draconx.ca>
Sat, 18 Aug 2012 01:31:19 +0000 (21:31 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 18 Aug 2012 01:31:19 +0000 (21:31 -0400)
This fixes a test failure in distcheck.

Makefile.am
tests/randomdecl-sanity.sh

index 137161418adc31cff5433fede42f169c6edd2d58..8634a09fb05992844431cc758f2ccef26f9d82bd 100644 (file)
@@ -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
index 52b5534b37707175e018f754087a005751f8dbc9..fad6d5a90fc0ff58e790c4ab8d5d4205e07800cb 100755 (executable)
@@ -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"