File: test.sh

package info (click to toggle)
vistrails 3.0~git%2B9dc22bd.dfsg.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 62,856 kB
  • sloc: python: 314,055; xml: 42,697; sql: 4,113; php: 731; sh: 469; makefile: 253
file content (21 lines) | stat: -rwxr-xr-x 486 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Tests embedding vistrails results and graphs in latex
# This compiles the latex file and tests if the pdf has the expected size

if pdflatex -shell-escape -halt-on-error head.tex; then
  echo done generating pdf
else
  echo error generating pdf
  exit 1
 fi

pdfsize=$(wc -c < "head.pdf")
echo pdf size is $pdfsize
if [ $pdfsize -le 360000 ]; then
  echo Error: pdf size too small. One of the figures are probably missing.
  exit 2;
else
  echo pdf looks good!
fi

exit 0