summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Day <timday@amazon.com>2024-08-10 00:06:57 -0400
committerTimothy Day <timday@amazon.com>2024-08-10 00:06:57 -0400
commit439c0e8495577c58e1fd612e2cd6bbc76ba457af (patch)
tree6617cfd2da0512e4f9f3f4ed1872cb48a8e14f60
parent56a8165fbcac16ec5f2e82ec51bc844448b00795 (diff)
tests/fs/lustre: add sanity-quick and fsmark tests
Add two new tests: sanity-quick for running a small and fast subset of the Lustre sanity.sh suite and fsmark for running fs_mark. Signed-off-by: Timothy Day <timday@amazon.com>
-rwxr-xr-xtests/fs/lustre/fsmark.ktest37
-rwxr-xr-xtests/fs/lustre/sanity-quick.ktest30
2 files changed, 67 insertions, 0 deletions
diff --git a/tests/fs/lustre/fsmark.ktest b/tests/fs/lustre/fsmark.ktest
new file mode 100755
index 0000000..75a07a5
--- /dev/null
+++ b/tests/fs/lustre/fsmark.ktest
@@ -0,0 +1,37 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# Copyright (c) 2024, Amazon and/or its affiliates. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Author: Timothy Day <timday@amazon.com>
+#
+
+. "$(dirname "$(readlink -e "${BASH_SOURCE[0]}")")/lustre-libs.sh"
+
+require-lustre-kernel-config
+require-lustre-debug-kernel-config
+
+config-mem 10G
+config-timeout 60
+
+test_fsmark()
+{
+ setup_lustrefs
+
+ dirs=""
+ for i in `seq 1 $(nproc)`; do
+ dirs="$dirs -d /mnt/lustre/$i"
+ done
+
+ fs_mark -F -D 1000 -S0 -n 1000 -s 4 -L 100 -d $dirs || true
+
+ sync
+
+ cleanup_lustrefs
+}
+
+main "$@"
diff --git a/tests/fs/lustre/sanity-quick.ktest b/tests/fs/lustre/sanity-quick.ktest
new file mode 100755
index 0000000..a74e772
--- /dev/null
+++ b/tests/fs/lustre/sanity-quick.ktest
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# Copyright (c) 2024, Amazon and/or its affiliates. All rights reserved.
+# Use is subject to license terms.
+#
+
+#
+# Author: Timothy Day <timday@amazon.com>
+#
+
+. "$(dirname "$(readlink -e "${BASH_SOURCE[0]}")")/lustre-libs.sh"
+
+require-lustre-kernel-config
+require-lustre-debug-kernel-config
+
+config-mem 10G
+config-timeout 60
+
+test_sanity-quick()
+{
+ setup_lustrefs
+
+ "$lustre_pkg_path/lustre/tests/auster" -v sanity --stop-at 16
+
+ cleanup_lustrefs
+}
+
+main "$@"