From patchwork Tue Mar 15 12:23:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Cervesato X-Patchwork-Id: 1605591 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=H8uRD5h1; dkim=fail reason="signature verification failed" header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=unbkyv/g; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KHsyq45rlz9sFq for ; Tue, 15 Mar 2022 23:24:02 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 5384B3C925B for ; Tue, 15 Mar 2022 13:23:57 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::4]) (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 190803C91EA for ; Tue, 15 Mar 2022 13:23:55 +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-4.smtp.seeweb.it (Postfix) with ESMTPS id 8819F10000E1 for ; Tue, 15 Mar 2022 13:23:54 +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 B56BA21902; Tue, 15 Mar 2022 12:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1647347033; 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=IFzSaZ8EH0Xj+r7/6NCEsvY7Ow+xsqElwUPe1CDO83k=; b=H8uRD5h165Hrq+wH8sjRNFRQDuzBUo8luLon04s45b70+TuOeTHca3lPHnArAesXnwe+Mp eg0ut5CsQA1U67Qi3axBN0bIjFluMdEX2F+3Ak+OpcixBjmvpqZe/bbihS1IzMECzl5LRX AR8u46QPfCFcZKqbBSX2scGapAGN4bw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1647347033; 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=IFzSaZ8EH0Xj+r7/6NCEsvY7Ow+xsqElwUPe1CDO83k=; b=unbkyv/g5fPX6NwwSw7+LMsp+SGTAb24P5a0MnDb1Gx6zWjFU+M8kBJzQ6qW9TxtJ6HpMH LiDbNgf6Zp9FvpBw== 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 8710A13B59; Tue, 15 Mar 2022 12:23:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id EijoHlmFMGJ3UAAAMHmgww (envelope-from ); Tue, 15 Mar 2022 12:23:53 +0000 From: Andrea Cervesato To: ltp@lists.linux.it Date: Tue, 15 Mar 2022 13:23:43 +0100 Message-Id: <20220315122351.8556-1-andrea.cervesato@suse.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-4.smtp.seeweb.it Subject: [LTP] [PATCH v2 0/8] Rewrite userns testing suite using new LTP API 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: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Removed TST_CHECKPOINT_INIT from tests and replaced libclone usage with the internal LTP API clone API. Andrea Cervesato (8): Rewrite userns01.c using new LTP API Rewrite userns02.c using new LTP API Rewrite userns03.c using new LTP API Rewrite userns04.c using new LTP API Rewrite userns05.c using new LTP API Rewrite userns06.c using new LTP API Rewrite userns07.c using new LTP API Rewrite userns08.c using new LTP API testcases/kernel/containers/userns/common.h | 58 ++++ testcases/kernel/containers/userns/userns01.c | 120 ++++---- testcases/kernel/containers/userns/userns02.c | 139 ++++----- testcases/kernel/containers/userns/userns03.c | 266 ++++++++---------- testcases/kernel/containers/userns/userns04.c | 139 ++++----- testcases/kernel/containers/userns/userns05.c | 148 ++++------ testcases/kernel/containers/userns/userns06.c | 179 ++++++------ .../containers/userns/userns06_capcheck.c | 75 +++-- testcases/kernel/containers/userns/userns07.c | 127 ++++----- testcases/kernel/containers/userns/userns08.c | 17 +- 10 files changed, 586 insertions(+), 682 deletions(-) create mode 100644 testcases/kernel/containers/userns/common.h