doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

Blame SOURCES/0318-testsuite-move-examples-to-tests.patch

f9f924
From 4e4a590283c0a69b46ca6c106fa25ab424be246c Mon Sep 17 00:00:00 2001
f9f924
From: Martin Kutlak <mkutlak@redhat.com>
f9f924
Date: Thu, 22 Nov 2018 13:27:06 +0100
f9f924
Subject: [PATCH] testsuite: move examples to 'tests'
f9f924
f9f924
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
f9f924
---
f9f924
 Makefile.am                                   | 29 +----------------------------
f9f924
 tests/Makefile.am                             | 29 ++++++++++++++++++++++++++++-
f9f924
 {examples => tests/examples}/cut_here.right   |  0
f9f924
 .../examples}/hash-gen-oops6.right            |  0
f9f924
 .../examples}/hash-gen-same-as-oops6.right    |  0
f9f924
 .../examples}/hash-gen-short-oops.right       |  0
f9f924
 .../examples}/koops-tainted-bg1               |  0
f9f924
 {examples => tests/examples}/koops-tainted-g  |  0
f9f924
 .../examples}/koops-tainted-insane            |  0
f9f924
 .../examples}/koops-tainted-spaces            |  0
f9f924
 {examples => tests/examples}/nmi_oops.right   |  0
f9f924
 {examples => tests/examples}/nmi_oops.test    |  0
f9f924
 .../examples}/nmi_oops_hash.right             |  0
f9f924
 .../examples}/nmi_oops_hash.test              |  0
f9f924
 .../examples}/oops-kernel-3.x.x               |  0
f9f924
 .../examples}/oops-same-as-oops4.right        |  0
f9f924
 .../examples}/oops-with-jiffies.right         |  0
f9f924
 .../examples}/oops-with-jiffies.test          |  0
f9f924
 {examples => tests/examples}/oops1.right      |  0
f9f924
 .../examples}/oops10_s390x.right              |  0
f9f924
 .../examples}/oops10_s390x.test               |  0
f9f924
 {examples => tests/examples}/oops4.right      |  0
f9f924
 .../examples}/oops_broken_bios.test           |  0
f9f924
 .../examples}/oops_recursive_locking1.right   |  0
f9f924
 .../examples}/oops_recursive_locking1.test    |  0
f9f924
 .../examples}/oops_unsupported_hw.test        |  0
f9f924
 tests/koops-test.h                            |  2 +-
f9f924
 27 files changed, 30 insertions(+), 30 deletions(-)
f9f924
 rename {examples => tests/examples}/cut_here.right (100%)
f9f924
 rename {examples => tests/examples}/hash-gen-oops6.right (100%)
f9f924
 rename {examples => tests/examples}/hash-gen-same-as-oops6.right (100%)
f9f924
 rename {examples => tests/examples}/hash-gen-short-oops.right (100%)
f9f924
 rename {examples => tests/examples}/koops-tainted-bg1 (100%)
f9f924
 rename {examples => tests/examples}/koops-tainted-g (100%)
f9f924
 rename {examples => tests/examples}/koops-tainted-insane (100%)
f9f924
 rename {examples => tests/examples}/koops-tainted-spaces (100%)
f9f924
 rename {examples => tests/examples}/nmi_oops.right (100%)
f9f924
 rename {examples => tests/examples}/nmi_oops.test (100%)
f9f924
 rename {examples => tests/examples}/nmi_oops_hash.right (100%)
f9f924
 rename {examples => tests/examples}/nmi_oops_hash.test (100%)
f9f924
 rename {examples => tests/examples}/oops-kernel-3.x.x (100%)
f9f924
 rename {examples => tests/examples}/oops-same-as-oops4.right (100%)
f9f924
 rename {examples => tests/examples}/oops-with-jiffies.right (100%)
f9f924
 rename {examples => tests/examples}/oops-with-jiffies.test (100%)
f9f924
 rename {examples => tests/examples}/oops1.right (100%)
f9f924
 rename {examples => tests/examples}/oops10_s390x.right (100%)
f9f924
 rename {examples => tests/examples}/oops10_s390x.test (100%)
f9f924
 rename {examples => tests/examples}/oops4.right (100%)
f9f924
 rename {examples => tests/examples}/oops_broken_bios.test (100%)
f9f924
 rename {examples => tests/examples}/oops_recursive_locking1.right (100%)
f9f924
 rename {examples => tests/examples}/oops_recursive_locking1.test (100%)
