File: test01

package info (click to toggle)
tl-parser 0.0.0%2Bgit20210107.1933e76f-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 384 kB
  • sloc: ansic: 7,226; xml: 119; makefile: 27; sh: 11
file content (17 lines) | stat: -rwxr-xr-x 281 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

TEMP=${AUTOPKGTEST_TMP:-${TMPDIR:-$(mktemp -d)}}
TDIR=$(mktemp -d $TEMP/test01XXXXXX)

cat > "$TDIR"/test01.tl <<EOF
int ?= Int;
test0123#21424213 = Bool;
EOF

tl-parser -e "$TDIR"/test01.tlo "$TDIR"/test01.tl

if [ ! -e "$TDIR"/test01.tlo ]; then
    exit 1
fi