File: test.sh

package info (click to toggle)
pida 0.3.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,408 kB
  • ctags: 4,300
  • sloc: python: 19,400; sh: 124; makefile: 21; xml: 11
file content (10 lines) | stat: -rw-r--r-- 267 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#! /bin/sh

set -e
distdir=`mktemp -d`
python setup.py build 2>&1>/dev/null
python setup.py bdist --dist-dir=$distdir --formats=egg 2>&1>/dev/null
export PYTHONPATH=$distdir/`ls $distdir`
echo built and added $PYTHONPATH to '$PYTHONPATH'
nosetests tests/*test.py $*