ref: 8643ac098d6c0bb5b3a29d58141f5c29a65357cb
parent: c6e5dad0db88a4a62c63825308f6a810605f9ccf
author: Ori Bernstein <[email protected]>
date: Thu Dec 25 11:34:41 EST 2014
Remove unused code from runtest.sh
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -8,12 +8,6 @@
NFAILURES=0
NPASSES=0
-function use {
- rm -f $1 $1.o $1.s $1.use
- echo " "$MU -I ../libstd -o $1.use $1.myr && \
- $MU $1.myr -o $1.use
-}
-
function build {
rm -f $1 $1.o $1.s $1.use
../myrbuild/myrbuild -b $1 -C../6/6m -M../muse/muse -I../libstd -r../rt/_myrrt.o $1.myr
@@ -30,16 +24,6 @@
NFAILED=$[$NFAILED + 1]
}
-function expectstatus {
- ./$1 $3
- if [ $? -eq $2 ]; then
- pass $1
- return
- else
- fail $1
- fi
-}
-
function expectprint {
if [ "`./$1 $3`" != "$2" ]; then
fail $1
@@ -73,26 +57,8 @@
fi
}
-function shouldskip {
- if [ -z $ARGS ]; then
- return 1
- fi
-
- for i in $ARGS; do
- if [ $i = $1 ]; then
- return 1
- fi
- done
- return 0
-}
-
-
# Should build and run
function B {
- if shouldskip $1; then
- return
- fi
-
test="$1"; shift
type="$1"; shift
res="$1"; shift
@@ -110,9 +76,6 @@
# Should fail
function F {
- if shouldskip $1; then
- return
- fi
(build $1) > /dev/null
if [ $? -eq '1' ]; then
pass $1
@@ -119,11 +82,6 @@
else
fail $1
fi
-}
-
-# Should generate a usefile
-function U {
- return
}
source tests