MetaData Sharing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
716 B

  1. VIRTUALENV?=python3 -m venv
  2. MODULES=medashare
  3. test: fixtures/sample.data.sqlite3 fixtures/sample.persona.pasn1 fixtures/sample.mtree
  4. (. ./p/bin/activate && \
  5. ((find fixtures -type f; find $(MODULES) -type f) | entr sh -c 'python3 -m coverage run -m unittest --failfast $(MODULES).tests && coverage report -m --omit=p/\*'))
  6. env:
  7. $(VIRTUALENV) p
  8. (. ./p/bin/activate && \
  9. pip install -r requirements.txt)
  10. fixtures/sample.data.sqlite3 fixtures/sample.persona.pasn1: fixtures/genfixtures.py
  11. (. ./p/bin/activate && cd fixtures && PYTHONPATH=.. python3 genfixtures.py )
  12. fixtures/sample.mtree: fixtures/mtree.dir
  13. bsdtar -cf - --format mtree --options='!all,time,sha512,size,indent' -C fixtures/mtree.dir . > $@