Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Run C++ unit tests on CI (Makefile-only)
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm authored and xzyfer committed Nov 23, 2018
1 parent a8bc4d6 commit 5c2501e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions script/ci-build-libsass
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ else

make $MAKE_OPTS clean

# Run C++ unit tests
make -C test clean
make -C test test
fi

# install to prefix directory
Expand Down
4 changes: 3 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CXX ?= c++
CXXFLAGS := -I ../include/ -std=c++11 -fsanitize=address -g -O1 -fno-omit-frame-pointer

test: test_shared_ptr

test_shared_ptr: build/test_shared_ptr
@ASAN_OPTIONS="symbolize=1" build/test_shared_ptr

Expand All @@ -13,4 +15,4 @@ build/test_shared_ptr: | build
clean: | build
rm -rf build

.PHONY: test_shared_ptr clean
.PHONY: test test_shared_ptr clean

0 comments on commit 5c2501e

Please sign in to comment.