test: use absolute paths for json.test

This commit is contained in:
Danny Robson 2014-05-26 17:34:23 +10:00
parent 6cce50cd1b
commit aa52f440bc
2 changed files with 6 additions and 3 deletions

View File

@ -228,5 +228,8 @@ AC_CONFIG_FILES([
Doxyfile
Makefile
test/Makefile
test/json.test
], [
chmod a+x test/json.test
])
AC_OUTPUT

View File

@ -1,9 +1,9 @@
#!/bin/sh
validate=../tools/json-validate
validate=@abs_top_builddir@/tools/json-validate
good=(json/good/*)
bad=(json/bad/*)
good=(@abs_top_srcdir@/test/json/good/*)
bad=(@abs_top_srcdir@/test/json/bad/*)
count=$((${#good[@]}+${#bad[@]}))
echo 1..$count