Skip to content
This repository has been archived by the owner on May 7, 2018. It is now read-only.

Commit

Permalink
report which interpreter failed
Browse files Browse the repository at this point in the history
  • Loading branch information
kr committed Aug 4, 2013
1 parent b43e0b6 commit baee5f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test
Expand Up @@ -17,30 +17,28 @@ if test -z "$fs"
then fs=`echo t/*.{json,rb}`
fi

trap 'echo $RUBY; echo $f' EXIT
for f in $fs
do
case $f in
t/valid*.json)
echo $f
cycle <$f >/dev/null
diff $f.exp <(cycle <$f 2>/dev/null)
;;
t/invalid*.json)
echo $f
if cycle <$f 2>/dev/null
then echo; exit 1
fi
;;
t/encode*.rb)
echo $f
enc <$f >/dev/null
diff $f.exp <(enc <$f 2>/dev/null)
;;
t/err*.rb)
echo $f
if enc <$f 2>/dev/null
then echo; exit 1
fi
;;
esac
done
trap - EXIT

0 comments on commit baee5f7

Please sign in to comment.