Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8156BC05027 for ; Fri, 10 Feb 2023 17:18:25 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 738FD3CC090 for ; Fri, 10 Feb 2023 18:18:23 +0100 (CET) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id BA38A3C2730 for ; Fri, 10 Feb 2023 18:18:12 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 26E041400FB2 for ; Fri, 10 Feb 2023 18:18:11 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C9AB8381DA; Fri, 10 Feb 2023 17:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1676049490; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=soeDbf1Bb0xA1ztZExAm/ZPIBesulT76L7o97/fxRNQ=; b=am/9VZTGTrXeOwdEt9jW+Vz85MSo2WNvCxizJOPCGqZBMkbgV9Y6HS7oKn0+twe8lnMivS IIEiRmw4AXqpz6UDp0v63GneswTdZHNsRlKHtqyFc0eyRCP+TsSckOVY8IU75JxJkJ+Qk8 VZQfdlxUt7LSdAHOXVFWJb9KveKtV+w= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 50E9713206; Fri, 10 Feb 2023 17:18:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kLTfJk985mOlHQAAMHmgww (envelope-from ); Fri, 10 Feb 2023 17:18:07 +0000 To: ltp@lists.linux.it Date: Fri, 10 Feb 2023 18:15:59 +0100 Message-Id: <20230210171601.19047-1-andrea.cervesato@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v5 0/2] Rewrite utstest suite X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrea Cervesato via ltp Reply-To: Andrea Cervesato Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Added new tests and removed utstest which looked broken. Andrea Cervesato (2): Add SAFE_SETHOSTNAME macro Rewrite utsname testing suite include/safe_net_fn.h | 3 + include/tst_safe_net.h | 3 + lib/safe_net.c | 17 + runtest/containers | 16 +- .../kernel/containers/utsname/.gitignore | 5 +- testcases/kernel/containers/utsname/Makefile | 23 +- .../containers/utsname/runutstests_noltp.sh | 41 -- .../kernel/containers/utsname/utsname01.c | 56 +++ .../kernel/containers/utsname/utsname02.c | 81 ++++ .../kernel/containers/utsname/utsname03.c | 118 ++++++ .../kernel/containers/utsname/utsname04.c | 52 +++ testcases/kernel/containers/utsname/utstest.c | 353 ------------------ 12 files changed, 343 insertions(+), 425 deletions(-) delete mode 100755 testcases/kernel/containers/utsname/runutstests_noltp.sh create mode 100644 testcases/kernel/containers/utsname/utsname01.c create mode 100644 testcases/kernel/containers/utsname/utsname02.c create mode 100644 testcases/kernel/containers/utsname/utsname03.c create mode 100644 testcases/kernel/containers/utsname/utsname04.c delete mode 100644 testcases/kernel/containers/utsname/utstest.c -- 2.35.3 -- Mailing list info: https://lists.linux.it/listinfo/ltp