aboutsummaryrefslogtreecommitdiffstats
path: root/test_usage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test_usage.sh')
-rwxr-xr-xtest_usage.sh34
1 files changed, 4 insertions, 30 deletions
diff --git a/test_usage.sh b/test_usage.sh
index df45f55..621864b 100755
--- a/test_usage.sh
+++ b/test_usage.sh
@@ -6,7 +6,7 @@
#
# usage: test_usage.sh VCS
# where VCS is one of:
-# bzr, git, hg, arch, none
+# bzr, git, hg, none
#
# Note that this script uses the *installed* version of be, not the
# one in your working tree.
@@ -23,14 +23,14 @@ then
echo "usage: test_usage.sh [VCS]"
echo ""
echo "where VCS is one of"
- for VCS in arch bzr darcs git hg none
+ for VCS in bzr darcs git hg none
do
echo " $VCS"
done
exit 1
elif [ $# -eq 0 ]
then
- for VCS in arch bzr darcs git hg none
+ for VCS in bzr darcs git hg none
do
echo -e "\n\nTesting $VCS\n\n"
$0 "$VCS" || exit 1
@@ -44,26 +44,7 @@ TESTDIR=`mktemp -d /tmp/BEtest.XXXXXXXXXX`
cd $TESTDIR
# Initialize the VCS repository
-if [ "$VCS" == "arch" ]
-then
- ID=`tla my-id`
- ARCH_PARAM_DIR="$HOME/.arch-params"
- ARCH_ARCHIVE_ROOT=`mktemp -d /tmp/BEtest.XXXXXXXXXX`
- UNIQUE=`echo "$ARCH_ARCHIVE_ROOT" | sed 's/\/tmp\/BEtest.//;s/[0-9]//g'`
- ARCH_ARCHIVE="j@x.com--BE-test-usage-$UNIQUE"
- ARCH_PROJECT="BE-test-usage--twig--99.5"
- ARCH_ARCHIVE_DIR="$ARCH_ARCHIVE_ROOT/$ARCH_PROJECT"
- echo "tla make-archive $ARCH_ARCHIVE $ARCH_ARCHIVE_DIR"
- tla make-archive $ARCH_ARCHIVE $ARCH_ARCHIVE_DIR
- echo "tla archive-setup -A $ARCH_ARCHIVE $ARCH_PROJECT"
- tla archive-setup -A $ARCH_ARCHIVE $ARCH_PROJECT
- echo "tla init-tree -A $ARCH_ARCHIVE $ARCH_PROJECT"
- tla init-tree -A $ARCH_ARCHIVE $ARCH_PROJECT
- echo "Adjusing the naming conventions to allow .files"
- sed -i 's/^source .*/source ^[._=a-zA-X0-9].*$/' '{arch}/=tagging-method'
- echo "tla import -A $ARCH_ARCHIVE --summary 'Began versioning'"
- tla import -A $ARCH_ARCHIVE --summary 'Began versioning'
-elif [ "$VCS" == "bzr" ]
+if [ "$VCS" == "bzr" ]
then
ID=`bzr whoami`
bzr init
@@ -144,11 +125,4 @@ be commit "But this will fail" || echo "Failed"
cd /
rm -rf $TESTDIR
-if [ "$VCS" == "arch" ]
-then
- # Cleanup everything outside of TESTDIR
- rm -rf "$ARCH_ARCHIVE_ROOT"
- rm -rf "$ARCH_PARAM_DIR/=locations/$ARCH_ARCHIVE"
-fi
-
exec 2>&6 6>&- # restore stderr and close fd 6