diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2019-11-28 21:34:21 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-11-28 21:34:21 -0700 |
commit | 67ec362eb658d33b97094d741096bead5fbeaeda (patch) | |
tree | e4a3ef6b7fe57ba41d30eed004c8e43ea53a5ba5 /test | |
parent | 2d80919f9952295b4db02a30dc348fc33580978d (diff) | |
download | pandoc-citeproc-preamble-67ec362eb658d33b97094d741096bead5fbeaeda.tar.gz |
test the in-tree binary
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'test')
-rwxr-xr-x | test/test | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |