All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Tulak <jtulak@redhat.com>
To: fstests@vger.kernel.org
Cc: eguan@redhat.com, Jan Tulak <jtulak@redhat.com>
Subject: [PATCH v2] xfstests: Fix installation for extended names
Date: Thu, 30 Jun 2016 10:35:10 +0200	[thread overview]
Message-ID: <1467275710-403-1-git-send-email-jtulak@redhat.com> (raw)
In-Reply-To: <1467212275-14344-1-git-send-email-jtulak@redhat.com>

xfstests supports extended test names like 314-foo-bar, but installation of
these tests was skipped (not matching a regexp). So this patch fixes the
makefiles in tests directories.

Signed-off-by: Jan Tulak <jtulak@redhat.com>
---
UPDATE:
  * install failed when no extended name was present, so suppress errors for
    extended names
---
 tests/btrfs/Makefile   | 2 ++
 tests/cifs/Makefile    | 2 ++
 tests/ext4/Makefile    | 2 ++
 tests/f2fs/Makefile    | 2 ++
 tests/generic/Makefile | 2 ++
 tests/overlay/Makefile | 2 ++
 tests/shared/Makefile  | 2 ++
 tests/udf/Makefile     | 2 ++
 tests/xfs/Makefile     | 2 ++
 9 files changed, 18 insertions(+)

diff --git a/tests/btrfs/Makefile b/tests/btrfs/Makefile
index e1a5be1..63c1111 100644
--- a/tests/btrfs/Makefile
+++ b/tests/btrfs/Makefile
@@ -13,8 +13,10 @@ include $(BUILDRULES)
 install:
 	$(INSTALL) -m 755 -d $(TARGET_DIR)
 	$(INSTALL) -m 755 [0-9]?? $(TARGET_DIR)
+	-$(INSTALL) -m 755 [0-9]??-* $(TARGET_DIR) 2>/dev/null;true
 	$(INSTALL) -m 644 group $(TARGET_DIR)
 	$(INSTALL) -m 644 [0-9]??.* $(TARGET_DIR)
+	-$(INSTALL) -m 644 [0-9]??-*.* $(TARGET_DIR) 2>/dev/null;true
 
 # Nothing.
 install-dev install-lib:
diff --git a/tests/cifs/Makefile b/tests/cifs/Makefile
index 9176e5c..93a9d69 100644
--- a/tests/cifs/Makefile
+++ b/tests/cifs/Makefile
@@ -13,8 +13,10 @@ include $(BUILDRULES)
 install:
 	$(INSTALL) -m 755 -d $(TARGET_DIR)
 	$(INSTALL) -m 755 [0-9]?? $(TARGET_DIR)
+	-$(INSTALL) -m 755 [0-9]??-* $(TARGET_DIR) 2>/dev/null;true
 	$(INSTALL) -m 644 group $(TARGET_DIR)
 	$(INSTALL) -m 644 [0-9]??.* $(TARGET_DIR)
+	-$(INSTALL) -m 644 [0-9]??-*.* $(TARGET_DIR) 2>/dev/null;true
 
 # Nothing.
 install-dev install-lib:
diff --git a/tests/ext4/Makefile b/tests/ext4/Makefile
index 7a3c8e1..c7de3f1 100644
--- a/tests/ext4/Makefile
+++ b/tests/ext4/Makefile
@@ -13,8 +13,10 @@ include $(BUILDRULES)
 install:
 	$(INSTALL) -m 755 -d $(TARGET_DIR)
 	$(INSTALL) -m 755 [0-9]?? $(TARGET_DIR)
+	-$(INSTALL) -m 755 [0-9]??-* $(TARGET_DIR) 2>/dev/null;true
 	$(INSTALL) -m 644 group $(TARGET_DIR)
 	$(INSTALL) -m 644 [0-9]??.* $(TARGET_DIR)
+	-$(INSTALL) -m 644 [0-9]??-*.* $(TARGET_DIR) 2>/dev/null;true
 
 # Nothing.
 install-dev install-lib:
diff --git a/tests/f2fs/Makefile b/tests/f2fs/Makefile
index 4d00e9e..e507495 100644
--- a/tests/f2fs/Makefile
+++ b/tests/f2fs/Makefile
@@ -14,8 +14,10 @@ include $(BUILDRULES)
 install:
 	$(INSTALL) -m 755 -d $(TARGET_DIR)
 	$(INSTALL) -m 755 [0-9]?? $(TARGET_DIR)
+	-$(INSTALL) -m 755 [0-9]??-* $(TARGET_DIR) 2>/dev/null;true
 	$(INSTALL) -m 644 group $(TARGET_DIR)
 	$(INSTALL) -m 644 [0-9]??.* $(TARGET_DIR)
+	-$(INSTALL) -m 644 [0-9]??-*.* $(TARGET_DIR) 2>/dev/null;true
 
 # Nothing.
 install-dev install-lib:
diff --git a/tests/generic/Makefile b/tests/generic/Makefile
index 9529fb8..f449dc3 100644
--- a/tests/generic/Makefile
+++ b/tests/generic/Makefile
@@ -13,8 +13,10 @@ include $(BUILDRULES)
 install:
 	$(INSTALL) -m 755 -d $(TARGET_DIR)
 	$(INSTALL) -m 755 [0-9]?? $(TARGET_DIR)
