Skip to content

Commit 5c2501e

Browse files
glebmxzyfer
authored andcommitted
Run C++ unit tests on CI (Makefile-only)
1 parent a8bc4d6 commit 5c2501e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

script/ci-build-libsass

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ else
9292

9393
make $MAKE_OPTS clean
9494

95+
# Run C++ unit tests
96+
make -C test clean
97+
make -C test test
9598
fi
9699

97100
# install to prefix directory

test/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
CXX ?= c++
22
CXXFLAGS := -I ../include/ -std=c++11 -fsanitize=address -g -O1 -fno-omit-frame-pointer
33

4+
test: test_shared_ptr
5+
46
test_shared_ptr: build/test_shared_ptr
57
@ASAN_OPTIONS="symbolize=1" build/test_shared_ptr
68

@@ -13,4 +15,4 @@ build/test_shared_ptr: | build
1315
clean: | build
1416
rm -rf build
1517

16-
.PHONY: test_shared_ptr clean
18+
.PHONY: test test_shared_ptr clean

0 commit comments

Comments
 (0)