GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of nex3/arc
Description: Paul Graham's Brand New Lisp
Homepage: http://arclanguage.org
Clone URL: git://github.com/KirinDave/arc.git
arc / Test.sh
100755 30 lines (25 sloc) 0.765 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Running the test suite requires installing Test::Run with the
# AlternateInterpreters plugin. See:
#
# * http://search.cpan.org/perldoc?Task::Test::Run::AllPlugins
# * http://web-cpan.berlios.de/modules/Test-Run/
#
 
plugin="AlternateInterpreters"
if ! echo "$HARNESS_PLUGINS" | grep -q -E '(^| )'"$plugin"'( |$)' ; then
if test -z "$HARNESS_PLUGINS" ; then
export HARNESS_PLUGINS="$plugin"
    else
export HARNESS_PLUGINS="$HARNESS_PLUGINS $plugin"
    fi
fi
 
opt="$1"
shift
 
if test "$opt" == "--exe" ; then
HARNESS_ALT_INTRP_FILE="$(pwd)/t/files/interpreters-arcexe.conf.yml"
else
HARNESS_ALT_INTRP_FILE="$(pwd)/t/files/interpreters.conf.yml"
fi
 
export HARNESS_ALT_INTRP_FILE
# echo "$HARNESS_PLUGINS"
runprove t/*.t