diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-05-23 16:09:23 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-05-23 16:09:23 +0200 |
commit | 0a590cf9913086082a5139545bd738c5a552a54a (patch) | |
tree | 2c09d22a60cbc91d605ac9c0bd731e89b8be178d /tests | |
parent | 5d46c9d2bf5d1b37ff530f73f92e887557828a31 (diff) | |
download | larch-0a590cf9913086082a5139545bd738c5a552a54a.tar.gz |
Add black box test for verifying backwards compatibility
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/backwards-compatible.script | 25 | ||||
-rw-r--r-- | tests/backwards-compatible.stdout | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/backwards-compatible.script b/tests/backwards-compatible.script new file mode 100755 index 0000000..3d1e456 --- /dev/null +++ b/tests/backwards-compatible.script @@ -0,0 +1,25 @@ +#!/bin/sh +# Copyright 2012 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 -eu + + +for tarball in test-data/*.tar.gz +do + ./test-backwards-compatibility verify "$tarball" +done + diff --git a/tests/backwards-compatible.stdout b/tests/backwards-compatible.stdout new file mode 100644 index 0000000..aca00fc --- /dev/null +++ b/tests/backwards-compatible.stdout @@ -0,0 +1 @@ +test-data/format-nodestore1-codec1.tar.gz is OK |