summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-25 16:34:41 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-25 16:34:41 -0800
commit8643ac098d6c0bb5b3a29d58141f5c29a65357cb (patch)
treeed4f5ec8a0b5da5524f4c80d95e0774e1ec13dfd /test
parentc6e5dad0db88a4a62c63825308f6a810605f9ccf (diff)
downloadmc-8643ac098d6c0bb5b3a29d58141f5c29a65357cb.tar.gz
Remove unused code from runtest.sh
Diffstat (limited to 'test')
-rwxr-xr-xtest/runtest.sh42
1 files changed, 0 insertions, 42 deletions
diff --git a/test/runtest.sh b/test/runtest.sh
index 1cdb0ff..e8ec3a8 100755
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -8,12 +8,6 @@ ARGS=$*
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 @@ function fail {
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 @@ function expectfcompare {
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 @@ function B {
# Should fail
function F {
- if shouldskip $1; then
- return
- fi
(build $1) > /dev/null
if [ $? -eq '1' ]; then
pass $1
@@ -121,11 +84,6 @@ function F {
fi
}
-# Should generate a usefile
-function U {
- return
-}
-
source tests
echo "PASSED ($NPASSED): $PASSED"