forked from google/python-subprocess32
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest
More file actions
executable file
·23 lines (19 loc) · 753 Bytes
/
test
File metadata and controls
executable file
·23 lines (19 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash -ex
# This is for my own convenience, edit it for your own environment.
PYTHON=python3
"$PYTHON" -V
"$PYTHON" setup.py build
# Merely test that it imports. Under Python 3, setup.py should've installed a
# redirection hack making subprocess32 == subprocess. We cd in order to avoid
# attempting to import the local subprocess32.py file.
(cd build && PYTHONPATH=lib "$PYTHON" -c \
"import subprocess as s, subprocess32 as s32; assert s is s32, (s, s32)")
PYTHON="../Python-2.4.6/python"
"$PYTHON" -V
"$PYTHON" setup.py build
LANG=C PYTHONPATH=build/lib.linux-x86_64-2.4 "$PYTHON" test_subprocess32.py
PYTHON=python2
"$PYTHON" -V
"$PYTHON" setup.py build
export PYTHONPATH=build/lib.linux-x86_64-2.7
exec "$PYTHON" test_subprocess32.py