Permalink
Browse files

new file erl.sh; crude test runner run_erl_tests.sh

  • Loading branch information...
krestenkrab committed Feb 23, 2010
1 parent a2ac2f5 commit 0d7ebd8666e790b473375e36982d22ac4d5ab604
Showing with 27 additions and 0 deletions.
  1. +18 −0 erl.sh
  2. +9 −0 run_erl_tests.sh
View
18 erl.sh
@@ -0,0 +1,18 @@
+
+if [ "x${OTPROOT}" == "x" ]; then
+ OTPROOT=/sw/lib/erlang
+fi
+
+java -ea -cp erjang-0.1.jar \
+ -Derj.threads=1 \
+ -Derjpath=$OTPROOT/lib/erts-5.7.3/ebin erjang.OTPMain \
+ -root $OTPROOT \
+ -progname erl \
+ -- \
+ -home $HOME \
+ $*
+
+
+
+
+
View
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+CMD=""
+for f in src/test/erl/*_tests.beam; do
+ test=`basename $f .beam`
+ CMD="$CMD -run $test test"
+done
+
+./erl.sh -noshell -pa ./src/test/erl $CMD -run erlang halt

0 comments on commit 0d7ebd8

Please sign in to comment.