Skip to content

Commit 5801c70

Browse files
committed
tests/full: add full tas and app end-to-end test
1 parent 7f64758 commit 5801c70

File tree

6 files changed

+619
-2
lines changed

6 files changed

+619
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ tests/usocket_move
1616
tests/libtas/tas_ll
1717
tests/libtas/tas_sockets
1818
tests/tas_unit/fastpath
19+
tests/full/tas_linux
1920
tracetool
2021
statetool
2122
scaletool

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ install:
1414
- /bin/bash .travis-install.sh
1515
script:
1616
- make all RTE_SDK=${HOME}/dpdk/${DPDK_VER}
17-
- make run-tests RTE_SDK=${HOME}/dpdk/${DPDK_VER}
17+
- make run-tests run-tests-full RTE_SDK=${HOME}/dpdk/${DPDK_VER}

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ TESTS_AUTO= \
4747
tests/libtas/tas_sockets \
4848
tests/tas_unit/fastpath \
4949

50+
TESTS_AUTO_FULL= \
51+
tests/full/tas_linux \
52+
5053
TESTS= \
5154
tests/lowlevel \
5255
tests/lowlevel_echo \
@@ -59,7 +62,8 @@ TESTS= \
5962
tests/usocket_epoll_eof \
6063
tests/usocket_shutdown \
6164
tests/bench_ll_echo \
62-
$(TESTS_AUTO)
65+
$(TESTS_AUTO) \
66+
$(TESTS_AUTO_FULL)
6367

6468

6569
all: lib/libtas_sockets.so lib/libtas_interpose.so \
@@ -69,11 +73,16 @@ all: lib/libtas_sockets.so lib/libtas_interpose.so \
6973

7074
tests: $(TESTS)
7175

76+
# run all simple testcases
7277
run-tests: $(TESTS_AUTO)
7378
tests/libtas/tas_ll
7479
tests/libtas/tas_sockets
7580
tests/tas_unit/fastpath
7681

82+
# run full tests that run full TAS
83+
run-tests-full: $(TESTS_AUTO_FULL) tas/tas
84+
tests/full/tas_linux
85+
7786
docs:
7887
cd doc && doxygen
7988

@@ -107,6 +116,9 @@ tests/tas_unit/fastpath: LDLIBS+=-lrte_eal
107116
tests/tas_unit/fastpath: tests/tas_unit/fastpath.o tests/testutils.o \
108117
tas/fast/fast_flows.o
109118

119+
tests/full/%.o: CFLAGS+=-Itas/include
120+
tests/full/tas_linux: tests/full/tas_linux.o tests/full/fulltest.o lib/libtas.so
121+
110122
tools/tracetool: tools/tracetool.o
111123
tools/statetool: tools/statetool.o lib/libtas.so
112124
tools/scaletool: tools/scaletool.o lib/libtas.so

0 commit comments

Comments
 (0)