aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-11-28 21:34:21 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-11-28 21:34:21 -0700
commit67ec362eb658d33b97094d741096bead5fbeaeda (patch)
treee4a3ef6b7fe57ba41d30eed004c8e43ea53a5ba5
parent2d80919f9952295b4db02a30dc348fc33580978d (diff)
downloadpandoc-citeproc-preamble-67ec362eb658d33b97094d741096bead5fbeaeda.tar.gz
test the in-tree binary
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-xtest/test5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test b/test/test
index 8b95994..6ed7c38 100755
--- a/test/test
+++ b/test/test
@@ -26,14 +26,15 @@ use File::Spec::Functions qw(rel2abs);
use File::Basename qw(dirname);
our $output = "output.tex";
+our $pcp = "../dist/build/pandoc-citeproc-preamble/pandoc-citeproc-preamble";
chdir(dirname(rel2abs(__FILE__)));
+die "need to build before testing\n" unless -e $pcp;
unlink $output if -e $output;
print "testing with " . (`pandoc --version`)[0];
system "pandoc -s --filter pandoc-citeproc --bibliography=test.bib"
- . " --filter pandoc-citeproc-preamble"
- . " -M citeproc-preamble=../examples/default.latex"
+ . " --filter $pcp -M citeproc-preamble=../examples/default.latex"
. " test.mdwn -f markdown -o $output";
# simple finite state machine to check that the preamble was inserted