lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231228013639.2827205-11-chengzhihao1@huawei.com>
Date: Thu, 28 Dec 2023 09:36:38 +0800
From: Zhihao Cheng <chengzhihao1@...wei.com>
To: <david.oberhollenzer@...ma-star.at>, <richard@....at>,
	<miquel.raynal@...tlin.com>, <s.hauer@...gutronix.de>,
	<Tudor.Ambarus@...aro.org>
CC: <linux-kernel@...r.kernel.org>, <linux-mtd@...ts.infradead.org>
Subject: [PATCH mtd-utils 10/11] tests: ubifs_repair: Add run_all script

Add run_all script to run all UBIFS repair testcases.

Signed-off-by: Zhihao Cheng <chengzhihao1@...wei.com>
---
 .gitignore                                         |  1 +
 configure.ac                                       |  1 +
 tests/ubifs_repair-tests/Makemodule.am             |  1 +
 .../ubifs_repair-tests/ubifs_repair_run_all.sh.in  | 59 ++++++++++++++++++++++
 4 files changed, 62 insertions(+)
 create mode 100755 tests/ubifs_repair-tests/ubifs_repair_run_all.sh.in

diff --git a/.gitignore b/.gitignore
index 89bca58..0d9be34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -113,6 +113,7 @@ tests/fs-tests/stress/fs_stress01.sh
 tests/ubi-tests/runubitests.sh
 tests/ubi-tests/ubi-stress-test.sh
 tests/ubifs_repair-tests/lib/common.sh
+tests/ubifs_repair-tests/ubifs_repair_run_all.sh
 tests/ubifs_repair-tests/tests/authentication_refuse.sh
 tests/ubifs_repair-tests/tests/cycle_mount_repair_check.sh
 tests/ubifs_repair-tests/tests/powercut_repair_mount.sh
diff --git a/configure.ac b/configure.ac
index 1c1c95b..94b60c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -356,6 +356,7 @@ AC_CONFIG_FILES([tests/fs-tests/fs_help_all.sh
 	tests/ubi-tests/runubitests.sh
 	tests/ubi-tests/ubi-stress-test.sh
 	tests/ubifs_repair-tests/lib/common.sh
+	tests/ubifs_repair-tests/ubifs_repair_run_all.sh
 	tests/ubifs_repair-tests/tests/authentication_refuse.sh
 	tests/ubifs_repair-tests/tests/cycle_mount_repair_check.sh
 	tests/ubifs_repair-tests/tests/powercut_repair_mount.sh
diff --git a/tests/ubifs_repair-tests/Makemodule.am b/tests/ubifs_repair-tests/Makemodule.am
index f728823..6030a1f 100644
--- a/tests/ubifs_repair-tests/Makemodule.am
+++ b/tests/ubifs_repair-tests/Makemodule.am
@@ -1,5 +1,6 @@
 test_SCRIPTS += \
 	tests/ubifs_repair-tests/lib/common.sh \
+	tests/ubifs_repair-tests/ubifs_repair_run_all.sh \
 	tests/ubifs_repair-tests/tests/authentication_refuse.sh \
 	tests/ubifs_repair-tests/tests/cycle_mount_repair_check.sh \
 	tests/ubifs_repair-tests/tests/powercut_repair_mount.sh \
diff --git a/tests/ubifs_repair-tests/ubifs_repair_run_all.sh.in b/tests/ubifs_repair-tests/ubifs_repair_run_all.sh.in
new file mode 100755
index 0000000..bb95369
--- /dev/null
+++ b/tests/ubifs_repair-tests/ubifs_repair_run_all.sh.in
@@ -0,0 +1,59 @@
+#!/bin/sh
+# Copyright (c), 2023-2024, Huawei Technologies Co, Ltd.
+# Author: Zhihao Cheng <chengzhihao1@...wei.com>
+#
+# Test Description:
+# Run all testcases under 'tests' directory
+
+function print_line()
+{
+	echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+	echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+}
+
+TESTBINDIR=@...TBINDIR@
+
+print_line
+$TESTBINDIR/authentication_refuse.sh
+if [[ $? != 0 ]]; then
+	echo "authentication_refuse failed"
+	exit 1
+fi
+print_line
+$TESTBINDIR/powercut_repair_mount.sh
+if [[ $? != 0 ]]; then
+	echo "powercut_repair_mount failed"
+	exit 1
+fi
+print_line
+$TESTBINDIR/cycle_corrupted_repair_fault_inject.sh
+if [[ $? != 0 ]]; then
+	echo "cycle_corrupted_repair_fault_inject failed"
+	exit 1
+fi
+print_line
+$TESTBINDIR/repair_bad_image.sh
+if [[ $? != 0 ]]; then
+	echo "repair_bad_image failed"
+	exit 1
+fi
+print_line
+$TESTBINDIR/random_corrupted_repair.sh
+if [[ $? != 0 ]]; then
+	echo "random_corrupted_repair failed"
+	exit 1
+fi
+print_line
+$TESTBINDIR/cycle_powercut_mount_repair.sh
+if [[ $? != 0 ]]; then
+	echo "cycle_powercut_mount_repair failed"
+	exit 1
+fi
+print_line
+$TESTBINDIR/cycle_mount_repair_check.sh
+if [[ $? != 0 ]]; then
+	echo "cycle_mount_repair_check failed"
+	exit 1
+fi
+
+exit 0
-- 
2.13.6


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