Test Smart Brain implementation
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Makefile 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. OUTDIR=testresults
  2. TEXFILE=$(OUTDIR)/testrun.tex
  3. PDFFILE=$(OUTDIR)/testrun.pdf
  4. TEXFILE_FULL=$(OUTDIR)/testrun_full.tex
  5. PDFFILE_FULL=$(OUTDIR)/testrun_full.pdf
  6. smoke: test_smoke pdf view pdf_full clean
  7. @echo FINISHED...
  8. short: test_short pdf view pdf_full clean
  9. @echo FINISHED...
  10. full: test_full pdf view pdf_full clean
  11. @echo FINISHED...
  12. test_smoke:
  13. venv/bin/python smart_brain_test.py test.all.smoke
  14. test_short:
  15. venv/bin/python smart_brain_test.py test.all.short
  16. test_full:
  17. venv/bin/python smart_brain_test.py test.all.full
  18. pdf:
  19. @latexmk -pdf -quiet -pdflatex="pdflatex -interaction=nonstopmode" -output-directory=$(OUTDIR) -use-make $(TEXFILE) > /dev/null
  20. pdf_full:
  21. @latexmk -pdf -quiet -pdflatex="pdflatex -interaction=nonstopmode" -output-directory=$(OUTDIR) -use-make $(TEXFILE_FULL) > /dev/null
  22. view:
  23. @open $(PDFFILE)
  24. view_full:
  25. @open $(PDFFILE_FULL)
  26. clean:
  27. @latexmk -quiet -output-directory=$(OUTDIR) -c $(TEXFILE) > /dev/null
  28. @latexmk -quiet -output-directory=$(OUTDIR) -c $(TEXFILE_FULL) > /dev/null
  29. @find . -name *~ -type f | xargs rm -f
  30. @find . -name __pycache__ -type d | xargs rm -rf
  31. %:
  32. venv/bin/python smart_brain_test.py $@
  33. $(MAKE) pdf_full view_full pdf clean