blob: 7aee608859fc033c12c25a3e4e2bf0c75dfe3c6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
CFLAGS=-O2 -g -Wall -I../libwebvi
LDFLAGS+=-L../libwebvi -Wl,-rpath=../libwebvi -lwebvi
.PHONY: all clean check test
all: testlibwebvi testdownload
testlibwebvi: testlibwebvi.o ../libwebvi/libwebvi.so
testdownload: testdownload.o ../libwebvi/libwebvi.so
../libwebvi/libwebvi.so:
make -C ../libwebvi libwebvi.so
clean:
rm -f testlibwebvi testlibwebvi.o testdownload testdownload.o
# testdownload and testwebvi.py require network access
check: testlibwebvi testdownload
FAILED_TESTS=; \
PYTHONPATH=../libwebvi ./testlibwebvi; \
if [ $$? -ne 0 ]; then echo "$$?"; FAILED_TESTS="$$FAILED_TESTS testlibwebvi"; fi; \
PYTHONPATH=../libwebvi ./testdownload; \
if [ $$? -ne 0 ]; then FAILED_TESTS="$$FAILED_TESTS testdownload"; fi; \
PYTHONPATH=../libwebvi python ./testwebvi.py; \
if [ $$? -ne 0 ]; then FAILED_TESTS="$$FAILED_TESTS testwebvi.py"; fi; \
echo "================================================"; \
if [ -n $$FAILED_TEST ]; then \
echo "The following tests failed:$$FAILED_TESTS"; \
else \
echo "Tests completed successfully!"; \
fi
test: check
|