Skip to content

Commit 8ed6fb3

Browse files
committedNov 21, 2016
Fix distcheck
The remaining test files need to be distributed in order to run the test suite, and export abs_builddir to the test script to point to the binaries. Signed-off-by: Patrick McCarty <[email protected]>
1 parent f23f25a commit 8ed6fb3

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed
 

‎Makefile.am

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,39 @@ install-exec-hook:
103103
perl findstatic.pl */*.o | grep -v Checking ||:
104104

105105
TEST_EXTENSIONS = .sh
106+
107+
EXTRA_DIST += \
108+
test/data/5.bspatch.diff \
109+
test/data/5.bspatch.original \
110+
test/data/6.bspatch.diff \
111+
test/data/6.bspatch.original \
112+
test/data/7.bspatch.diff \
113+
test/data/7.bspatch.original \
114+
test/data/8.bspatch.diff \
115+
test/data/8.bspatch.original \
116+
test/data/9.bspatch.diff \
117+
test/data/9.bspatch.modified \
118+
test/data/9.bspatch.original \
119+
test/data/10.bspatch.diff \
120+
test/data/10.bspatch.modified \
121+
test/data/10.bspatch.original \
122+
test/data/11.bspatch.diff \
123+
test/data/12.bspatch.diff \
124+
test/data/12.bspatch.modified \
125+
test/data/12.bspatch.original \
126+
test/data/13.bspatch.modified \
127+
test/data/13.bspatch.original \
128+
test/data/14.bspatch.modified \
129+
test/data/14.bspatch.original \
130+
test/data/15.bspatch.modified \
131+
test/data/15.bspatch.original \
132+
test/data/16.bspatch.diff \
133+
test/data/16.bspatch.original
134+
106135
if ENABLE_TESTS
136+
AM_TESTS_ENVIRONMENT = \
137+
abs_builddir=$(abs_builddir); export abs_builddir;
138+
107139
tap_driver = env AM_TAP_AWK='$(AWK)' $(SHELL) \
108140
$(top_srcdir)/tap-driver.sh
109141

‎test/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ testnum=0
88

99
sudo rm -f *.diff *.out
1010

11-
libdir="$(readlink -f "../.libs")"
11+
libdir="$abs_builddir/.libs"
1212
ldpath="LD_LIBRARY_PATH=$libdir"
1313
BSDIFF="sudo $ldpath valgrind -q $libdir/bsdiff"
1414
BSPATCH="sudo $ldpath valgrind -q $libdir/bspatch"

0 commit comments

Comments
 (0)
Please sign in to comment.