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