+	-$(INSTALL) -m 755 [0-9]??-* $(TARGET_DIR) 2>/dev/null;true
 	$(INSTALL) -m 644 group $(TARGET_DIR)
 	$(INSTALL) -m 644 [0-9]??.* $(TARGET_DIR)
+	-$(INSTALL) -m 644 [0-9]??-*.* $(TARGET_DIR) 2>/dev/null;true
 
 # Nothing.
 install-dev install-lib:
diff --git a/tests/overlay/Makefile b/tests/overlay/Makefile
index 63c9878..e8459e0 100644
--- a/tests/overlay/Makefile
+++ b/tests/overlay/Makefile
@@ -13,8 +13,10 @@ include $(BUILDRULES)
 install:
 	$(INSTALL) -m 755 -d $(TARGET_DIR)
 	$(INSTALL) -m 755 [0-9]?? $(TARGET_DIR)
+	-$(INSTALL) -m 755 [0-9]??-* $(TARGET_DIR) 2>/dev/null;true
 	$(INSTALL) -m 644 group $(TARGET_DIR)
 	$(INSTALL) -m 644 [0-9]??.* $(TARGET_DIR)
+	-$(INSTALL) -m 644 [0-9]??-*.* $(TARGET_DIR) 2>/dev/null;true
 
 # Nothing.
 install-dev install-lib:
diff --git a/tests/shared/Makefile b/tests/shared/Makefile
index cbd87f9..d9148ec 100644
--- a/tests/shared/Makefile
+++ b/tests/shared/Makefile
@@ -13,8 +13,10 @@ include $(BUILDRULES)
 install:
 	$(INSTALL) -m 755 -d $(TARGET_DIR)
 	$(INSTALL) -m 755 [0-9]?? $(TARGET_DIR)
+	-$(INSTALL) -m 755 [0-9]??-* $(TARGET_DIR) 2>/dev/null;true
 	$(INSTALL) -m 644 group $(TARGET_DIR)
 	$(INSTALL) -m 644 [0-9]??.* $(TARGET_DIR)
+	-$(INSTALL) -m 644 [0-9]??-*.* $(TARGET_DIR) 2>/dev/null;true
 
 # Nothing.
 install-dev install-lib:
diff --git a/tests/udf/Makefile b/tests/udf/Makefile
index 1d96658..9822e3c 100644
--- a/tests/udf/Makefile
+++ b/tests/udf/Makefile
@@ -13,8 +13,10 @@ include $(BUILDRULES)
 install:
 	$(INSTALL) -m 755 -d $(TARGET_DIR)
 	$(INSTALL) -m 755 [0-9]?? $(TARGET_DIR)
+	-$(INSTALL) -m 755 [0-9]??-* $(TARGET_DIR) 2>/dev/null;true
 	$(INSTALL) -m 644 group $(TARGET_DIR)
 	$(INSTALL) -m 644 [0-9]??.* $(TARGET_DIR)
+	-$(INSTALL) -m 644 [0-9]??-*.* $(TARGET_DIR) 2>/dev/null;true
 
 # Nothing.
 install-dev install-lib:
diff --git a/tests/xfs/Makefile b/tests/xfs/Makefile
index db94be0..28e0887 100644
--- a/tests/xfs/Makefile
+++ b/tests/xfs/Makefile
@@ -13,8 +13,10 @@ include $(BUILDRULES)
 install:
 	$(INSTALL) -m 755 -d $(TARGET_DIR)
 	$(INSTALL) -m 755 [0-9]?? $(TARGET_DIR)
+	-$(INSTALL) -m 755 [0-9]??-* $(TARGET_DIR) 2>/dev/null;true
 	$(INSTALL) -m 644 group $(TARGET_DIR)
 	$(INSTALL) -m 644 [0-9]??.* $(TARGET_DIR)
+	-$(INSTALL) -m 644 [0-9]??-*.* $(TARGET_DIR) 2>/dev/null;true
 
 # Nothing.
 install-dev install-lib:
-- 
2.5.5


  parent reply	other threads:[~2016-06-30  8:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29 14:57 [PATCH] xfstests: Fix installation for extended names Jan Tulak
2016-06-30  3:38 ` Eryu Guan
2016-06-30  8:32   ` Jan Tulak
2016-06-30  8:35 ` Jan Tulak [this message]
2016-06-30 13:33   ` [PATCH v2] " Eryu Guan
2016-06-30 15:19     ` Jan Tulak
2016-06-30 15:35       ` Eryu Guan
2016-06-30 16:06 ` [PATCH v3] xfstests: Fix installation for extended Jan Tulak
2016-06-30 16:08   ` Jan Tulak
2016-06-30 16:21     ` Eryu Guan
2016-07-01  1:16   ` Dave Chinner
2016-07-01 15:51     ` Jan Tulak
2016-07-14 12:43 [PATCH 0/6 v3] xfstests: some small fixes and mkfs validation test Jan Tulak
2016-07-18  8:47 ` [PATCH v2] xfstests: Fix installation for extended names Jan Tulak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1467275710-403-1-git-send-email-jtulak@redhat.com \
    --to=jtulak@redhat.com \
    --cc=eguan@redhat.com \
    --cc=fstests@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.