From 75612de83e6c59088b3ab8a1261ee4b2c8d1bdef Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Wed, 4 May 2022 08:59:39 -0500 Subject: [PATCH] remove tests/snapshots/copy.sh and tests/snapshots/rename.sh --- tests/snapshots/copy.sh | 41 --------------------------------------- tests/snapshots/rename.sh | 37 ----------------------------------- 2 files changed, 78 deletions(-) delete mode 100755 tests/snapshots/copy.sh delete mode 100755 tests/snapshots/rename.sh diff --git a/tests/snapshots/copy.sh b/tests/snapshots/copy.sh deleted file mode 100755 index c09d9a3c845..00000000000 --- a/tests/snapshots/copy.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash -BEFORE=$1 -AFTER=$2 -if [ -z "${BEFORE}" ] || [ -z "${AFTER}" ]; then - echo "Copy a snapshot" - echo - echo "Run this from the snapshots directory, using the base name for the snapshots" - echo - echo "Usage: $0 " - exit 1 -fi - -IN_LINK=$(readlink $1.in) -if [ -n "${IN_LINK}" ]; then - echo "Linking to '${IN_LINK}'" - ln -s ${IN_LINK} $2.in -elif [ -e "$1.in" ]; then - echo "Copying '$1.in'" - cp -r $1.in $2.in -else - echo "No '$1.in'" -fi -if [ -e "$1.out" ]; then - echo "Copying '$1.out'" - cp -r $1.out $2.out -else - echo "No '$1.out'" -fi -if [ -e "$1.stdout" ]; then - echo "Copying '$1.stdout'" - cp -r $1.stdout $2.stdout -else - echo "No '$1.stdout'" -fi -if [ -e "$1.stderr" ]; then - echo "Copying '$1.stderr'" - cp -r $1.stderr $2.stderr -else - echo "No '$1.stderr'" -fi -git add $2.* diff --git a/tests/snapshots/rename.sh b/tests/snapshots/rename.sh deleted file mode 100755 index 4c854f5ac62..00000000000 --- a/tests/snapshots/rename.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash -BEFORE=$1 -AFTER=$2 -if [ -z "${BEFORE}" ] || [ -z "${AFTER}" ]; then - echo "Rename a snapshot" - echo - echo "Run this from the snapshots directory, using the base name for the snapshots" - echo - echo "Usage: $0 " - exit 1 -fi - -if [ -e "$1.stdout" ]; then - echo "Renaming '$1.in" - mv $1.in $2.in -else - echo "No '$1.in'" -fi -if [ -e "$1.stdout" ]; then - echo "Renaming '$1.out" - mv $1.out $2.out -else - echo "No '$1.out'" -fi -if [ -e "$1.stdout" ]; then - echo "Renaming '$1.stdout" - mv $1.stdout $2.stdout -else - echo "No '$1.stdout'" -fi -if [ -e "$1.stderr" ]; then - echo "Renaming '$1.stderr'" - mv $1.stderr $2.stderr -else - echo "No '$1.stderr'" -fi -git add $2.*