diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-27 20:47:19 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-27 20:47:19 +0000 |
commit | c67e6d29e15b6ef57defd46007b0124fd3301ea5 (patch) | |
tree | 8a9b938e8438e895034036ad74a835993b8b9aae | |
parent | 4bae8d8b01bbbc816f202d79e50135bf0bf26d5d (diff) | |
download | obnam-c67e6d29e15b6ef57defd46007b0124fd3301ea5.tar.gz |
Remove remnants of cmdtest files
-rwxr-xr-x | tests/backup | 22 | ||||
-rwxr-xr-x | tests/obnam | 40 | ||||
-rwxr-xr-x | tests/restore | 23 | ||||
-rwxr-xr-x | tests/setup | 47 | ||||
-rwxr-xr-x | tests/teardown | 22 | ||||
-rwxr-xr-x | tests/verify | 44 |
6 files changed, 0 insertions, 198 deletions
diff --git a/tests/backup b/tests/backup deleted file mode 100755 index 08bc9fd8..00000000 --- a/tests/backup +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# Copyright 2011 Lars Wirzenius -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# Helper script for cmdtest tests: run a backup. - -set -e - -$SRCDIR/tests/obnam backup "$(cat $DATADIR/rooturl)" "$@" - diff --git a/tests/obnam b/tests/obnam deleted file mode 100755 index 52eebc63..00000000 --- a/tests/obnam +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# Copyright 2011 Lars Wirzenius -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# Helper script for cmdtest tests: run a backup. - -export GNUPGHOME="$DATADIR/gpg" - -out="$(mktemp)" -err="$(mktemp)" - -$SRCDIR/obnam \ - --client-name=rainyday \ - --quiet \ - --no-default-config \ - -r "$(cat $DATADIR/repourl)" \ - --weak-random \ - --log="$DATADIR/obnam.log" \ - --trace=vfs \ - --trace=repo \ - "$@" > "$out" 2> "$err" -exit=$? - -sed "s#$DATADIR#TMP#g" "$out" -sed "s#$DATADIR#TMP#g" "$err" 1>&2 - -rm -f "$out" "$err" -exit "$exit" diff --git a/tests/restore b/tests/restore deleted file mode 100755 index a1021be3..00000000 --- a/tests/restore +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# Copyright 2011 Lars Wirzenius -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# Helper script for cmdtest tests: restore a backup. - -set -e - -$SRCDIR/tests/obnam restore -r "$(cat $DATADIR/repourl)" \ - --to "$(cat $DATADIR/restoredurl)" "$@" - diff --git a/tests/setup b/tests/setup deleted file mode 100755 index 773cdad2..00000000 --- a/tests/setup +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# Copyright 2011 Lars Wirzenius -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - - -set -e - -# Make a copy of the gpg homedir. This is so that we don't get gpg -# accidentally changing anything, such as the random seed file. -cp -a "$SRCDIR/test-gpghome" "$DATADIR/gpg" -chmod go= "$DATADIR/gpg" - -# Generate some test data. -genbackupdata --quiet --create=100k "$DATADIR/data" - - -if [ "$OBNAM_TEST_SFTP_REPOSITORY" = yes ] -then - REPO="sftp://localhost$DATADIR/repo" -else - REPO="$DATADIR/repo" -fi -echo "$REPO" > "$DATADIR/repourl" - -if [ "$OBNAM_TEST_SFTP_ROOT" = yes ] -then - ROOT="sftp://localhost$DATADIR/data" - RESTORED="sftp://localhost$DATADIR/restored" -else - ROOT="$DATADIR/data" - RESTORED="$DATADIR/restored" -fi -echo "$ROOT" > "$DATADIR/rooturl" -echo "$RESTORED" > "$DATADIR/restoredurl" - diff --git a/tests/teardown b/tests/teardown deleted file mode 100755 index ab87a5f8..00000000 --- a/tests/teardown +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# Copyright 2011 Lars Wirzenius -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - - -set -e - -chmod -R 0755 "$DATADIR" -find "$DATADIR" -mindepth 1 -delete - diff --git a/tests/verify b/tests/verify deleted file mode 100755 index a4bfe602..00000000 --- a/tests/verify +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -# Copyright 2011 Lars Wirzenius -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# Helper script for cmdtest tests: verify restored data. - -set -e - -summain -r "$DATADIR/data" > "$DATADIR/data.summain" -summain -r "$DATADIR/restored/$DATADIR/data" > "$DATADIR/restored.summain" - -# Timestamps are whole seconds with sftp, so we need to mangle the -# summain output to remove sub-second timestamps. -if [ "$OBNAM_TEST_SFTP_ROOT" = yes ] -then - "$SRCDIR/sed-in-place" '/^Mtime:/s/\.[[:digit:]]\+ / /' \ - "$DATADIR/data.summain" \ - "$DATADIR/restored.summain" -fi - -# Allow caller to mangle further. -if [ "x$1" != x ] -then - for x in "$DATADIR/data.summain" "$DATADIR/restored.summain" - do - awk "$1" "$x" > "$x.new" - mv "$x.new" "$x" - done -fi - -diff -u "$DATADIR/data.summain" "$DATADIR/restored.summain" - |