Skip to content

Commit 67266a7

Browse files
committed
test: add hermetic unit tests for ppd-load-profile profile loader API
1 parent 2781f92 commit 67266a7

2 files changed

Lines changed: 580 additions & 2 deletions

File tree

Makefile.am

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ check_PROGRAMS = \
6666
test_ppd_conflicts \
6767
test_ppd_emit \
6868
test_ppd_filter \
69-
test_ppd_generator
69+
test_ppd_generator \
70+
test_ppd_load_profile
7071
TESTS = \
7172
testppd \
7273
test_ppd_localize \
@@ -79,7 +80,8 @@ TESTS = \
7980
test_ppd_conflicts \
8081
test_ppd_emit \
8182
test_ppd_filter \
82-
test_ppd_generator
83+
test_ppd_generator \
84+
test_ppd_load_profile
8385

8486
libppd_la_SOURCES = \
8587
ppd/ppd-attr.c \
@@ -255,6 +257,16 @@ test_ppd_generator_CFLAGS = \
255257
$(LIBCUPSFILTERS_CFLAGS) \
256258
$(CUPS_CFLAGS)
257259

260+
test_ppd_load_profile_SOURCES = ppd/test_ppd_load_profile.c
261+
test_ppd_load_profile_LDADD = \
262+
libppd.la \
263+
$(CUPS_LIBS) \
264+
$(LIBCUPSFILTERS_LIBS)
265+
test_ppd_load_profile_CFLAGS = \
266+
-I$(srcdir)/ppd/ \
267+
$(CUPS_CFLAGS) \
268+
$(LIBCUPSFILTERS_CFLAGS)
269+
258270
EXTRA_DIST += \
259271
$(pkgppdinclude_DATA) \
260272
$(pkgppddefs_DATA) \

0 commit comments

Comments
 (0)