3 TESTNAME="mediawiki_backup_restore"
6 source ./mediawiki-install
11 FROB="includes/Setup.php"
12 mv "$FROB" "$FROB.bak"
15 # destroy the database
16 mysql $MYSQL_ARGS -e "DROP DATABASE \``wizard database .`\`;"
17 mysql $MYSQL_ARGS -e "CREATE DATABASE \``wizard database .`\`;"
19 BACKUP=`wizard restore | head -n1`
20 wizard restore "$BACKUP"
22 cmp "$FROB" "$FROB.bak"
23 curl -s -L "http://$WIZARD_WEB_HOST$WIZARD_WEB_PATH/index.php" | grep "<title>"