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

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