File: test.sh

package info (click to toggle)
python-leveldb 0~svn68-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 172 kB
  • ctags: 167
  • sloc: cpp: 1,252; python: 333; sh: 113; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (2)
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
#!/bin/bash

set -e

(
	cd download;

	# virtualenv
	for i in `find -maxdepth 1 -type d | grep ^./P | grep -v build | grep -v env | sort`; do
	(
		echo $i;
		unset PYTHONDONTWRITEBYTECODE;
		source $i-env/bin/activate;
		(
			cd ../..;
			pwd;
			which python;
			python setup.py build --force > /dev/null;
			python setup.py install > /dev/null;
			(
				cd test;
				pwd;
				python test.py;
			)
		)
	) done
)