Fwd: Running vtest against master branch

Martin Grigorov martin.grigorov at gmail.com
Thu Jan 30 11:13:39 UTC 2020


Hello,

I am trying to run VTest against Varnish Cache master branch.

Here are my steps:


set VARNISH_FOLDER "/home/ubuntu/git/varnish"
set VARNISH_CACHE "varnish-cache"
set VARNISH_CACHE_BUILD "$VARNISH_FOLDER/varnish-cache-build"

git clone https://github.com/varnishcache/$VARNISH_CACHE.git
./autogen.sh
./configure --with-unwind --enable-developer-warnings
--enable-debugging-symbols --disable-stack-protector
--with-persistent-storage --enable-asan --enable-ubsan
--prefix=$VARNISH_CACHE_BUILD
make
make install
cd ..

git clone https://github.com/VTest/VTest.git vtest
cd vtest
env VARNISH_SRC="$VARNISH_FOLDER/varnish-cache" make varnishtest

but here it fails with:

cc \
-O2 -s -Wall -Werror \
-o varnishtest \
-DVTEST_WITH_VTC_VARNISH \
-DVTEST_WITH_VTC_LOGEXPECT \
-Isrc -Ilib -I/usr/local/include -pthread \
-I/home/ubuntu/git/varnish/varnish-cache/include \
src/*.c lib/*.c \
-L/usr/local/lib -lm -lpcre -lz \
-L/home/ubuntu/git/varnish/varnish-cache/lib/libvarnishapi/.libs \
-Wl,--rpath,/home/ubuntu/git/varnish/varnish-cache/lib/libvarnishapi/.libs \
-lvarnishapi
src/vtc_main.c: In function ‘cleaner_setup’:
src/vtc_main.c:232:3: error: ignoring return value of ‘nice’, declared with
attribute warn_unused_result [-Werror=unused-result]
   (void)nice(1);  /* Not important */
   ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:51: recipe for target 'varnishtest' failed
make: *** [varnishtest] Error 1

To be able to overcome this I had to change FLAGS:

diff --git Makefile Makefile
index 996686f..c3ba32a 100644
--- Makefile
+++ Makefile
@@ -18,7 +18,7 @@ DEPS= ${SRCS} \
        src/teken_state.h \
        src/vtc_h2_dectbl.h

-FLAGS= -O2 -s -Wall -Werror
+FLAGS ?=       -O2 -s -Wall -Werror

 INCS=  -Isrc \
        -Ilib \


and issue:

env FLAGS="-O2 -s -Wall"
VARNISH_SRC="/home/ubuntu/git/varnish/varnish-cache" make varnishtest


but now the outcome is:

cc \
-O2 -s -Wall \
-o varnishtest \
-DVTEST_WITH_VTC_VARNISH \
-DVTEST_WITH_VTC_LOGEXPECT \
-Isrc -Ilib -I/usr/local/include -pthread \
-I/home/ubuntu/git/varnish/varnish-cache/include \
src/*.c lib/*.c \
-L/usr/local/lib -lm -lpcre -lz \
-L/home/ubuntu/git/varnish/varnish-cache/lib/libvarnishapi/.libs \
-Wl,--rpath,/home/ubuntu/git/varnish/varnish-cache/lib/libvarnishapi/.libs \
-lvarnishapi
src/vtc_main.c: In function ‘cleaner_setup’:
src/vtc_main.c:232:3: warning: ignoring return value of ‘nice’, declared
with attribute warn_unused_result [-Wunused-result]
   (void)nice(1);  /* Not important */
   ^~~~~~~~~~~~~
//usr/lib/aarch64-linux-gnu/libasan.so.4: warning: the use of `tmpnam' is
dangerous, better use `mkstemp'
//usr/lib/aarch64-linux-gnu/libasan.so.4: warning: the use of `tempnam' is
dangerous, better use `mkstemp'
//usr/lib/aarch64-linux-gnu/libasan.so.4: warning: the use of `tmpnam_r' is
dangerous, better use `mkstemp'

No tests are executed.
As you might have noticed I test on aarch64 architecture.

Do I need to do something more ?


Regards,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20200130/709af839/attachment.html>


More information about the varnish-dev mailing list