X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Ftests%2Fcheck.sh;fp=src%2Ftests%2Fcheck.sh;h=1ea7ac01cd8ed1ba49e55356afca0746184403e8;hb=3eb15f58ca0911489d7d9bdc0ac2c575d27a68d8;hp=0000000000000000000000000000000000000000;hpb=a6ee28ca37621098ed040e6d1c4ae103934c3e97;p=nestedvm.git diff --git a/src/tests/check.sh b/src/tests/check.sh new file mode 100755 index 0000000..1ea7ac0 --- /dev/null +++ b/src/tests/check.sh @@ -0,0 +1,164 @@ +#!/bin/sh -e + +[ -z "$JAVA" ] && JAVA=java + +CLASSPATH="$(pwd)/build"; export CLASSPATH +if [ "$1" != "running_from_make" ]; then + echo "Please don't run this scipt directly. Use make check" >&2 + exit 1 +fi + +INT="$2" + +cd tmp + +if [ ! -e .skipmspack ]; then + +mkdir -p mspack +cd mspack +rm -f *.TTT *.inf FONTINST.EXE *.DLL *.TXT; +for f in \ + andale32.exe arial32.exe arialb32.exe comic32.exe courie32.exe georgi32.exe \ + impact32.exe times32.exe trebuc32.exe verdan32.exe webdin32.exe; \ +do + [ -e "$f" ] || wget "http://dist.xwt.org/corefonts/$f" || rm -f "$f" + [ -e "$f" ] || exit 1 +done + +echo "Extracting MS Core Fonts using MSPackBench..." +$JAVA tests.MSPackBench *32.exe + +cat < md5.1" + md5sum mspack/*.ttf > md5.2 + cmp md5.1 md5.2 && echo "The BusyBox md5sum command and sh work properly!" +fi + +cat <