test.sh
changeset 683 fcc67f492a02
parent 639 cc27c830a911
child 689 c258e3ff6d32
equal deleted inserted replaced
682:60dbd952a15e 683:fcc67f492a02
     1 COVERAGE=opt/bin/coverage
     1 COVERAGE=opt/bin/coverage
     2 DOCTEST=(
     2 DOCTEST=(
     3     pvl/dhcp/config.py
     3     pvl/dhcp/config.py
     4     pvl/snmp/vlan.py
       
     5     pvl/dns/serial.py
     4     pvl/dns/serial.py
     6     pvl/dns/labels.py
     5     pvl/dns/labels.py
     7     pvl/dns/reverse.py
     6     pvl/dns/reverse.py
     8     pvl/dns/generate.py
     7     pvl/dns/generate.py
     9 )
     8 )
    10 
     9 
    11 UNITTEST=(
    10 UNITTEST=(
       
    11     pvl.dhcp.tests
    12     pvl.dns.tests
    12     pvl.dns.tests
    13     pvl.hosts.tests
    13     pvl.hosts.tests
    14 )
    14 )
    15 
    15 
    16 coverage() {
    16 coverage() {
    27 
    27 
    28 for py in ${DOCTEST[@]}; do
    28 for py in ${DOCTEST[@]}; do
    29     coverage run -a -m doctest $py
    29     coverage run -a -m doctest $py
    30 done
    30 done
    31 
    31 
    32 coverage html
    32 coverage html \
       
    33     --include=pvl/dhcp/*.py,pvl/dns/*.py,pvl/hosts/*.py