forked from simone/django-compositekey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (18 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SETTINGS=test_sqlite
VERBOSITY=1
.PHONY: help test-composite
help:
@echo "Please use 'make <target>' where <target> is one of"
@echo " test-composite to run the composite test suite"
@echo " test-all-django to run the complete django test suite + the composite test suite (non regression tests)"
@echo
@echo "Use SETTINGS to test with a different database (default is SQLite)."
@echo "Settings for different databases are in the djangotests directory."
@echo
@echo "Set VERBOSITY to control the verbosity of cruntests.py (default is 1)"
test-composite:
ls -1 djangotests | grep -v "\.py" | grep -v "__" | xargs djangotests/cruntests.py --settings="$(SETTINGS)" -v$(VERBOSITY)
test-all-django:
djangotests/cruntests.py --settings="$(SETTINGS)" -v$(VERBOSITY)
test-fails:
djangotests/cruntests.py --settings="$(SETTINGS)" -v$(VERBOSITY) indexes.IndexesTests forms.FieldsTests admin_scripts.StartProject composite_generic_relations.GenericRelationsTests known_related_objects.ExistingRelatedInstancesTests composite_defer.DeferTests