forked from bitc/hdevtools
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helper scripts for testing in multiple hsenv
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
./test_hsenv.sh `echo .hsenv_* | sed -e 's/.hsenv_//g'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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:' $* |