File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,6 @@ jobs:
249249 cat > commands.sh << EOF
250250 mv -f /data/local/tmp/sqlite3 /system/xbin
251251 cd /data/local/tmp
252- sqlite3 ":memory:" -cmd ".bail on" ".load ./dist/cloudsync" "SELECT cloudsync_version();"
253252 $(make test CC=$CC PLATFORM=$PLATFORM -n)
254253 EOF
255254 echo "::endgroup::"
Original file line number Diff line number Diff line change 1616# Compiler and flags
1717CC = gcc
1818CFLAGS = -Wall -Wextra -Wno-unused-parameter -I$(SRC_DIR ) -I$(SQLITE_DIR ) -I$(CURL_DIR ) /include
19- TEST_FLAGS = $(CFLAGS ) -DSQLITE_CORE -DCLOUDSYNC_UNITTEST -DCLOUDSYNC_OMIT_NETWORK -DCLOUDSYNC_OMIT_PRINT_RESULT -fprofile-arcs -ftest-coverage
19+ TEST_FLAGS = $(CFLAGS ) -DSQLITE_CORE -DCLOUDSYNC_UNITTEST -DCLOUDSYNC_OMIT_NETWORK -DCLOUDSYNC_OMIT_PRINT_RESULT
2020EXTENSION_FLAGS = $(CFLAGS ) -O3 -fPIC
2121LDFLAGS = -L./$(CURL_DIR ) /$(PLATFORM ) -lcurl
2222COVERAGE = false
@@ -83,7 +83,10 @@ else # linux
8383 TARGET := $(DIST_DIR ) /cloudsync.so
8484 LDFLAGS += -shared -lssl -lcrypto
8585 CFLAGS += -lm
86- TEST_FLAGS += -lgcov
86+ endif
87+
88+ ifneq ($(COVERAGE ) ,false)
89+ TEST_FLAGS += -lgcov -fprofile-arcs -ftest-coverage
8790endif
8891
8992# Windows .def file generation
You can’t perform that action at this time.
0 commit comments