]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: ensure stub_* files are always bundled
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 18 Mar 2012 01:41:17 +0000 (13:41 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 18 Mar 2012 01:41:17 +0000 (13:41 +1200)
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 e0c3f91326699f5fb4478c51787879ef60b92993..a138dd4697bf446fd228f45febb3787735d021dd 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 21470965406a5d5337d61a36d95f8a69fd926f7d..8ab6b031db41c468ac768e84285c2d12f640fe54 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..eb189f5
--- /dev/null
@@ -0,0 +1,47 @@
+STUB_SOURCE= tests\STUB.h \
+       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_CommIO.cc \
+       tests/stub_debug.cc \
+       tests/stub_DelayId.cc \
+       tests/stub_DiskIOModule.cc \
+       tests/stub_errorpage.cc \
+       tests/stub_event.cc \
+       tests/stub_fd.cc \
+       tests/stub_helper.cc \
+       tests/stub_HelperChildConfig.cc \
+       tests/stub_http.cc \
+       tests/stub_HttpReply.cc \
+       tests/stub_HttpRequest.cc \
+       tests/stub_icp.cc \
+       tests/stub_internal.cc \
+       tests/stub_ipcache.cc \
+       tests/stub_ipc.cc \
+       tests/stub_ipc_Forwarder.cc \
+       tests/stub_ipc_TypedMsgHdr.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_MemObject.cc \
+       tests/stub_MemStore.cc \
+       tests/stub_mime.cc \
+       tests/stub_pconn.cc \
+       tests/stub_Port.cc \
+       tests/stub_stat.cc \
+       tests/stub_StatHist.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 \
+       tests/stub_UdsOp.cc \
+       tests/stub_wordlist.cc