Klemens Nanni <[email protected]> wrote:
> DEBUG=-g3 is honored for the normal build but not tests:
>
> $ make DEBUG=-g3 test
> ...
> gmake[2]: Leaving directory '/tmp/pobj/ipv6calc-1.1.0/ipv6calc-1.1.0'
> cc -o ipv6calc ipv6calc.o showinfo.o ipv6calchelp_local.o -lcrypto
> -L../lib/ -L../databases/lib/ -lipv6calc_db_wrapper -lipv6calc -lm
> ...
>
> Which is needed since one test reproducibly dumps core on my X250:
>
> ...
> INFO : run 'ipv6calc' pipe tests (1)
> Segmentation fault (core dumped)
> INFO : test 'echo 3ffe::1:ff00:1234 | ./ipv6calc --in ipv6addr --out
> ipv6addr --printuncompressed | grep "^3ffe:0:0:0:0:1:ff00:1234$"'
> Error executing 'ipv6calc' (1)!
> gmake[1]: *** [Makefile:65: test] Error 1
> gmake[1]: Leaving directory
> '/tmp/pobj/ipv6calc-1.1.0/ipv6calc-1.1.0/ipv6calc'
> Result: 2
> gmake: *** [Makefile:166: test] Error 2
> *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2768
> '/tmp/pobj/ipv6calc-1.1.0/.test_done')
> *** Error 1 in /usr/ports/net/ipv6calc
> (/usr/ports/infrastructure/mk/bsd.port.mk:2412 'test')
>
> Homepage has TLS.
Thanks for feedback. I get the seg fault too. FTIW, the current port test
segfault too.
I really can't get "make test" to honour flags, if someone has a clue it would
be nice to share about it, I'm stuck right now.
adding TEST_FLAGS= CFLAGS="${CFLAGS}" to Makefile doesn't help, I've been
trying to fiddle in the Makefile with no success.
The test target is the following:
test:
for dir in ipv6calc ipv6logconv ipv6logstats ipv6loganon
ipv6calcweb $(MOD_IPV6CALC_DIR); do \
ocwd=`pwd`; \
cd $$dir || exit 1; \
${MAKE} $@ ; r=$$?; \
cd $$ocwd ; if [ $$r -ne 0 ]; then echo "Result: $$r";
exit $$r; fi; \
done || exit 1
echo "ALL TESTS SUCCESSFUL"