f9f924
 rename {examples => tests/examples}/oops_unsupported_hw.test (100%)
f9f924
 rename {examples => tests/examples}/taint/.gitignore (100%)
f9f924
 rename {examples => tests/examples}/taint/Makefile (100%)
f9f924
 rename {examples => tests/examples}/taint/taint.c (100%)
f9f924
f9f924
diff --git a/Makefile.am b/Makefile.am
f9f924
index b5430d133..1a9c3e4b2 100644
f9f924
--- a/Makefile.am
f9f924
+++ b/Makefile.am
f9f924
@@ -4,36 +4,9 @@ SUBDIRS = src doc po icons tests apidoc
f9f924
 DISTCHECK_CONFIGURE_FLAGS = \
f9f924
         --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
f9f924
 
f9f924
-TESTSUITE_FILES =
f9f924
-TESTSUITE_FILES += examples/koops-tainted-g
f9f924
-TESTSUITE_FILES += examples/koops-tainted-insane
f9f924
-TESTSUITE_FILES += examples/koops-tainted-spaces
f9f924
-TESTSUITE_FILES += examples/cut_here.right
f9f924
-TESTSUITE_FILES += examples/oops-kernel-3.x.x
f9f924
-TESTSUITE_FILES += examples/oops1.right
f9f924
-TESTSUITE_FILES += examples/koops-tainted-bg1
f9f924
-TESTSUITE_FILES += examples/oops-same-as-oops4.right
f9f924
-TESTSUITE_FILES += examples/oops4.right
f9f924
-TESTSUITE_FILES += examples/oops-same-as-oops4.right
f9f924
-TESTSUITE_FILES += examples/hash-gen-oops6.right
f9f924
-TESTSUITE_FILES += examples/hash-gen-short-oops.right
f9f924
-TESTSUITE_FILES += examples/hash-gen-same-as-oops6.right
f9f924
-TESTSUITE_FILES += examples/oops-with-jiffies.test
f9f924
-TESTSUITE_FILES += examples/oops-with-jiffies.right
f9f924
-TESTSUITE_FILES += examples/oops_recursive_locking1.test
f9f924
-TESTSUITE_FILES += examples/oops_recursive_locking1.right
f9f924
-TESTSUITE_FILES += examples/nmi_oops.test
f9f924
-TESTSUITE_FILES += examples/nmi_oops.right
f9f924
-TESTSUITE_FILES += examples/nmi_oops_hash.test
f9f924
-TESTSUITE_FILES += examples/nmi_oops_hash.right
f9f924
-TESTSUITE_FILES += examples/oops10_s390x.test
f9f924
-TESTSUITE_FILES += examples/oops10_s390x.right
f9f924
-TESTSUITE_FILES += examples/oops_unsupported_hw.test
f9f924
-TESTSUITE_FILES += examples/oops_broken_bios.test
f9f924
-
f9f924
 
f9f924
 EXTRA_DIST = doc/coding-style abrt.spec.in abrt.pc.in \
