From 1991ee94bc2a1ac808454b8125e6251732a9a200 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 19 Jul 2016 00:00:10 +0000 Subject: [PATCH] tests: rename unix-pair-send-recv to unix-pair-sendto-recvfrom * dumpio.expected: Rename to unix-pair-sendto-recvfrom.expected. * dumpio.test: Rename to unix-pair-sendto-recvfrom.test. * unix-pair-send-recv.c: Rename to unix-pair-sendto-recvfrom.c * .gitignore: Rename unix-pair-send-recv to unix-pair-sendto-recvfrom. * Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add unix-pair-sendto-recvfrom.test. (MISC_TESTS): Remove dumpio.test. (EXTRA_DIST): Rename dumpio.expected to unix-pair-sendto-recvfrom.expected. --- tests/.gitignore | 2 +- tests/Makefile.am | 6 +++--- tests/dumpio.test | 11 ----------- ...x-pair-send-recv.c => unix-pair-sendto-recvfrom.c} | 2 ++ ...io.expected => unix-pair-sendto-recvfrom.expected} | 0 tests/unix-pair-sendto-recvfrom.test | 11 +++++++++++ 6 files changed, 17 insertions(+), 15 deletions(-) delete mode 100755 tests/dumpio.test rename tests/{unix-pair-send-recv.c => unix-pair-sendto-recvfrom.c} (97%) rename tests/{dumpio.expected => unix-pair-sendto-recvfrom.expected} (100%) create mode 100755 tests/unix-pair-sendto-recvfrom.test diff --git a/tests/.gitignore b/tests/.gitignore index cf262bd4..68d2f3be 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -282,7 +282,7 @@ umovestr umovestr2 umovestr3 uname -unix-pair-send-recv +unix-pair-sendto-recvfrom unlink unlinkat userfaultfd diff --git a/tests/Makefile.am b/tests/Makefile.am index d507495d..18b08f10 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -338,7 +338,7 @@ check_PROGRAMS = \ umovestr2 \ umovestr3 \ uname \ - unix-pair-send-recv \ + unix-pair-sendto-recvfrom \ unlink \ unlinkat \ userfaultfd \ @@ -656,6 +656,7 @@ DECODER_TESTS = \ umovestr2.test \ umovestr3.test \ uname.test \ + unix-pair-sendto-recvfrom.test \ unlink.test \ unlinkat.test \ userfaultfd.test \ @@ -686,7 +687,6 @@ MISC_TESTS = \ detach-running.test \ detach-sleeping.test \ detach-stopped.test \ - dumpio.test \ filter-unavailable.test \ fork-f.test \ ksysent.test \ @@ -721,7 +721,6 @@ AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh EXTRA_DIST = init.sh run.sh match.awk \ caps.awk \ count-f.expected \ - dumpio.expected \ eventfd.expected \ fanotify_mark.expected \ filter-unavailable.expected \ @@ -759,6 +758,7 @@ EXTRA_DIST = init.sh run.sh match.awk \ sun_path.expected \ uio.expected \ umovestr.expected \ + unix-pair-sendto-recvfrom.expected \ xchownx.c \ xgetrlimit.c \ xselect.c \ diff --git a/tests/dumpio.test b/tests/dumpio.test deleted file mode 100755 index 8d272fce..00000000 --- a/tests/dumpio.test +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -# Check how dumpio works. - -. "${srcdir=.}/init.sh" - -run_prog ./unix-pair-send-recv abcdefghijklmnopqrstuvwxyz -run_strace -esignal=none -esendto,recvfrom -eread=0 -ewrite=0 $args -match_diff - -exit 0 diff --git a/tests/unix-pair-send-recv.c b/tests/unix-pair-sendto-recvfrom.c similarity index 97% rename from tests/unix-pair-send-recv.c rename to tests/unix-pair-sendto-recvfrom.c index f7d9c39d..cea382c9 100644 --- a/tests/unix-pair-send-recv.c +++ b/tests/unix-pair-sendto-recvfrom.c @@ -1,4 +1,6 @@ /* + * Check decoding and dumping of sendto and recvfrom syscalls. + * * Copyright (c) 2015-2016 Dmitry V. Levin * All rights reserved. * diff --git a/tests/dumpio.expected b/tests/unix-pair-sendto-recvfrom.expected similarity index 100% rename from tests/dumpio.expected rename to tests/unix-pair-sendto-recvfrom.expected diff --git a/tests/unix-pair-sendto-recvfrom.test b/tests/unix-pair-sendto-recvfrom.test new file mode 100755 index 00000000..21afe236 --- /dev/null +++ b/tests/unix-pair-sendto-recvfrom.test @@ -0,0 +1,11 @@ +#!/bin/sh + +# Check decoding and dumping of sendto and recvfrom syscalls. + +. "${srcdir=.}/init.sh" + +run_prog ./unix-pair-sendto-recvfrom abcdefghijklmnopqrstuvwxyz +run_strace -esignal=none -esendto,recvfrom -eread=0 -ewrite=0 $args +match_diff + +exit 0 -- 2.40.0