Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
features/FEATURE_COMMON_PAL/mbed-client-c/Makefile.test
- Committer:
- jacobjohnson
- Date:
- 2017-02-27
- Revision:
- 1:f30bdcd2b33b
- Parent:
- 0:098463de4c5d
File content as of revision 1:f30bdcd2b33b:
# # Makefile.test for combined NSDL+COAP library unit tests # # List of subdirectories to build TEST_FOLDER := ./test/ # List of unit test directories for libraries UNITTESTS := $(sort $(dir $(wildcard $(TEST_FOLDER)*/unittest/*))) TESTDIRS := $(UNITTESTS:%=build-%) CLEANTESTDIRS := $(UNITTESTS:%=clean-%) COVERAGEFILE := ./lcov/coverage.info .PHONY: test test: $(TESTDIRS) @rm -rf ./lcov @rm -rf ./coverage @mkdir -p lcov @mkdir -p lcov/results @mkdir coverage @find ./test -name '*.xml' | xargs cp -t ./lcov/results/ @rm -f lcov/index.xml @./xsl_script.sh @cp junit_xsl.xslt lcov/. @xsltproc -o lcov/testresults.html lcov/junit_xsl.xslt lcov/index.xml @rm -f lcov/junit_xsl.xslt @rm -f lcov/index.xml @find ./ -name '*.gcno' | xargs cp --backup=numbered -t ./coverage/ @find ./ -name '*.gcda' | xargs cp --backup=numbered -t ./coverage/ @gcovr --object-directory ./coverage --exclude-unreachable-branches -e '.*/builds/.*' -e '.*/test/.*' -e '.*/yotta_modules/.*' -e '.*/stubs/.*' -e '.*/mbed-client-c/.*' -x -o ./lcov/gcovr.xml @lcov -d test/. -c -o $(COVERAGEFILE) @lcov -q -r $(COVERAGEFILE) "/usr*" -o $(COVERAGEFILE) @lcov -q -r $(COVERAGEFILE) "/test*" -o $(COVERAGEFILE) @lcov -q -r $(COVERAGEFILE) "/mbed-client-libservice*" -o $(COVERAGEFILE) @genhtml -q $(COVERAGEFILE) --show-details --output-directory lcov/html @echo mbed-client-c module unit tests built $(TESTDIRS): @make -C $(@:build-%=%) $(CLEANDIRS): @make -C $(@:clean-%=%) clean $(CLEANTESTDIRS): @make -C $(@:clean-%=%) clean # Extend default clean rule clean: clean-extra clean-extra: $(CLEANDIRS) \ $(CLEANTESTDIRS)