From 4a61beae41efee4a45f19a9c113cd0c82fcc9a91 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 5 Feb 2018 11:10:33 -0800 Subject: [PATCH] autobrew: use homebrew's built-in test fixture --- .travis/autobrew.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.travis/autobrew.py b/.travis/autobrew.py index fc1ea4c6..2db85353 100644 --- a/.travis/autobrew.py +++ b/.travis/autobrew.py @@ -55,28 +55,8 @@ ${resources} # Since we use Python 3, we require a UTF-8 locale ENV["LC_ALL"] = "en_US.UTF-8" - # One page Postscript with the wording "Testing" on the page - # This is more compact than including a test PDF - (testpath/"test.ps").write( - <<~EOS - %!PS - /Times-Roman findfont - 20 scalefont - setfont - gsave - newpath - 200 400 moveto - (Testing) show - closepath - stroke - showpage - EOS - ) - - system "#{Formula["ghostscript"].opt_bin}/ps2pdf", testpath/"test.ps", testpath/"test.pdf" - # Use ocrmypdf -f to rasterize the PDF to image before doing OCR - system "#{bin}/ocrmypdf", "-f", "-q", "--deskew", testpath/"test.pdf", testpath/"ocr.pdf" + system "#{bin}/ocrmypdf", "-f", "-q", "--deskew", test_fixtures("test.pdf"), testpath/"ocr.pdf" end end """)