-
Notifications
You must be signed in to change notification settings - Fork 10
/
test.sh
executable file
·39 lines (36 loc) · 1.11 KB
/
test.sh
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
36
37
38
39
#! /bin/sh
# set -x
_modules='
conveyor
conveyor.client
conveyor.debug
conveyor.enum
conveyor.event
conveyor.ipc
conveyor.jsonrpc
conveyor.log
conveyor.main
conveyor.process
conveyor.recipe
conveyor.server
conveyor.stoppable
conveyor.task
conveyor.test
conveyor.thing
conveyor.toolpath
conveyor.toolpath.skeinforge
conveyor.visitor
'
if [ ! -d obj/ ]
then
mkdir obj/
fi
PYTHONPATH=src/main/python/:submodule/s3g/:src/test/python
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=${PYTHONPATH} coverage erase
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=${PYTHONPATH} coverage run --branch test.py -- -v ${_modules} pi_test_Address pi_test_thing pi_test_stoppable
_code=$?
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=${PYTHONPATH} coverage annotate -d obj/ --include 'src/main/python/*'
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=${PYTHONPATH} coverage html -d obj/ --include 'src/main/python/*'
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=${PYTHONPATH} coverage xml -o obj/coverage.xml --include 'src/main/python/*'
env PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=${PYTHONPATH} coverage report -m --include 'src/main/python/*'
exit ${_code}