Skip to content

Commit

Permalink
Add helper scripts for testing in multiple hsenv
Browse files Browse the repository at this point in the history
  • Loading branch information
bitc committed Dec 29, 2012
1 parent 82eef91 commit 8499370
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_all_hsenv.sh
@@ -0,0 +1,2 @@
#!/bin/sh
./test_hsenv.sh `echo .hsenv_* | sed -e 's/.hsenv_//g'`
22 changes: 22 additions & 0 deletions test_hsenv.sh
@@ -0,0 +1,22 @@
#!/bin/bash

set -e

if [ $# -lt 1 ]
then
echo "Usage:"
echo "$0 <hsenv_name> [<hsenv_name2> ...]"
exit 2
fi

for i in $*
do
source .hsenv_$i/bin/activate
cabal build
export HDEVTOOLS=./dist_$i/build/hdevtools/hdevtools
./tests/test_runner.sh
deactivate_hsenv
done

echo
echo 'All Tests Passed in:' $*

0 comments on commit 8499370

Please sign in to comment.