[tools] testbot/testagentd: Compress the Windows TestAgent server.

Francois Gouget fgouget at codeweavers.com
Tue Feb 22 12:53:49 CST 2022


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
TestAgent is not sent to the VMs with each task, unlike TestLauncher. So 
compressing it is less necessary but this makes the build systems more 
similar.

Maybe TestLauncher should only be sent when setting up the VM too: it's 
not being updated much these days so that could work. It's not that big 
though.
---
 testbot/src/testagentd/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/testbot/src/testagentd/Makefile b/testbot/src/testagentd/Makefile
index 645e268435..0677acea69 100644
--- a/testbot/src/testagentd/Makefile
+++ b/testbot/src/testagentd/Makefile
@@ -4,6 +4,7 @@ CROSSCC32    = i686-w64-mingw32-gcc
 CROSSSTRIP32 = i686-w64-mingw32-strip
 CROSSCC64    = x86_64-w64-mingw32-gcc
 CROSSSTRIP64 = x86_64-w64-mingw32-strip
+CROSSZIPEXE  = upx-ucl
 
 all: build iso
 build: $(builddir)/testagentd
@@ -25,6 +26,10 @@ WIN_SOURCES      = testagentd.c platform_windows.c
 TestAgentd32.exe: $(WIN_SOURCES:.c=.obj32)
 	$(CROSSCC32) -o $@ $(WIN_SOURCES:.c=.obj32) -lws2_32
 	$(CROSSSTRIP32) $@
+	if which $(CROSSZIPEXE); \
+	then \
+	    $(CROSSZIPEXE) --best -q -q $@; \
+	fi
 
 .SUFFIXES: .obj32
 .c.obj32:
@@ -33,6 +38,10 @@ TestAgentd32.exe: $(WIN_SOURCES:.c=.obj32)
 TestAgentd64.exe: $(WIN_SOURCES:.c=.obj64)
 	$(CROSSCC64) -o $@ $(WIN_SOURCES:.c=.obj64) -lws2_32
 	$(CROSSSTRIP64) $@
+	if which $(CROSSZIPEXE); \
+	then \
+	    $(CROSSZIPEXE) --best -q -q $@; \
+	fi
 
 .SUFFIXES: .obj64
 .c.obj64:
-- 
2.30.2



More information about the wine-devel mailing list