From 67ec362eb658d33b97094d741096bead5fbeaeda Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 28 Nov 2019 21:34:21 -0700 Subject: test the in-tree binary Signed-off-by: Sean Whitton --- test/test | 5 +++-- 1 file 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 -- cgit v1.2.3