summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/networking/timestamping/Makefile
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2018-12-20 16:22:54 -0500
committerDavid S. Miller <davem@davemloft.net>2018-12-20 17:01:17 -0800
commitcda261f421ba2682e25f46beb229172706fc7fcd (patch)
tree150736910e957ee253eeb18fde79c245656e3d18 /tools/testing/selftests/networking/timestamping/Makefile
parentb52354aa068ee362a58ebb92e8bd0d0e18008364 (diff)
downloadblackbird-op-linux-cda261f421ba2682e25f46beb229172706fc7fcd.tar.gz
blackbird-op-linux-cda261f421ba2682e25f46beb229172706fc7fcd.zip
selftests: add txtimestamp kselftest
Run the transmit timestamp tests as part of kselftests. Add a txtimestamp.sh test script that runs most variants: ipv4/ipv6, tcp/udp/raw/raw_ipproto/pf_packet, data/nodata, setsockopt/cmsg. The script runs tests with netem delays. Refine txtimestamp.c to validate results. Take expected netem delays as input and compare against real timestamps. To run without dependencies, add a listener socket to be able to connect in the case of TCP. Add the timestamping directory to the kselftests Makefile. Build all the binaries. Only run verified txtimestamp.sh. Signed-off-by: Willem de Bruijn <willemb@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/networking/timestamping/Makefile')
-rw-r--r--tools/testing/selftests/networking/timestamping/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/networking/timestamping/Makefile b/tools/testing/selftests/networking/timestamping/Makefile
index 14cfcf006936..6c17a93c4e03 100644
--- a/tools/testing/selftests/networking/timestamping/Makefile
+++ b/tools/testing/selftests/networking/timestamping/Makefile
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
CFLAGS += -I../../../../../usr/include
-TEST_PROGS := hwtstamp_config rxtimestamp timestamping txtimestamp
+TEST_GEN_FILES := hwtstamp_config rxtimestamp timestamping txtimestamp
+TEST_PROGS := txtimestamp.sh
all: $(TEST_PROGS)
@@ -9,4 +10,4 @@ top_srcdir = ../../../../..
include ../../lib.mk
clean:
- rm -fr $(TEST_PROGS)
+ rm -fr $(TEST_GEN_FILES)
OpenPOWER on IntegriCloud