File: tests

package info (click to toggle)
libvcflib 1.0.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 49,628 kB
  • sloc: cpp: 39,244; perl: 474; python: 329; ruby: 285; sh: 247; ansic: 198; makefile: 131; javascript: 94; lisp: 57
file content (32 lines) | stat: -rw-r--r-- 1,155 bytes parent folder | download | duplicates (3)
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
Author: Michael R. Crusoe <crusoe@debian.org>
Description: Use packaged gtest and update paths
Forwarded: not-needed
--- libvcflib.orig/test/Makefile
+++ libvcflib/test/Makefile
@@ -7,22 +7,17 @@
 CXX=g++
 CFLAGS=-Wall -std=c++0x
 INCLUDE=-I../src -I../googletest/googletest/include/ -I../fastahack -I../smithwaterman/ -I../multichoose/ -I../filevercmp/ -I../googletest/googletest/make/
-LIB=-L../build -L../googletest/googletest/make/ -lm -ltabixpp -lhts -lpthread
-LIBGTEST=../googletest/googletest/make/gtest_main.a
-LIBVCF=../build/libvcflib.a
+LIB=-L../obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)/ -L../googletest/googletest/make/ -lm -ltabixpp -lhts -lpthread
+LIBGTEST=-lgtest_main -lgtest
+LIBVCF=-lvcflib
 
 all: run
 
-../googletest/googletest/make/gtest_main.a:
-	cd ../googletest/googletest/make && make
-
-tests/main: ../googletest/googletest/make/gtest_main.a
+tests/main:
 	$(CXX) $(CFLAGS) $(INCLUDE) tests/mainTest.cpp -o tests/main $(LIBVCF) $(LIBGTEST) $(LIB)
 
 run: tests/main
 	./tests/main
-	rm -v ../googletest/googletest/make/gtest_main.a
-	rm -v ../googletest/googletest/make/sample1_unittest
 
 clean:
 	rm -f tests/main