From: Rob Browning Date: Mon, 21 Mar 2011 03:04:13 +0000 (-0500) Subject: test-meta.sh: use cp -a instead of make install to create the test tree. X-Git-Tag: bup-0.25-rc1~39 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=e7a1a69fc79ec42f29d5c5a7b96b68b0fd280788;p=bup.git test-meta.sh: use cp -a instead of make install to create the test tree. Signed-off-by: Rob Browning --- diff --git a/t/test-meta.sh b/t/test-meta.sh index 315a939..9e85cfc 100755 --- a/t/test-meta.sh +++ b/t/test-meta.sh @@ -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.