File: test-task

package info (click to toggle)
ogamesim 20130107-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: ansic: 1,621; perl: 1,041; makefile: 161; javascript: 97; sh: 21
file content (13 lines) | stat: -rwxr-xr-x 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e

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

# Run
/usr/games/ogamesim -i /usr/share/doc/ogamesim/examples/task.txt \
		    -o "$TDIR"/out.txt

# Check
grep "Attacker win" "$TDIR"/out.txt
grep "Defender win" "$TDIR"/out.txt
grep "Chance moon with ground" "$TDIR"/out.txt