Unverified Commit 6e40d668 authored by Lucas Hosseini's avatar Lucas Hosseini Committed by GitHub

Move python tests back together with C++ tests. (#479)

parent fd63f06e
......@@ -73,4 +73,3 @@ install:
script:
- make test
- make -C python test
......@@ -62,8 +62,9 @@ depend:
#############################
# Tests
test: libfaiss.a
test: libfaiss.a py
make -C tests run
PYTHONPATH=./python $(PYTHON) -m unittest discover tests/ -v
#############################
......@@ -79,13 +80,12 @@ demos: libfaiss.a
misc/test_blas: misc/test_blas.cpp
$(CXX) $(CXXFLAG) $(LDFLAGS) $(LIBS) -o $@ $^
#############################
# Python
py: python/_swigfaiss.so
python/_swigfaiss.so: libfaiss.a
$(MAKE) -C python _swigfaiss.so
py:
$(MAKE) -C python
.PHONY: all clean default demos install installdirs py test uninstall
......@@ -48,7 +48,4 @@ clean:
rm -f swigfaiss.py swigfaiss_gpu.py
rm -f _swigfaiss.so _swigfaiss_gpu.so
test: _swigfaiss.so
PYTHONPATH=./ $(PYTHON) -m unittest discover tests/ -v
.PHONY: all clean cpu gpu test
.PHONY: all clean cpu gpu
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