File: run

package info (click to toggle)
libpostscriptbarcode 20140312-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,768 kB
  • ctags: 65
  • sloc: perl: 192; makefile: 180; sh: 107; lisp: 92; java: 49
file content (21 lines) | stat: -rwxr-xr-x 311 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

TEST=$(dirname $0)

echo -n "Running $TEST: "

if gs --version | grep -q '^7\.'; then
  echo "SKIPPED GS too old"
  exit 0
fi

cd build/resource/Resource && gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=nullpage -P ../sample.ps

if [ $? -eq 0 ]; then
  echo "PASS"
  exit 0
else
  echo "FAIL"
  exit 1
fi