Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

Commit

Permalink
fixed test example
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed May 7, 2018
1 parent a17510b commit c718a31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/test.examples
@@ -1,19 +1,19 @@
#!/usr/bin/env bash
# run the tests of example apps using hcdev

BRANCH=master
BRANCH=develop
EXAMPLES=("HoloWorld" "fractal-wiki" "clutter" "cointoss") # "holodex" "dpki" "holochat"

for i in "$@"
do
case $i in
-b=*|--branch=*)
BRANCH="${i#*=}"
shfit #past argument=value
shift #past argument=value
;;
-e=*|--example=*)
EXAMPLES=( ${i#*=} )
shfit #past argument=value
shift #past argument=value
;;
*)
# unknown option
Expand All @@ -23,6 +23,7 @@ done

cd /tmp
testDir="holochain.test.examples"
rm -rf $testDir
mkdir $testDir
cd $testDir

Expand All @@ -31,6 +32,7 @@ declare -a RESULTS
i=0
for app in "${EXAMPLES[@]}"
do
echo "hcdev init -fromBranch=$BRANCH -cloneExample $app $app"
hcdev init -fromBranch=$BRANCH -cloneExample $app $app
cd $app
hcdev test
Expand Down

1 comment on commit c718a31

@cryptojerm777
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

Please sign in to comment.