diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-07-12 00:32:10 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-07-12 22:00:10 +0300 |
commit | c0a69703aeaf84f8bdad6e9d64d44d1719a77521 (patch) | |
tree | 3622898ec5209aaf6205efe445f38e61fafd02ac /batch.sh | |
parent | 33e01e7cd80c9b7c58bfafb20fbabb5ae94a9e87 (diff) |
added automatic testing
Diffstat (limited to 'batch.sh')
-rwxr-xr-x | batch.sh | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -12,6 +12,10 @@ source etc/library.sh # initializes $IMGNAME IP=$1 # First argument is the QEMU Raspbian IP address + + +## BUILDING + NC_INSTALL=etc/nextcloudpi-config.d/nc-nextcloud.sh NC_CONFIG=etc/nextcloudpi-config.d/nc-init.sh @@ -33,6 +37,8 @@ IMGNAME=$( basename "$IMGFILE" _base_prepare_lamp_nc-nextcloud_nc-init_nextcloud [[ "$IMGNAME" != "" ]] || exit 1 +## PACKING + pack_image "$IMGFILE" "$IMGNAME.img" md5sum $IMGNAME.tar.bz2 @@ -41,7 +47,15 @@ mkdir -p torrent/$IMGNAME && cp $IMGNAME.tar.bz2 torrent/$IMGNAME create_torrent torrent/$IMGNAME mkdir -p partial && mv NextCloudPi*.bz2 partial -rm *.img + +## TESTING +launch_qemu "$IMGNAME.img" & +sleep 10 +wait_SSH $IP +sleep 180 # Wait for the services to start. Improve this ( wait HTTP && trusted domains ) +tests/tests.py $IP + +rm -f *.img # License # |