File: hello01

package info (click to toggle)
onscripter 20161102-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,288 kB
  • ctags: 1,866
  • sloc: cpp: 31,303; makefile: 83; sh: 13
file content (19 lines) | stat: -rwxr-xr-x 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

cp -R debian/tests/hello01_data "$AUTOPKGTEST_TMP" 

S1=`date +%s%N`
START_TIME=`expr $S1 / 1000000`
xvfb-run -a -s '-screen 0 1024x768x24' /usr/games/onscripter-1byte -r $AUTOPKGTEST_TMP/hello01_data
S21=`date +%s%N`
S2=`expr $S21 / 1000000`
ELAPSED_TIME=`expr $S2 - $START_TIME`

if [ $ELAPSED_TIME -lt 2000 ]; then
    #too fast. Must be an error.
    echo "Run too fast: $ELAPSED_TIME ms"
    exit 1
fi

echo "Test Passed: $ELAPSED_TIME ms"
exit 0