]> scripts.mit.edu Git - wizard.git/blob - tests/prepare-upgrade.sh
Move wizard.scripts module to plugins, added hooks accordingly.
[wizard.git] / tests / prepare-upgrade.sh
1 #!/bin/bash
2 set -e
3
4 APP="$1"
5 VERSION="$2"
6
7 if [ -z "$VERSION" ]; then
8     echo "Usage: $0 APP VERSION"
9     echo
10     echo "For preparing a special test copy of an application with"
11     echo "Any new configuration changes."
12     echo
13     echo "See docs/upgrade.rst <http://scripts.mit.edu/wizard/upgrade.html>"
14     echo "for detailed usage instructions."
15     exit 1
16 fi
17
18 env WIZARD_NO_COMMIT=1 ./$APP-install-test.sh $VERSION
19 cd testdir_${APP}_install_${VERSION}
20 wizard prepare-config
21 echo "Diff:"
22 git diff