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

Fix build_dir test.

parent 5154198f
PYTHON setup.py build_ext --inplace
PYTHON -c "import a"
ls -R
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
PYTHON check_paths.py
######## setup.py ########
......@@ -33,4 +23,11 @@ assert value == 100
######## a_helper.h ########
int value = 100;
\ No newline at end of file
int value = 100;
######## 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