~charm-toolers/charm-tools/1.3

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Marco Ceppi
  • Date: 2013-11-11 19:08:11 UTC
  • Revision ID: marco@ceppi.net-20131111190811-w9co29f91241ck7n
Re-organized testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        cp -rf scripts templates $(datadir)
25
25
        cp -rf helpers/* $(helperdir)
26
26
 
27
 
check:
28
 
        tests/helpers/helpers.sh || sh -x tests/helpers/helpers.sh timeout
 
27
integration:
 
28
        tests_functional/helpers/helpers.sh || sh -x tests_functional/helpers/helpers.sh timeout
29
29
        @echo Test shell helpers with dash
30
 
        bash tests/helpers/helpers.sh || bash -x tests/helpers/helpers.sh timeout
31
 
        tests/helpers/helpers.bash || sh -x tests/helpers/helpers.bash timeout
 
30
        bash tests_functional/helpers/helpers.sh || bash -x tests_functional/helpers/helpers.sh timeout
 
31
        tests_functional/helpers/helpers.bash || sh -x tests_functional/helpers/helpers.bash timeout
32
32
        @echo Test shell helpers with bash
33
 
        bash tests/helpers/helpers.bash || bash -x tests/helpers/helpers.bash timeout
 
33
        bash tests_functional/helpers/helpers.bash || bash -x tests_functional/helpers/helpers.bash timeout
34
34
        @echo Test charm proof
35
 
        tests/proof/test.sh
36
 
        tests/create/test.sh
37
 
        PYTHONPATH=helpers/python python helpers/python/charmhelpers/tests/test_charmhelpers.py
38
 
#       @echo PEP8 Lint of Python files
39
 
#       @echo `grep -rl '^#!/.*python' .` | xargs -r -n1 pep8
 
35
        tests_functional/proof/test.sh
 
36
        tests_functional/create/test.sh
 
37
#       PYTHONPATH=helpers/python python helpers/python/charmhelpers/tests/test_charmhelpers.py
 
38
 
 
39
lint:
 
40
        @echo PEP8 Lint of Python files
 
41
        @pep8 charmtools && echo OK
 
42
 
 
43
test:
 
44
        @nosetests -s tests/test_*.py
 
45
 
 
46
coverage:
 
47
        @nosetests --with-coverage --cover-package=charmtools --cover-tests -s tests/test_*.py
 
48
 
 
49
check: integration test lint
40
50
 
41
51
clean:
42
52
        find . -name '*.pyc' -delete