Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"runall ./tests" to run all P2P tests #68

Open
wants to merge 2 commits into
base: releases/v0.6
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion empty.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#first "docker-compose" file referenced by "runbundler"
#Used to make sure all paths are relative to project root,
#regardless from where the "real" docker-compose is loaded.
version: '3'
26 changes: 21 additions & 5 deletions runall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,28 @@ test -d bundler-spec-tests || git clone -b releases/v0.6 --recurse-submodules ht
#by default, run all single-bundler configs
BUNDLERS=`ls $root/bundlers/*/*yml|grep -v p2p`

#if parameter is given, use it as single-bundler yml, or as testenv file
if [ -n "$1" -a -r "$1" ]; then
BUNDLERS=`realpath $1`
shift
#if parameter is given, use it as single-bundler yml, or as testenv file, or a folder of testenv files
if [ -n "$1" ]; then
if [ -d "$1" ]; then
# a folder. collect all files in it
BUNDLERS=""
for t in $1/*; do
case $t in
*.yml|*.env)
BUNDLERS="$BUNDLERS `realpath $t`"
;;
*)
echo "FATAL: $t is not '.env' or '.yml' file"
exit 1
esac
done

elif [ -r "$1" ]; then
# a single-file test
BUNDLERS=`realpath $1`
shift
fi
fi

cd bundler-spec-tests

#first time must runall.
Expand Down
1 change: 0 additions & 1 deletion runbundler/run2bundlers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# docker-compose to bring up a single bundler, with all needed services
version: '3'

services:

Expand Down
2 changes: 1 addition & 1 deletion runbundler/runbundler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ case "$file" in

esac

DC="docker-compose $DCPARAMS -f $root/empty.yml -f $DCFILE"
DC="docker compose $DCPARAMS -f $root/empty.yml -f $DCFILE"
cmd=$cmd
case "$cmd" in

Expand Down
1 change: 0 additions & 1 deletion runbundler/runbundler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# docker-compose to bring up a single bundler, with all needed services
version: '3'

services:

Expand Down
Loading