1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
# Makefile for unit tests
test: test.all
# ----- All unit tests go below ------------------
unit.NameType:
@-cd NameType && ./UnitTest.sh $(OPT)
unit.ArgList:
@-cd ArgList && ./UnitTest.sh $(OPT)
# ----- Every unit test should go here -----------
COMPLETETESTS= \
unit.NameType \
unit.ArgList
test.cpptraj: $(COMPLETETESTS)
# ------------------------------------------------
test.complete: CpptrajTest.sh UnitMaster.sh
@./CpptrajTest.sh --target test.cpptraj $(OPT)
test.all:
$(MAKE) test.complete summary
test.showerrors:
$(MAKE) test.complete summary OPT="$(OPT) showerrors"
summary: CpptrajTest.sh UnitMaster.sh
@./CpptrajTest.sh summary $(OPT)
clean:
@echo "Cleaning unit tests."
$(MAKE) test.complete OPT=clean
|