]> arthur.barton.de Git - bup.git/commitdiff
test-meta.sh: use cp -a instead of make install to create the test tree.
authorRob Browning <rlb@defaultvalue.org>
Mon, 21 Mar 2011 03:04:13 +0000 (22:04 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 21 Mar 2011 08:30:57 +0000 (01:30 -0700)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/test-meta.sh

index 315a93990db6544cfc22a47722f3e35dd50be487..9e85cfc6c4f22050baa5ff874fffa70845b1233c 100755 (executable)
@@ -9,11 +9,11 @@ bup()
     "$TOP/bup" "$@"
 }
 
-# Very simple metadata tests -- "make install" to a temp directory,
-# then check that bup meta can reproduce the metadata correctly
-# (according to coreutils stat) via create, extract, start-extract,
-# and finish-extract.  The current tests are crude, and this does not
-# test devices, varying users/groups, acls, attrs, etc.
+# Very simple metadata tests -- create a test tree then check that bup
+# meta can reproduce the metadata correctly (according to bup xstat)
+# via create, extract, start-extract, and finish-extract.  The current
+# tests are crude, and this does not fully test devices, varying
+# users/groups, acls, attrs, etc.
 
 genstat()
 {
@@ -78,10 +78,9 @@ force-delete "$TOP/bupmeta.tmp"
 
 # Create a test tree.
 (
-    mkdir -p "$TOP/bupmeta.tmp"
-    make DESTDIR="$TOP/bupmeta.tmp/src" install
-    mkdir "$TOP/bupmeta.tmp/src/misc"
-    cp -a cmd/bup-* "$TOP/bupmeta.tmp/src/misc/"
+    rm -rf "$TOP/bupmeta.tmp/src"
+    mkdir -p "$TOP/bupmeta.tmp/src"
+    cp -a Documentation cmd lib t "$TOP/bupmeta.tmp"/src
 ) || WVFAIL
 
 # Use the test tree to check bup meta.