Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb03e06

Browse files
author
Nikolay Shaplov
committed
Add libtap++ harness for TAP tests. Will use it later
1 parente03b0a1 commitfb03e06

File tree

10 files changed

+1119
-1
lines changed

10 files changed

+1119
-1
lines changed

‎Makefile‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,18 @@ test_libblobstamper: $(LIB_OBJS) test_libblobstamper.o blob-stamper-all
4242

4343
blob-stamper-clean:
4444
$(MAKE) -C blobstamper clean
45+
$(MAKE) -C t clean
46+
$(MAKE) -C libtappp clean
4547

46-
.PHONY: clean
48+
49+
50+
.PHONY: clean
4751
clean: blob-stamper-clean
4852
rm -f*.otest test_pg_op_wrappers test_libblobstamper
4953
@echo Clean done!
54+
55+
.PHONY: test
56+
57+
test:
58+
$(MAKE) -C ttest
59+

‎libtappp/.travis.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language:cpp
2+
script:
3+
-make
4+
-make test
5+
compiler:
6+
-gcc
7+
-clang

‎libtappp/Makefile‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
CXX ?= g++
2+
ACK := ack
3+
LIB := libtap++.so
4+
WARNINGS := -Wall -Wextra -Weffc++
5+
DEBUG := -ggdb3 -DDEBUG
6+
CXXFLAGS :=$(DEBUG)$(WARNINGS) -fPIC
7+
PREFIX := /usr/local
8+
LIBRARY_VAR := LD_LIBRARY_PATH
9+
TEST_GOALS := t/00-sanity.t
10+
11+
all:$(LIB)
12+
13+
$(LIB): src/tap++.cpp include/tap++/tap++.h
14+
$(CXX) -shared -o$@ -Wl,-soname,$(LIB)$(CXXFLAGS) -Iinclude/ src/*.cpp
15+
16+
t/%.t: t/%.cpp$(LIB)
17+
$(CXX)$(CXXFLAGS) -Iinclude -o$@$< -L. -ltap++
18+
19+
testbuild:$(TEST_GOALS)
20+
21+
test:$(TEST_GOALS)
22+
@echo run_tests.pl$(TEST_GOALS)
23+
@$(LIBRARY_VAR)=. ./run_tests.pl$(TEST_GOALS)
24+
25+
clean:
26+
-rm -r$(LIB)$(wildcard t/*.t)2>/dev/null
27+
28+
testclean:
29+
-rm t/*.t2>/dev/null
30+
31+
again: clean all
32+
33+
install:$(LIB)
34+
cp --preserve=timestamps libtap++.so$(PREFIX)/lib/
35+
cp -dR --preserve=timestamps,links include/tap++/$(PREFIX)/include/
36+
chmod a+x$(PREFIX)/include/tap++
37+
chmod -R a+r$(PREFIX)/include/tap++
38+
chmod a+rx$(PREFIX)/lib/libtap++.so
39+
40+
uninstall:
41+
-rm$(PREFIX)/lib/libtap++.so
42+
-rm -r$(PREFIX)/include/tap++
43+
44+
.PHONY: todo install test testbuild clean testclean all uninstall
45+
46+
todo:
47+
@for iin FIX''ME XX''X TO''DO;doecho -n"$$i:";$(ACK)$$i| wc -l;done;
48+
49+
apicount: libtap++.so
50+
@echo -n"Number of entries:"
51+
@nm libtap++.so -C --defined-only| egrep -i" [TW] TAP::"| wc -l

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp