~maas-committers/maas/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: LaMont Jones
  • Date: 2016-08-18 10:08:33 UTC
  • mto: This revision was merged to the branch mainline in revision 5267.
  • Revision ID: lamont@canonical.com-20160818100833-h8zwub1ns0c1nl2d
Add clean-failed and test-failed targets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
$(test) --with-xunit --xunit-file=xunit.$(notdir $(test)).xml || touch .failed
222
222
endef
223
223
 
 
224
clean-failed:
 
225
        rm -f .noseids
 
226
 
 
227
test-failed: $(strip $(test-scripts))
 
228
        @bin/maas-region makemigrations --dry-run --exit && exit 1 ||:
 
229
        @$(RM) coverage.data
 
230
        # Run the tests once, and one more time if they failed.
 
231
        @for test in $^; do env $$test --failed || env $$test --failed; done
 
232
 
224
233
test+coverage: export NOSE_WITH_COVERAGE = 1
225
234
test+coverage: test
226
235
 
392
401
  check
393
402
  clean
394
403
  clean+db
 
404
  clean-failed
395
405
  clean-run
396
406
  clean-styles
397
407
  configure-buildout
419
429
  styles
420
430
  syncdb
421
431
  test
 
432
  test-failed
422
433
  test-migrations
423
434
  test+coverage
424
435
  test+lxd