fix(tests): tests are runned with && splitter

This commit is contained in:
2024-10-26 20:24:26 +03:00
parent 470c018828
commit 82a9243e2b
2 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,9 @@ USRDIR ?= /usr
tools library tests docs cov clean
LIB = basen
TOOLS = ${LIB}
OBJS =\
hex\
baseN\
@ -16,8 +19,6 @@ OBJS =\
hash/sha256\
Exception
TOOLS = ${LIB}
TESTS =\
test-hex\
test-baseN\
@ -131,7 +132,7 @@ endif
ifneq (${TESTS},)
tests: library ${DIRS} ${patsubst %, ${BINDIR}/%${-g}, ${TESTS}}
${patsubst %, ./${BINDIR}/%${-g};, ${TESTS}}
echo ${patsubst %, && ./${BINDIR}/%${-g}, ${TESTS}}
${BINDIR}/%${-g}: ${TESTDIR}/%.cpp ${patsubst %, ${OBJDIR}/%${-g}.o, ${OBJS}}
${CC} -o $@ $< -I${INCDIR} -L${LIBDIR} ${-l} ${-lLIB} -lgtest ${CFLAGS}