mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Custom Built-in Unit Test Suite (#105)
* tests: new built-in test runner * tests: update tests for new builtin test api * tests: print test suite logs * tests: remove cmocka from build files * tests: colorize test suite log and remove redundant prints
This commit is contained in:
14
Makefile.am
14
Makefile.am
@@ -7,7 +7,6 @@
|
||||
#******************************************************************************
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
AM_CFLAGS = -Wall \
|
||||
-std=gnu99 \
|
||||
-O3 \
|
||||
@@ -19,12 +18,9 @@ lib_LTLIBRARIES = libcglm.la
|
||||
libcglm_la_LDFLAGS = -no-undefined -version-info 0:1:0
|
||||
|
||||
checkLDFLAGS = -L./.libs \
|
||||
-L./test/lib/cmocka/build/src \
|
||||
-lcmocka \
|
||||
-lm \
|
||||
-lcglm
|
||||
checkCFLAGS = -I./test/lib/cmocka/include \
|
||||
-I./include
|
||||
checkCFLAGS = -I./include
|
||||
|
||||
check_PROGRAMS = test/tests
|
||||
TESTS = $(check_PROGRAMS)
|
||||
@@ -140,8 +136,8 @@ libcglm_la_SOURCES=\
|
||||
src/bezier.c
|
||||
|
||||
test_tests_SOURCES=\
|
||||
test/runner.c \
|
||||
test/src/test_common.c \
|
||||
test/src/test_main.c \
|
||||
test/src/test_mat4.c \
|
||||
test/src/test_cam.c \
|
||||
test/src/test_project.c \
|
||||
@@ -160,7 +156,7 @@ pkgconfig_DATA=cglm.pc
|
||||
# the source directory that post-build.sh is in. When not
|
||||
# using a prefix, $VPATH will be unset, so we need to fall
|
||||
# back to using . to run the script.
|
||||
export VPATH
|
||||
#export VPATH
|
||||
|
||||
all-local:
|
||||
sh $${VPATH:-.}/post-build.sh
|
||||
# all-local:
|
||||
# sh $${VPATH:-.}/post-build.sh
|
||||
|
||||
Reference in New Issue
Block a user