1#!/bin/sh 2 3cd test 4lua -e"_U=true" all.lua > lua-test.tmp 5 6echo "--- test output ---" 7cat lua-test.tmp 8echo "" 9echo "" 10echo "--- ptest result ---" 11 12grep "final OK \!\!\!" lua-test.tmp > /dev/null 13if [ $? -eq 0 ]; then 14 echo "PASS: lua" 15else 16 echo "FAIL: lua" 17fi 18 19rm -f lua-test.tmp 20