]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
libcupsfilters: Move test suite programs to cupsfilters/
authorTill Kamppeter <till.kamppeter@gmail.com>
Tue, 11 Oct 2022 22:40:52 +0000 (00:40 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Tue, 11 Oct 2022 22:40:52 +0000 (00:40 +0200)
Two test suite programs for libcupsfilters, test_pdf1.c and
test_pdf2.c were still in the filter/ directory. This commit moves
them into cupsfilters and correct their naming style.

Makefile.am
cupsfilters/testpdf1.c [moved from filter/test_pdf1.c with 100% similarity]
cupsfilters/testpdf2.c [moved from filter/test_pdf2.c with 100% similarity]

index b2bd76429edfd019ea6f9d77a1b09dcc215cc49c..bc5d05e11cb1594e6de3d15a3beb94795b760652 100644 (file)
@@ -193,11 +193,15 @@ check_PROGRAMS = \
        testimage \
        testrgb \
        test1284 \
+       testpdf1 \
+       testpdf2 \
        test-analyze \
        test-pdf \
        test-ps
 TESTS = \
        testdither \
+       testpdf1 \
+       testpdf2 \
        test-analyze \
        test-pdf \
        test-ps
@@ -361,6 +365,33 @@ testrgb_LDADD = \
        libcupsfilters.la \
        -lm
 
+test1284_SOURCES = \
+       cupsfilters/test1284.c
+test1284_LDADD = \
+       libcupsfilters.la \
+       $(CUPS_LIBS)
+test1284_CFLAGS = \
+       -I$(srcdir)/cupsfilters/ \
+       $(CUPS_CFLAGS)
+
+testpdf1_SOURCES = \
+       cupsfilters/testpdf1.c \
+       cupsfilters/fontembed.h
+testpdf1_CFLAGS = \
+       -I$(srcdir)/cupsfilters/fontembed/ \
+       -I$(srcdir)/cupsfilters/
+testpdf1_LDADD = \
+       libcupsfilters.la
+
+testpdf2_SOURCES = \
+       cupsfilters/testpdf2.c \
+       cupsfilters/fontembed.h
+testpdf2_CFLAGS = \
+       -I$(srcdir)/cupsfilters/fontembed/ \
+       -I$(srcdir)/cupsfilters/
+testpdf2_LDADD = \
+       libcupsfilters.la
+
 test_analyze_SOURCES = cupsfilters/fontembed/test-analyze.c
 test_analyze_LDADD = libcupsfilters.la
 
@@ -376,15 +407,6 @@ EXTRA_DIST += \
        cupsfilters/image.ppm \
        cupsfilters/fontembed/README
 
-test1284_SOURCES = \
-       cupsfilters/test1284.c
-test1284_LDADD = \
-       libcupsfilters.la \
-       $(CUPS_LIBS)
-test1284_CFLAGS = \
-       -I$(srcdir)/cupsfilters/ \
-       $(CUPS_CFLAGS)
-
 # =========
 # CUPS Data
 # =========
@@ -826,14 +848,6 @@ pkgfilter_PROGRAMS += \
        imagetoraster
 endif
 
-check_PROGRAMS += \
-       test_pdf1 \
-       test_pdf2
-
-TESTS += \
-       test_pdf1 \
-       test_pdf2
-
 # Not reliable bash script
 #TESTS += filter/test.sh
 
@@ -1135,24 +1149,6 @@ rastertopclx_LDADD = \
        libcupsfilters.la \
        libppd.la
 
-test_pdf1_SOURCES = \
-       filter/test_pdf1.c \
-       cupsfilters/fontembed.h
-test_pdf1_CFLAGS = \
-       -I$(srcdir)/cupsfilters/fontembed/ \
-       -I$(srcdir)/cupsfilters/
-test_pdf1_LDADD = \
-       libcupsfilters.la
-
-test_pdf2_SOURCES = \
-       filter/test_pdf2.c \
-       cupsfilters/fontembed.h
-test_pdf2_CFLAGS = \
-       -I$(srcdir)/cupsfilters/fontembed/ \
-       -I$(srcdir)/cupsfilters/
-test_pdf2_LDADD = \
-       libcupsfilters.la
-
 universal_SOURCES = \
        filter/universal.c
 universal_CFLAGS = \
similarity index 100%
rename from filter/test_pdf1.c
rename to cupsfilters/testpdf1.c
similarity index 100%
rename from filter/test_pdf2.c
rename to cupsfilters/testpdf2.c