[master] b721e2b57 varnishtest: do not require PACKAGE_VERSION and PACKAGE_BRANCH be defined

Nils Goroll nils.goroll at uplex.de
Sun May 18 15:03:05 UTC 2025


commit b721e2b5720ee666d5d6508256a86715ecf24a32
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sun May 18 16:51:55 2025 +0200

    varnishtest: do not require PACKAGE_VERSION and PACKAGE_BRANCH be defined
    
    reduces delta to vtest

diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index 9880c7c5e..83b6ef15d 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -836,8 +836,12 @@ main(int argc, char * const *argv)
 	else
 		tmppath = strdup("/tmp");
 
+#ifdef PACKAGE_VERSION
 	extmacro_def("pkg_version", NULL, PACKAGE_VERSION);
+#endif
+#ifdef PACKAGE_BRANCH
 	extmacro_def("pkg_branch", NULL, PACKAGE_BRANCH);
+#endif
 
 	cwd = getcwd(buf, sizeof buf);
 	extmacro_def("pwd", NULL, "%s", cwd);


More information about the varnish-commit mailing list