diff options
Diffstat (limited to 'fstests-bld/gen-tarball')
-rwxr-xr-x | fstests-bld/gen-tarball | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fstests-bld/gen-tarball b/fstests-bld/gen-tarball index 99622b1b..55314fcd 100755 --- a/fstests-bld/gen-tarball +++ b/fstests-bld/gen-tarball @@ -31,6 +31,9 @@ do --fast) fast=yes ;; + --arch) shift + ARCH="$1" + ;; *) echo "unknown option: $1" exit 1 @@ -100,7 +103,16 @@ echo "STRIP xfstests/*" find xfstests -mindepth 2 -type f -perm /0111 | xargs $STRIP 2> /dev/null \ || true echo "TAR xfstests" +if test -n "$ARCH" +then + echo "$ARCH" > xfstests/build-arch +fi +rm -f xfstests.tar.gz find xfstests blktests -path blktests/.git -prune -o -print0 | \ LC_ALL=C sort -z | \ tar c --owner=0 --group=0 --numeric-owner --mtime="@${SOURCE_DATE_EPOCH}" \ --mode=go+u-w --null --no-recursion -T - | $GZIP > xfstests.tar.gz +if test -n "$ARCH" +then + ln -f xfstests.tar.gz "xfstests-$ARCH.tar.gz" +fi |