From 5c2501eaa115aafafb254fa4f3522efa0ee14edb Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Thu, 22 Nov 2018 11:02:58 +0000 Subject: [PATCH] Run C++ unit tests on CI (Makefile-only) --- script/ci-build-libsass | 3 +++ test/Makefile | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/script/ci-build-libsass b/script/ci-build-libsass index 40ea22ff7..5dc54187d 100755 --- a/script/ci-build-libsass +++ b/script/ci-build-libsass @@ -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 diff --git a/test/Makefile b/test/Makefile index f76cefce7..8fecbb746 100644 --- a/test/Makefile +++ b/test/Makefile @@ -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 @@ -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