]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add threading unit test program (Issue #5642)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 2 Oct 2019 19:31:00 +0000 (15:31 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 2 Oct 2019 19:31:00 +0000 (15:31 -0400)
cups/Dependencies
cups/Makefile

index b30c76994d79be2a6cc983813678087862fb4867..1cb291bd9d15826f4906398b61d9fd835547136f 100644 (file)
@@ -188,7 +188,7 @@ tls.o: tls.c cups-private.h string-private.h ../config.h \
   ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \
   pwg.h http-private.h ../cups/language.h ../cups/http.h \
   language-private.h ../cups/transcode.h pwg-private.h thread-private.h \
-  debug-internal.h debug-private.h tls-darwin.c
+  debug-internal.h debug-private.h tls-darwin.c tls-darwin.h
 transcode.o: transcode.c cups-private.h string-private.h ../config.h \
   ../cups/versioning.h array-private.h ../cups/array.h versioning.h \
   ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \
@@ -214,7 +214,7 @@ adminutil.o: adminutil.c cups-private.h string-private.h ../config.h \
   language-private.h ../cups/transcode.h pwg-private.h thread-private.h \
   debug-internal.h debug-private.h ppd.h cups.h raster.h adminutil.h
 backchannel.o: backchannel.c cups.h file.h versioning.h ipp.h http.h \
-  array.h language.h pwg.h
+  array.h language.h pwg.h sidechannel.h
 backend.o: backend.c cups-private.h string-private.h ../config.h \
   ../cups/versioning.h array-private.h ../cups/array.h versioning.h \
   ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \
@@ -401,6 +401,9 @@ testsnmp.o: testsnmp.c cups-private.h string-private.h ../config.h \
   pwg.h http-private.h ../cups/language.h ../cups/http.h \
   language-private.h ../cups/transcode.h pwg-private.h thread-private.h \
   snmp-private.h
+testthreads.o: testthreads.c ../cups/cups.h file.h versioning.h ipp.h \
+  http.h array.h language.h pwg.h ../cups/thread-private.h ../config.h \
+  ../cups/versioning.h
 tlscheck.o: tlscheck.c cups-private.h string-private.h ../config.h \
   ../cups/versioning.h array-private.h ../cups/array.h versioning.h \
   ipp-private.h ../cups/cups.h file.h ipp.h http.h array.h language.h \
index 87d85babc654534a720a5f0b0f3bf8227f7d6b44..4e2aa6d37b9f601de9fa94dc7c85296760caf051 100644 (file)
@@ -106,6 +106,7 @@ TESTOBJS    = \
                testpwg.o \
                testraster.o \
                testsnmp.o \
+               testthreads.o \
                tlscheck.o
 OBJS   =       \
                $(LIBOBJS) \
@@ -191,6 +192,7 @@ UNITTARGETS =       \
                testpwg \
                testraster \
                testsnmp \
+               testthreads \
                tlscheck
 
 TARGETS        =       \
@@ -700,6 +702,16 @@ testsnmp:  testsnmp.o $(LIBCUPSSTATIC)
        $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
 
 
+#
+# testthreads (dependency on static CUPS library is intentional)
+#
+
+testthreads:   testthreads.o $(LIBCUPSSTATIC)
+       echo Linking $@...
+       $(LD_CC) $(ALL_LDFLAGS) -o $@ testthreads.o $(LINKCUPSSTATIC)
+       $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
+
+
 #
 # tlscheck (dependency on static CUPS library is intentional)
 #