[go: up one dir, main page]

File: testsablevm

package info (click to toggle)
sablevm 1.13-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 10,084 kB
  • ctags: 9,231
  • sloc: ansic: 127,926; sh: 8,886; asm: 5,548; makefile: 693
file content (36 lines) | stat: -rw-r--r-- 856 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
echo "################## A U T O T E S T   S T A R T ########################"

LD_LIBRARY_PATH=`pwd`/debian/tmp/usr/lib/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
echo "LD_LIBRARY_PATH set to: $LD_LIBRARY_PATH"
RET=0

### DryRun test
echo "About to run the SableVM to see compilation params (DryRun, no Java involved)"
`pwd`/debian/tmp/usr/bin/sablevm -V
RET=$?
echo "Dry run returned |${RET}|"
if [ "${RET}" -eq 0 ]; then
  echo "SUCCESS"
else
  echo "FAILURE"
fi

### HelloWorld test
if [ $RET -eq 0 ]; then
  echo "About to run the SableVM's HelloWorld..."
  `pwd`/debian/tmp/usr/bin/sablevm -Y SableVMHelloWorld
  RET=$?
  echo "Testing Hello World returned |${RET}|"
  if [ "${RET}" -eq 0 ]; then
    echo "SUCCESS"
  else
    echo "FAILURE"
  fi
fi

echo "##################  A U T O T E S T   D O N E  ########################"

exit $RET