Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
faiss
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
faiss
Commits
db855a21
Unverified
Commit
db855a21
authored
Feb 23, 2018
by
Lucas Hosseini
Committed by
GitHub
Feb 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Makefile for tests. (#345)
parent
16aed09c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
3 deletions
+46
-3
Makefile
Makefile
+0
-3
Makefile
tests/Makefile
+31
-0
run_tests.sh
tests/run_tests.sh
+15
-0
No files found.
Makefile
View file @
db855a21
...
...
@@ -59,9 +59,6 @@ tests/test_blas: tests/test_blas.cpp
$(CC)
$(CFLAGS)
$<
-o
$@
$(LDFLAGS)
$(BLASLDFLAGS)
$(BLASCFLAGS)
tests/demo_ivfpq_indexing
:
tests/demo_ivfpq_indexing.cpp $(LIBNAME).a
$(CC)
-o
$@
$(CFLAGS)
$<
$(LIBNAME)
.a
$(LDFLAGS)
$(BLASLDFLAGS)
tests/demo_sift1M
:
tests/demo_sift1M.cpp $(LIBNAME).a
$(CC)
-o
$@
$(CFLAGS)
$<
$(LIBNAME)
.a
$(LDFLAGS)
$(BLASLDFLAGS)
...
...
tests/Makefile
0 → 100644
View file @
db855a21
MAKEFILE_INC
=
../makefile.inc
-include
$(MAKEFILE_INC)
CC_TESTS
=
test_ivfpq_indexing test_ivfpq_codec
all
:
$(CC_TESTS) ../py
run
:
all
./run_tests.sh
%
:
%.cpp ../libfaiss.a gtest/make/gtest_main.a
$(CC)
$(CFLAGS)
-o
$@
$^
$(LDFLAGS)
$(BLASLDFLAGS)
\
-Igtest
/include
-I
../..
../libfaiss.a
:
cd
../
&&
make libfaiss.a
../py
:
cd
../
&&
make py
gtest/make/gtest_main.a
:
gtest
cd
gtest/make
&&
make
CXX
=
$(CC)
gtest_main.a
gtest
:
curl
-L
https://github.com/google/googletest/archive/release-1.8.0.tar.gz |
tar
xz
&&
\
mv
googletest-release-1.8.0/googletest gtest
&&
\
rm
-rf
googletest-release-1.8.0
clean
:
rm
-rf
$(CC_TESTS)
gtest
tests/run_tests.sh
0 → 100755
View file @
db855a21
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment