aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest/README
diff options
context:
space:
mode:
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>2016-08-06 20:38:27 +0100
committerMohammad Abdul Awal <mohammad.abdul.awal@intel.com>2016-10-07 08:49:12 +0100
commita152c68e17b6ad1ae48a126e0b80c05cb44188b8 (patch)
tree246a05f3fb83d471fcd7ae06def9d457e5f13ff7 /test/gtest/README
parent5d0ab6ce9c41573a2c7c401a0efa8ea764c9d55a (diff)
tldk_test: Add TLDK unit tests
Unit tests for TLDK libtle_udp & libtle_dring libraries Change-Id: I6818c72ca0260f1af784e758bfe21118c395afcf Signed-off-by: Karol Latecki <karolx.latecki@intel.com> Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Diffstat (limited to 'test/gtest/README')
-rw-r--r--test/gtest/README41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/gtest/README b/test/gtest/README
new file mode 100644
index 0000000..8d39b6b
--- /dev/null
+++ b/test/gtest/README
@@ -0,0 +1,41 @@
+OVERVIEW
+========
+
+This application is a set of API unit tests for libtle_dring and libtle_udp
+libraries, plus a small set of functional tests for RX/TX functions in
+libtle_udp library.
+UT application needs GoogleTest C++ testing framework to compile, please
+follow installation steps below to enable them.
+
+INSTALLATION GUIDE
+==================
+Assumes that user had finished initial installation from TLDK root
+directory README.
+
+1. TLDK unit tests require pcap PMD to be available, enable it in DPDK and
+ rebuild it.
+ (http://dpdk.org/doc/quick-start has information how to do it)
+2. Obtain GoogleTest and build it. Some additional dependencies might be
+ needed.
+ (refer to https://github.com/google/googletest for information how to
+ download and build it)
+3. Make sure that GTEST_DIR and GMOCK_DIR environment variables are set.
+4. Rebuild TLDK.
+
+Example:
+cd dpdk
+make config T=x86_64-native-linuxapp-gcc
+sed -ri 's,(PMD_PCAP=).*,\1y,' build/.config
+make install
+
+git clone https://github.com/google/googletest.git
+cd ../googletest
+export GTEST_DIR=`pwd`/googletest
+export GMOCK_DIR=`pwd`/googlemock
+cmake CMakeLists.txt
+make
+
+cd ../tldk
+make clean
+make all
+./x86_64-native-linuxapp-gcc/app/gtest-rfc --lcores=0