[master] c9c9862bc varnishtest: New pkg_{version,branch} VTC macros

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Aug 5 09:24:07 UTC 2022


commit c9c9862bc1f9864bf4cf3931d34469261c535bb9
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Jul 26 10:51:21 2022 +0200

    varnishtest: New pkg_{version,branch} VTC macros

diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index dc05e2eaa..9080ab3b3 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -808,6 +808,9 @@ main(int argc, char * const *argv)
 	else
 		tmppath = strdup("/tmp");
 
+	extmacro_def("pkg_version", NULL, PACKAGE_VERSION);
+	extmacro_def("pkg_branch", NULL, PACKAGE_BRANCH);
+
 	cwd = getcwd(buf, sizeof buf);
 	extmacro_def("pwd", NULL, "%s", cwd);
 


More information about the varnish-commit mailing list