Skip to content

Commit

Permalink
Install beakerlib by hand due to missing curl
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Mar 13, 2018
1 parent 6f9a1a2 commit 81f4c54
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/test_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,18 @@ for RECIPE in http-server; do
# in the background so we can actually test something
sudo docker run -d --rm --name $RECIPE -it --entrypoint /bin/bash $RECIPE

# install beakerlib
#TODO: update to upstream URL once beakerlib/beakerlib#11 is merged
curl -k -o- https://raw.githubusercontent.com/atodorov/beakerlib/web-install/install.sh | sudo docker exec -i $RECIPE /bin/bash
# install beakerlib by hand because we may not have dnf/rpm, nor curl
# inside the container
for F in "journal.sh logging.sh testing.sh rpms.sh infrastructure.sh performance.sh\
analyze.sh libraries.sh storage.sh synchronisation.sh virtualX.sh beakerlib.sh"; do
if [ ! -f $F ]; then
# download the file locally
curl -k -o $F "https://raw.githubusercontent.com/beakerlib/beakerlib/master/src/$F"
chmod 0644 $F
# then copy to container
docker cp $F $RECIPE:/usr/share/beakerlib
fi
done

# execute the tests. in case of failure will exit from this script
for TS in tests/images/$RECIPE.*.test; do
Expand Down

0 comments on commit 81f4c54

Please sign in to comment.