Received: from orbyte.nwl.cc (orbyte.nwl.cc [151.80.46.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED2AD10E4 for ; Wed, 9 Oct 2024 17:27:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=151.80.46.58 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728494871; cv=none; b=n02D1ZsF2I/uvqDA1iSxg94We/jEwGVGKnysKIdfM1Tu0THi4xB7PINCIDx2prV+MW04bgT9MEVOaio1FmLdNLKEtoAGP15vf/LfJVAJfLv+Nhv8acIYpX3COHAMwWrol2i8BRGCejSNip1DA/PSSRFBvECoNILlaWKFfjsQmGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728494871; c=relaxed/simple; bh=9P9DlbwFDifS6udPToAyh+LRcGIn/N2XPdQ+aqq+O2g=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I5H20JR7G/mqXV20O+nHIw5iIRLmpo7XUHewtKoTht1pTCJ8cb6pNvvE2vR/8D6dC7zabShWhy3B3TJUzuchukQoOpMfvaxp6KumbsXHt4sqDZhSOh6BJd7jPBK8+9TS0IEahGyo0ovc3OksAxPiB9f6vPk6zsGNUhXzEw9nCMc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nwl.cc; spf=pass smtp.mailfrom=nwl.cc; dkim=pass (2048-bit key) header.d=nwl.cc header.i=@nwl.cc header.b=VUryLBEO; arc=none smtp.client-ip=151.80.46.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nwl.cc Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nwl.cc Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nwl.cc header.i=@nwl.cc header.b="VUryLBEO" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nwl.cc; s=mail2022; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=hd4CUxQHg6GU0W/YqsYn8dAS3fg5bJcnRxwRfU0rfVc=; b=VUryLBEOs/wango6SddkhPfVhS poezgZB4dGDK//Ed9lE1D53R2dNMsfuVfss+qglRqdjKr36tMO8sl3yoQLfgRV5W0WyQFCCX/DgGU lrCEXtmpjKMJrIndxKS1HT5ELJPXwU0OwPoQnIxeW3+C7bWfauFjwvFVEzeqW38ZSdF5BrIxWqQqW /IjAJiAbkvpBb+gisV1hgrXEmIUSjI4DfSCCSAeAf4cLoz7NxCr45v4IWizrVflXCArBL/vPfCFYe DqbVpYZZpC+8sgED/aVVjHTIwraqLqgkIcv0BKIU6h8n24mO2JpdNRJlMwbWWYNjwdG5vObV3/XaF +R9P41LA==; Received: from localhost ([::1] helo=xic) by orbyte.nwl.cc with esmtp (Exim 4.97.1) (envelope-from ) id 1syaTQ-000000007Ck-2rfn for netfilter-devel@vger.kernel.org; Wed, 09 Oct 2024 19:27:44 +0200 From: Phil Sutter To: netfilter-devel@vger.kernel.org Subject: [iptables PATCH 3/3] tests: shell: Test some commands involving rule numbers Date: Wed, 9 Oct 2024 19:27:40 +0200 Message-ID: <20241009172740.2369-3-phil@nwl.cc> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241009172740.2369-1-phil@nwl.cc> References: <20241009172740.2369-1-phil@nwl.cc> Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Skip on ip6tables and arptables as they share the relevant code with iptables. Signed-off-by: Phil Sutter --- .../shell/testcases/ebtables/0011-rulenum_0 | 104 ++++++++++++++++++ .../shell/testcases/iptables/0011-rulenum_0 | 93 ++++++++++++++++ 2 files changed, 197 insertions(+) create mode 100755 iptables/tests/shell/testcases/ebtables/0011-rulenum_0 create mode 100755 iptables/tests/shell/testcases/iptables/0011-rulenum_0 diff --git a/iptables/tests/shell/testcases/ebtables/0011-rulenum_0 b/iptables/tests/shell/testcases/ebtables/0011-rulenum_0 new file mode 100755 index 0000000000000..51302f347baf4 --- /dev/null +++ b/iptables/tests/shell/testcases/ebtables/0011-rulenum_0 @@ -0,0 +1,104 @@ +#!/bin/bash -x + +case "$XT_MULTI" in +*xtables-nft-multi) + ;; +*) + echo "skip $XT_MULTI" + exit 0 + ;; +esac + +set -e + +load_ruleset() { + $XT_MULTI ebtables-restore <