From f68ab95164dc5ba4ca198e25b7401b06d690e699 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 2 Nov 2017 21:55:29 -0700 Subject: remove legacy testing script This was added in 214c4317bb90684dcfdab4d2402daa66fbad2e77 for testing upgrade behavior and, as far as I am aware, is no longer used for testing. We remove it to avoid future ambiguity. --- test_upgrade.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 test_upgrade.py diff --git a/test_upgrade.py b/test_upgrade.py deleted file mode 100755 index 40db42a..0000000 --- a/test_upgrade.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# -# Test upgrade functionality by checking out revisions with the -# various initial on-disk versions and running `be list` on them to -# force an auto-upgrade. -# -# usage: test_upgrade.sh - -REVS='revid:wking@drexel.edu-20090831063121-85p59rpwoi1mzk3i -revid:wking@drexel.edu-20090831171945-73z3wwt4lrm7zbmu -revid:wking@drexel.edu-20091205224008-z4fed13sd80bj4fe -revid:wking@drexel.edu-20091207123614-okq7i0ahciaupuy9' - -ROOT=$(bzr root) -BE="$ROOT/be" -cd "$ROOT" - -echo "$REVS" | while read REV; do - TMPDIR=$(mktemp --directory --tmpdir "BE-upgrade.XXXXXXXXXX") - REPO="$TMPDIR/repo" - echo "Testing revision: $REV" - echo " Test directory: $REPO" - bzr checkout --lightweight --revision="$REV" "$ROOT" "$TMPDIR/repo" - VERSION=$(cat "$REPO/.be/version") - echo " Version: $VERSION" - $BE --repo "$REPO" list > /dev/null - RET="$?" - rm -rf "$TMPDIR" - if [ $RET -ne 0 ]; then - echo "Error! ($RET)" - exit $RET - fi -done -- cgit