Skip to content

Commit

Permalink
Merge "[ FAB-4016 ] fix run_fvt_test redirect error"
Browse files Browse the repository at this point in the history
  • Loading branch information
christo4ferris authored and Gerrit Code Review committed May 24, 2017
2 parents bae7666 + 88dc694 commit 853dbd4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 29 deletions.
1 change: 0 additions & 1 deletion scripts/fvt/notls.env

This file was deleted.

1 change: 0 additions & 1 deletion scripts/fvt/tls.env

This file was deleted.

53 changes: 26 additions & 27 deletions scripts/run_fvt_tests
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
#!/bin/bash
FABRIC_CA=$GOPATH/src/github.com/hyperledger/fabric-ca
SCRIPTDIR="$FABRIC_CA/scripts/fvt"
export TESTCASE="fabric-ca-fvt"
. $SCRIPTDIR/fabric-ca_utils
export RESULTLOG="/tmp/fvt-test.results"
export STARTIME=$SECONDS
export PATH=$PATH:$GOPATH/bin
export RC=0
. $SCRIPTDIR/fabric-ca_utils
export FABRIC_TLS
> $RESULTLOG

(
TimeStamp
echo "Running fvt tests ..."
function runTests() {
echo "Running fvt tests ..."
tests="$(find $SCRIPTDIR -maxdepth 1 -name "*test.*sh")"

for TLS in $SCRIPTDIR/tls.env $SCRIPTDIR/notls.env; do
. $TLS
export PATH=$PATH:$GOPATH/bin
tests="$(find $SCRIPTDIR -maxdepth 1 -name "*test**sh")"
for cmd in $tests; do
echo ""
echo "*******************"
TESTCASE="${cmd##*/}"
echo "${cmd}"
echo "*******************"
${cmd} 2>&1
RC=$((RC+$?))
$SCRIPTDIR/fabric-ca_setup.sh -R
echo ""
echo ""
echo ""
done
done
for FABRIC_TLS in "true" "false"; do
for cmd in $tests; do
echo ""
echo "*******************"
export TESTCASE="${cmd##*/}"
echo "${cmd}"
echo "*******************"
${cmd}
RC=$((RC+$?))
$SCRIPTDIR/fabric-ca_setup.sh -R
echo ""
echo ""
echo ""
done
done
}

echo "Finished running fvt tests"
TimeStamp
runTests > >( tee $RESULTLOG )
grep RC: $RESULTLOG
echo $RC >> $RESULTLOG
) | tee -a $RESULTLOG 2>&1
RC=$(tail -n1 $RESULTLOG)
echo "Finished running fvt tests"
TESTCASE="fabric-ca-fvt"
CleanUp "$RC"
exit "$RC"

0 comments on commit 853dbd4

Please sign in to comment.