f9f924
-	abrt-version asciidoc.conf init-scripts/* $(TESTSUITE_FILES) \
f9f924
+	abrt-version asciidoc.conf init-scripts/* \
f9f924
 	augeas/test_abrt.aug
f9f924
 
f9f924
 pkgconfigdir = $(libdir)/pkgconfig
f9f924
diff --git a/tests/Makefile.am b/tests/Makefile.am
f9f924
index 416f579b7..1e1b63376 100644
f9f924
--- a/tests/Makefile.am
f9f924
+++ b/tests/Makefile.am
f9f924
@@ -24,6 +24,33 @@ EXTRA_DIST = package.m4 ignored_problems_data
f9f924
 ## Test suite.  ##
f9f924
 ## ------------ ##
f9f924
 
f9f924
+TESTSUITE_FILES =
f9f924
+TESTSUITE_FILES += examples/koops-tainted-g
f9f924
+TESTSUITE_FILES += examples/koops-tainted-insane
f9f924
+TESTSUITE_FILES += examples/koops-tainted-spaces
f9f924
+TESTSUITE_FILES += examples/cut_here.right
f9f924
+TESTSUITE_FILES += examples/oops-kernel-3.x.x
f9f924
+TESTSUITE_FILES += examples/oops1.right
f9f924
+TESTSUITE_FILES += examples/koops-tainted-bg1
f9f924
+TESTSUITE_FILES += examples/oops-same-as-oops4.right
f9f924
+TESTSUITE_FILES += examples/oops4.right
f9f924
+TESTSUITE_FILES += examples/oops-same-as-oops4.right
f9f924
+TESTSUITE_FILES += examples/hash-gen-oops6.right
f9f924
+TESTSUITE_FILES += examples/hash-gen-short-oops.right
f9f924
+TESTSUITE_FILES += examples/hash-gen-same-as-oops6.right
f9f924
+TESTSUITE_FILES += examples/oops-with-jiffies.test
f9f924
+TESTSUITE_FILES += examples/oops-with-jiffies.right
f9f924
+TESTSUITE_FILES += examples/oops_recursive_locking1.test
f9f924
+TESTSUITE_FILES += examples/oops_recursive_locking1.right
f9f924
+TESTSUITE_FILES += examples/nmi_oops.test
f9f924
+TESTSUITE_FILES += examples/nmi_oops.right
f9f924
+TESTSUITE_FILES += examples/nmi_oops_hash.test
f9f924
+TESTSUITE_FILES += examples/nmi_oops_hash.right
f9f924
+TESTSUITE_FILES += examples/oops10_s390x.test
f9f924
+TESTSUITE_FILES += examples/oops10_s390x.right
f9f924
+TESTSUITE_FILES += examples/oops_unsupported_hw.test
f9f924
+TESTSUITE_FILES += examples/oops_broken_bios.test
f9f924
+
f9f924
 TESTSUITE_AT = \
f9f924
   local.at \
f9f924
   testsuite.at \
f9f924
@@ -32,7 +59,7 @@ TESTSUITE_AT = \
f9f924
   ignored_problems.at \
f9f924
   hooklib.at
f9f924
 
f9f924
-EXTRA_DIST += $(TESTSUITE_AT)
f9f924
+EXTRA_DIST += $(TESTSUITE_AT) $(TESTSUITE_FILES)
f9f924
 TESTSUITE = $(srcdir)/testsuite
f9f924
 MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
f9f924
 check_DATA = atconfig atlocal $(TESTSUITE)
f9f924
diff --git a/examples/cut_here.right b/tests/examples/cut_here.right
f9f924
similarity index 100%
f9f924
rename from examples/cut_here.right
f9f924
rename to tests/examples/cut_here.right
f9f924
diff --git a/examples/hash-gen-oops6.right b/tests/examples/hash-gen-oops6.right
f9f924
similarity index 100%
f9f924
rename from examples/hash-gen-oops6.right
f9f924
rename to tests/examples/hash-gen-oops6.right
f9f924
diff --git a/examples/hash-gen-same-as-oops6.right b/tests/examples/hash-gen-same-as-oops6.right
f9f924
similarity index 100%
f9f924
rename from examples/hash-gen-same-as-oops6.right
f9f924
rename to tests/examples/hash-gen-same-as-oops6.right
f9f924
diff --git a/examples/hash-gen-short-oops.right b/tests/examples/hash-gen-short-oops.right
f9f924
similarity index 100%
f9f924
rename from examples/hash-gen-short-oops.right
f9f924
rename to tests/examples/hash-gen-short-oops.right
f9f924
diff --git a/examples/koops-tainted-bg1 b/tests/examples/koops-tainted-bg1
f9f924
similarity index 100%
f9f924
rename from examples/koops-tainted-bg1
f9f924
rename to tests/examples/koops-tainted-bg1
f9f924
diff --git a/examples/koops-tainted-g b/tests/examples/koops-tainted-g
f9f924
similarity index 100%
f9f924
rename from examples/koops-tainted-g
f9f924
rename to tests/examples/koops-tainted-g
f9f924
diff --git a/examples/koops-tainted-insane b/tests/examples/koops-tainted-insane
f9f924
similarity index 100%
f9f924
rename from examples/koops-tainted-insane
f9f924
rename to tests/examples/koops-tainted-insane
f9f924
diff --git a/examples/koops-tainted-spaces b/tests/examples/koops-tainted-spaces
f9f924
similarity index 100%
f9f924
rename from examples/koops-tainted-spaces
f9f924
rename to tests/examples/koops-tainted-spaces
f9f924
diff --git a/examples/nmi_oops.right b/tests/examples/nmi_oops.right
f9f924
similarity index 100%
f9f924
rename from examples/nmi_oops.right
f9f924
rename to tests/examples/nmi_oops.right
f9f924
diff --git a/examples/nmi_oops.test b/tests/examples/nmi_oops.test
f9f924
similarity index 100%
f9f924
rename from examples/nmi_oops.test
f9f924
rename to tests/examples/nmi_oops.test
f9f924
diff --git a/examples/nmi_oops_hash.right b/tests/examples/nmi_oops_hash.right
f9f924
similarity index 100%
f9f924
rename from examples/nmi_oops_hash.right
f9f924
rename to tests/examples/nmi_oops_hash.right
f9f924
diff --git a/examples/nmi_oops_hash.test b/tests/examples/nmi_oops_hash.test
f9f924
similarity index 100%
f9f924
rename from examples/nmi_oops_hash.test
f9f924
rename to tests/examples/nmi_oops_hash.test
f9f924
diff --git a/examples/oops-kernel-3.x.x b/tests/examples/oops-kernel-3.x.x
f9f924
similarity index 100%
f9f924
rename from examples/oops-kernel-3.x.x
f9f924
rename to tests/examples/oops-kernel-3.x.x
f9f924
diff --git a/examples/oops-same-as-oops4.right b/tests/examples/oops-same-as-oops4.right
f9f924
similarity index 100%
f9f924
rename from examples/oops-same-as-oops4.right
f9f924
rename to tests/examples/oops-same-as-oops4.right
f9f924
diff --git a/examples/oops-with-jiffies.right b/tests/examples/oops-with-jiffies.right
f9f924
similarity index 100%
f9f924
rename from examples/oops-with-jiffies.right
f9f924
rename to tests/examples/oops-with-jiffies.right
f9f924
diff --git a/examples/oops-with-jiffies.test b/tests/examples/oops-with-jiffies.test
f9f924
similarity index 100%
f9f924
rename from examples/oops-with-jiffies.test
f9f924
rename to tests/examples/oops-with-jiffies.test
f9f924
diff --git a/examples/oops1.right b/tests/examples/oops1.right
f9f924
similarity index 100%
f9f924
rename from examples/oops1.right
f9f924
rename to tests/examples/oops1.right
f9f924
diff --git a/examples/oops10_s390x.right b/tests/examples/oops10_s390x.right
f9f924
similarity index 100%
f9f924
rename from examples/oops10_s390x.right
f9f924
rename to tests/examples/oops10_s390x.right
f9f924
diff --git a/examples/oops10_s390x.test b/tests/examples/oops10_s390x.test
f9f924
similarity index 100%
f9f924
rename from examples/oops10_s390x.test
f9f924
rename to tests/examples/oops10_s390x.test
f9f924
diff --git a/examples/oops4.right b/tests/examples/oops4.right
f9f924
similarity index 100%
f9f924
rename from examples/oops4.right
f9f924
rename to tests/examples/oops4.right
f9f924
diff --git a/examples/oops_broken_bios.test b/tests/examples/oops_broken_bios.test
f9f924
similarity index 100%
f9f924
rename from examples/oops_broken_bios.test
f9f924
rename to tests/examples/oops_broken_bios.test
f9f924
diff --git a/examples/oops_recursive_locking1.right b/tests/examples/oops_recursive_locking1.right
f9f924
similarity index 100%
f9f924
rename from examples/oops_recursive_locking1.right
f9f924
rename to tests/examples/oops_recursive_locking1.right
f9f924
diff --git a/examples/oops_recursive_locking1.test b/tests/examples/oops_recursive_locking1.test
f9f924
similarity index 100%
f9f924
rename from examples/oops_recursive_locking1.test
f9f924
rename to tests/examples/oops_recursive_locking1.test
f9f924
diff --git a/examples/oops_unsupported_hw.test b/tests/examples/oops_unsupported_hw.test
f9f924
similarity index 100%
f9f924
rename from examples/oops_unsupported_hw.test
f9f924
rename to tests/examples/oops_unsupported_hw.test
f9f924
diff --git a/tests/koops-test.h b/tests/koops-test.h
f9f924
index 53787aa62..58f4ede01 100644
f9f924
--- a/tests/koops-test.h
f9f924
+++ b/tests/koops-test.h
f9f924
@@ -18,7 +18,7 @@
f9f924
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
f9f924
 */
f9f924
 
f9f924
-#define EXAMPLE_PFX "../../../examples"
f9f924
+#define EXAMPLE_PFX "../../examples"
f9f924
 
f9f924
 struct test_struct {
f9f924
         const char *filename;
f9f924
-- 
f9f924
2.17.2
f9f924