README revision a152c68e
1OVERVIEW
2========
3
4This application is a set of API unit tests for libtle_dring and libtle_udp
5libraries, plus a small set of functional tests for RX/TX functions in
6libtle_udp library.
7UT application needs GoogleTest C++ testing framework to compile, please
8follow installation steps below to enable them.
9
10INSTALLATION GUIDE
11==================
12Assumes that user had finished initial installation from TLDK root
13directory README.
14
151. TLDK unit tests require pcap PMD to be available, enable it in DPDK and
16	rebuild it.
17	(http://dpdk.org/doc/quick-start has information how to do it)
182. Obtain GoogleTest and build it. Some additional dependencies might be
19	needed.
20	(refer to https://github.com/google/googletest for information how to
21	 download and build it)
223. Make sure that GTEST_DIR and GMOCK_DIR environment variables are set.
234. Rebuild TLDK.
24
25Example:
26cd dpdk
27make config T=x86_64-native-linuxapp-gcc
28sed -ri 's,(PMD_PCAP=).*,\1y,' build/.config
29make install
30
31git clone https://github.com/google/googletest.git
32cd ../googletest
33export GTEST_DIR=`pwd`/googletest
34export GMOCK_DIR=`pwd`/googlemock
35cmake CMakeLists.txt
36make
37
38cd ../tldk
39make clean
40make all
41./x86_64-native-linuxapp-gcc/app/gtest-rfc --lcores=0
42