File: run_tests.sh

package info (click to toggle)
python-dnslib 0.9.7%2Bhg20170303-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 412 kB
  • ctags: 506
  • sloc: python: 2,776; sh: 16; makefile: 5
file content (21 lines) | stat: -rwxr-xr-x 412 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

export PYTHONPATH=$(pwd)

: ${VERSIONS:="python python3"}

for src in __init__.py bimap.py bit.py buffer.py label.py dns.py lex.py server.py digparser.py ranges.py test_decode.py
do
    echo "===" $src
    for py in $VERSIONS
    do
        echo "Testing:" $($py --version 2>&1)
        $py dnslib/$src
    done
done

for py in $VERSIONS
do
    echo "Fuzz:" $($py --version 2>&1)
    $py fuzz.py
done