summaryrefslogtreecommitdiff
path: root/runtests.sh
blob: 419f45ce5e56072294fb2477931a793e34433f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env sh

set -e

PYTHON=${1:-python}

for x in examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/*.py \
         examples/hlapi/v3arch/asyncore/sync/agent/ntforg/*.py \
         examples/hlapi/v3arch/asyncore/manager/cmdgen/*.py \
         examples/hlapi/v3arch/asyncore/agent/ntforg/*.py \
         examples/hlapi/v3arch/asyncio/manager/cmdgen/*.py \
         examples/hlapi/v3arch/asyncio/agent/ntforg/*.py \
         examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/*.py \
         examples/hlapi/v1arch/asyncore/sync/agent/ntforg/*.py \
         examples/hlapi/v1arch/asyncore/manager/cmdgen/*.py \
         examples/hlapi/v1arch/asyncore/agent/ntforg/*.py \
         examples/hlapi/v1arch/asyncio/manager/cmdgen/*.py \
         examples/hlapi/v1arch/asyncio/agent/ntforg/*.py \
         examples/v3arch/asyncore/manager/cmdgen/*.py \
         examples/v3arch/asyncore/agent/ntforg/*.py \
         examples/v1arch/asyncore/manager/cmdgen/*.py \
         examples/v1arch/asyncore/agent/ntforg/*.py \
         examples/smi/manager/*py \
         examples/smi/agent/*.py
do
    case "${PYTHON}-${x}" in
    *spoof*|*ipv6*|python2*asyncio*|python3.[0-2]*asyncio*|*broadcast*)
        echo "skipping ${x}"
        continue
        ;;
    *)
        $PYTHON "${x}" | tail -50
        ;;
    esac
done