faiss/tests/run_tests.sh
2018-02-23 16:08:40 +01:00

16 lines
218 B
Bash
Executable File

#!/bin/sh
PYTHON=${PYTHON:-"python"}
make
for t in test_*.py; do
PYTHONPATH=.. $PYTHON $t || exit 1
done
for t in test_*.cpp; do
if [ "$t" != "test_blas.cpp" ]; then
./${t%.*} || exit 1
fi
done