]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: ensure stub_* files are always bundled
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 Apr 2012 02:50:41 +0000 (20:50 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 Apr 2012 02:50:41 +0000 (20:50 -0600)
Relying on dependency chains does not always work for stubs.
Builds automake list of files to bundle and add to EXTRA_DIST for
bundling.

scripts/source-maintenance.sh
src/Makefile.am
src/tests/Stub.list [new file with mode: 0644]

index 30efd9441c5fb6aefb2323025da954bd946a3b0a..859840ec0ef9c7f608495e012caf3d08199fc613 100755 (executable)
@@ -179,6 +179,17 @@ done
 echo " "
 )| sed s%${ROOT}/doc/manuals/%%g | sed s%\.po%\.lang%g >${ROOT}/doc/manuals/language.list
 
+# Build STUB framework include from current stub_* available
+(
+echo -n "STUB_SOURCE= tests/STUB.h"
+for f in `ls -1 ${ROOT}/src/tests/stub_*.cc`
+do
+       echo " \\"
+       echo -n "       ${f}"
+done
+echo " "
+)| sed s%${ROOT}/src/%%g >${ROOT}/src/tests/Stub.list
+
 # Run formating
 echo "" >${ROOT}/doc/debug-sections.tmp
 srcformat || exit 1
index 639882be33a03657a14037bd798bc5d8090d1956..c61389161c8f19d2c0e044df96231b3e4f55fbbc 100644 (file)
@@ -764,6 +764,8 @@ LDADD = \
        $(COMPAT_LIB) \
        $(XTRA_LIBS)
 
+include $(srcdir)/tests/Stub.list
+
 EXTRA_DIST = \
        cf_gen_defines \
        cf.data.pre \
@@ -774,7 +776,7 @@ EXTRA_DIST = \
        mk-string-arrays.pl \
        mk-string-arrays.awk \
        repl_modules.sh \
-       tests/STUB.h \
+       $(STUB_SOURCE) \
        mib.txt \
        mime.conf.default
 
diff --git a/src/tests/Stub.list b/src/tests/Stub.list
new file mode 100644 (file)
index 0000000..0eb17dc
--- /dev/null
@@ -0,0 +1,46 @@
+STUB_SOURCE= tests/STUB.h \
+       tests/stub_CommIO.cc \
+       tests/stub_DelayId.cc \
+       tests/stub_DiskIOModule.cc \
+       tests/stub_HelperChildConfig.cc \
+       tests/stub_HttpReply.cc \
+       tests/stub_HttpRequest.cc \
+       tests/stub_MemObject.cc \
+       tests/stub_MemStore.cc \
+       tests/stub_Port.cc \
+       tests/stub_StatHist.cc \
+       tests/stub_UdsOp.cc \
+       tests/stub_access_log.cc \
+       tests/stub_acl.cc \
+       tests/stub_cache_cf.cc \
+       tests/stub_cache_manager.cc \
+       tests/stub_client_db.cc \
+       tests/stub_client_side_request.cc \
+       tests/stub_comm.cc \
+       tests/stub_debug.cc \
+       tests/stub_errorpage.cc \
+       tests/stub_event.cc \
+       tests/stub_fd.cc \
+       tests/stub_helper.cc \
+       tests/stub_http.cc \
+       tests/stub_icp.cc \
+       tests/stub_internal.cc \
+       tests/stub_ipc.cc \
+       tests/stub_ipc_Forwarder.cc \
+       tests/stub_ipc_TypedMsgHdr.cc \
+       tests/stub_ipcache.cc \
+       tests/stub_libcomm.cc \
+       tests/stub_libicmp.cc \
+       tests/stub_main_cc.cc \
+       tests/stub_mem.cc \
+       tests/stub_mem_node.cc \
+       tests/stub_mime.cc \
+       tests/stub_pconn.cc \
+       tests/stub_stat.cc \
+       tests/stub_stmem.cc \
+       tests/stub_store.cc \
+       tests/stub_store_client.cc \
+       tests/stub_store_rebuild.cc \
+       tests/stub_store_stats.cc \
+       tests/stub_store_swapout.cc \
+       tests/stub_tools.cc