Commit 9b65ddb9 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix build_dir test.

parent 5154198f
PYTHON setup.py build_ext --inplace PYTHON setup.py build_ext --inplace
PYTHON -c "import a" PYTHON -c "import a"
ls -R PYTHON check_paths.py
if [ -f "a.c" ]; then
echo "C output in local directory."
exit 1
fi
if [ ! -f "scratch/a.c" ]; then
echo "Missing C output in scratch."
exit 1
fi
######## setup.py ######## ######## setup.py ########
...@@ -33,4 +23,11 @@ assert value == 100 ...@@ -33,4 +23,11 @@ assert value == 100
######## a_helper.h ######## ######## a_helper.h ########
int value = 100; int value = 100;
\ No newline at end of file
######## check_paths.py ########
import os
assert os.path.exists("scratch/a.c")
assert os.path.exists("scratch/a_helper.h")
assert not os.path.exists("a.c")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment