summaryrefslogtreecommitdiff
path: root/yarns/obnam.sh
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-08-02 08:37:41 +0100
committerLars Wirzenius <liw@liw.fi>2013-08-02 08:37:41 +0100
commite437937cce8a90a8874eee6165d9c9565f0516e0 (patch)
tree640194e1d01536711aff86cd4dabd939da20e452 /yarns/obnam.sh
parent0a1fb5702ee805fbd87dbe76062fce7aba1735df (diff)
downloadobnam-e437937cce8a90a8874eee6165d9c9565f0516e0.tar.gz
Add yarn test suite for fuse plugin
Diffstat (limited to 'yarns/obnam.sh')
-rw-r--r--yarns/obnam.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/yarns/obnam.sh b/yarns/obnam.sh
new file mode 100644
index 00000000..9de72ba7
--- /dev/null
+++ b/yarns/obnam.sh
@@ -0,0 +1,35 @@
+# Copyright 2013 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/>.
+#
+# =*= License: GPL-3+ =*=
+
+
+# Run Obnam in a safe way that ignore's any configuration files outside
+# the test.
+
+run_obnam()
+{
+ ./obnam --no-default-config "$@"
+}
+
+
+# Create a manifest with summain of a directory.
+
+manifest()
+{
+ summain -r "$1" --exclude Ino --exclude Dev |
+ sed '/^Mtime:/s/\.[0-9]* / /'
+}
+