Created
August 20, 2018 15:18
-
-
Save grahamc/cd8b02050b4810cd4ab7b0b02a8c26d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grahamc@Morbo> cat /nix/store/c783vgjkb9nj991x4gf7b5x3hic151rm-shellchecked-run-install-force-daemon-ubuntu-18-10.sh | |
#!/bin/sh | |
PATH=/nix/store/1i29w05n3kyk46gx4m1hlv96324brmdv-vagrant-2.0.2/bin/:/nix/store/920k63py2w97xpfyb5ps9l6wbidvzfjz-coreutils-8.29/bin/:$PATH | |
printf "\\n\\n\\n\\n\\n" | |
echo "Test script for install-force-daemon-ubuntu-18-10" | |
printf "\\n\\n\\n\\n\\n" | |
set -eu | |
scratch=$(mktemp -d -t tmp.XXXXXXXXXX) | |
finish() { | |
rm -rf "$scratch" | |
} | |
trap finish EXIT | |
cd "$scratch" | |
finish() { | |
vagrant destroy --force | |
rm -rf "$scratch" | |
} | |
trap finish EXIT | |
cp /nix/store/krrz1c32dpiaifai7n45y77fcbh8dmvr-Vagrantfile ./Vagrantfile | |
vagrant up | |
vagrant ssh -- tee install < /nix/store/l2xw17w1liv3w9h2cbdgli0n66nsnmvh-shellchecked-install-force-daemon | |
vagrant ssh -- chmod +x install | |
vagrant ssh -- tee testscript < /nix/store/p6dd04zyn2vvx63rlr66pyh1lfncymyl-shellchecked-test-ubuntu-18-10.sh | |
vagrant ssh -- chmod +x testscript | |
vagrant ssh -- ./install 2>&1 \ | |
| sed -e "s/^/ubuntu-18-10-install /" | |
vagrant ssh -- bash --login ./testscript 2>&1 \ | |
| sed -e "s/^/ubuntu-18-10-test-login /" | |
vagrant ssh -- bash -i ./testscript 2>&1 \ | |
| sed -e "s/^/ubuntu-18-10-test-interactive /" | |
vagrant ssh -- ./testscript 2>&1 \ | |
| sed -e "s/^/ubuntu-18-10-test-ssh /" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment