Skip to content

Commit

Permalink
Modified Makefile to print errors during make coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory Barnes committed Sep 5, 2024
1 parent 8450e74 commit 503135b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ debug_no_AE:
-gcc -g -o bin/vplanet src/*.c -lm -DGITVERSION=\"$(GITVERSION)\"

opt:
-gcc -o bin/vplanet src/*.c -lm -O3 -std=gnu17 -DGITVERSION=\"$(GITVERSION)\"
-gcc -o bin/vplanet src/*.c -lm -O3 -DGITVERSION=\"$(GITVERSION)\"
@echo ""
@echo "=========================================================================================================="
@echo 'To add vplanet to your $$PATH, please run the appropriate command for your shell type:'
Expand Down Expand Up @@ -68,9 +68,12 @@ test:
-pytest --tb=short

coverage:
-mkdir -p gcov && cd gcov && gcc -coverage -o ../bin/vplanet ../src/*.c -lm
-python -m pytest --tb=short tests --junitxml=junit/test-results.xml
-lcov --capture --directory gcov --output-file .coverage && genhtml .coverage --output-directory gcov/html
rm -f gcov/*.gcda gcov/*.gcno .coverage
mkdir -p gcov
cd gcov && gcc -coverage -o ../bin/vplanet ../src/*.c -lm
python -m pytest --tb=short tests --junitxml=junit/test-results.xml
lcov --capture --directory gcov --output-file .coverage
genhtml .coverage --output-directory gcov/html

docs:
-make -C docs html && echo 'Documentation available at `docs/.build/html/index.html`.'
Expand Down

0 comments on commit 503135b

Please sign in to comment.