debian/tmp/lib/modules/_KVERS_/updates/kernel/fs/lustre/*_test.ko usr/lib/modules/_KVERS_/updates/kernel/fs/lustre/
+debian/tmp/lib/modules/_KVERS_/updates/kernel/fs/lustre/kinode.ko usr/lib/modules/_KVERS_/updates/kernel/fs/lustre/
debian/tmp/usr/lib/lustre/tests/* usr/lib/lustre/tests
debian/tmp/usr/bin/mcreate usr/bin
debian/tmp/usr/bin/statx usr/bin
obj-m += obdecho/
obj-m += mgc/
obj-m += ec/
-obj-m += tests/kernel/
+obj-m += kunit/
@SERVER_TRUE@obj-m += ost/ mgs/ mdt/ mdd/ ofd/ quota/ osp/ lod/ lfsck/ target/
@CLIENT_TRUE@obj-m += lov/ osc/ mdc/ lmv/ llite/ fld/
# also update lustre/autoconf/lustre-core.m4 AC_CONFIG_FILES
ALWAYS_SUBDIRS = include obdclass ldlm ptlrpc obdecho ec \
- mgc fid fld doc utils tests tests/kernel scripts autoconf conf
+ mgc fid fld doc utils tests scripts autoconf conf kunit
SERVER_SUBDIRS = ost mgs mdt mdd ofd osd-zfs osd-ldiskfs \
quota osp lod target lfsck
lustre/tests/iabf/Makefile
lustre/tests/lutf/Makefile
lustre/tests/lutf/src/Makefile
-lustre/tests/kernel/Makefile
-lustre/tests/kernel/autoMakefile
+lustre/kunit/Makefile
+lustre/kunit/autoMakefile
lustre/utils/Makefile
lustre/utils/gss/Makefile
lustre/osp/Makefile
--- /dev/null
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# lustre/kunit/Makefile.in
+#
+# Makefile template for kunit
+#
+
+MODULES := llog_test obd_test kinode
+
+EXTRA_DIST = llog_test.c obd_test.c kinode.c
+
+@INCLUDE_RULES@
--- /dev/null
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# lustre/kunit/autoMakefile.am
+#
+# autoMakefile for kunit
+#
+
+if MODULES
+modulefs_DATA = llog_test$(KMODEXT)
+modulefs_DATA += obd_test$(KMODEXT)
+modulefs_DATA += kinode$(KMODEXT)
+endif # MODULES
+
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
-/*
- * GPL HEADER START
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 only,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License version 2 for more details (a copy is included
- * in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see
- * http://www.gnu.org/licenses/gpl-2.0.html
- *
- * GPL HEADER END
- */
+// SPDX-License-Identifier: GPL-2.0
/*
* Copyright 2017 Cray Inc. All rights reserved.
- * Author: Frank Zago.
+ *
*/
-/* Check that the inode number is the same whether the call to
+/*
+ * This file is part of Lustre, http://www.lustre.org/
+ *
+ * lustre/kunit/kinode.c
+ *
+ * Check that the inode number is the same whether the call to
* vfs_getattr is coming from a system call or from a kthread. When
* CONFIG_X86_X32 was set, the result used to be different for
* Lustre. In addition, a user can also check that the same inode
- * number is also seen from the kernel and userspace. */
+ * number is also seen from the kernel and userspace.
+ *
+ * Author: Frank Zago
+ *
+ */
#include <linux/module.h>
#include <linux/kernel.h>
-/*
- * GPL HEADER START
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 only,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License version 2 for more details (a copy is included
- * in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see
- * http://www.gnu.org/licenses/gpl-2.0.html
- *
- * GPL HEADER END
- */
+// SPDX-License-Identifier: GPL-2.0
+
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* Copyright (c) 2012, 2017, Intel Corporation.
+ *
*/
+
/*
* This file is part of Lustre, http://www.lustre.org/
*
- * lustre/obdclass/llog_test.c
+ * lustre/kunit/llog_test.c
*
* Author: Phil Schwan <phil@clusterfs.com>
* Author: Mikhail Pershin <mike.pershin@intel.com>
+ *
*/
#define DEBUG_SUBSYSTEM S_CLASS
/*
* This file is part of Lustre, http://www.lustre.org/
*
- * lustre/obdclass/obd_test.c
+ * lustre/kunit/obd_test.c
*
* Simple OBD device for:
* 1) testing OBD device lifecycle management
# Makefile template for obdclass
#
-MODULES := obdclass llog_test obd_test
+MODULES := obdclass
default: all
EXTRA_PRE_CFLAGS := -I@LINUX@/fs -I@LDISKFS_DIR@ -I@LDISKFS_DIR@/ldiskfs
-EXTRA_DIST = $(obdclass-all-objs:.o=.c) llog_test.c obd_test.c llog_internal.h
+EXTRA_DIST = $(obdclass-all-objs:.o=.c) llog_internal.h
EXTRA_DIST += cl_internal.h local_storage.h
EXTRA_DIST += range_lock.c interval_tree.c
#
if MODULES
-
if LINUX
modulefs_DATA = obdclass$(KMODEXT)
-if TESTS
-modulefs_DATA += llog_test$(KMODEXT)
-modulefs_DATA += obd_test$(KMODEXT)
-endif # TESTS
endif # LINUX
-
endif # MODULES
MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
+++ /dev/null
-MODULES := kinode
-
-EXTRA_DIST = kinode.c
-
-@INCLUDE_RULES@
+++ /dev/null
-#
-# GPL HEADER START
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 only,
-# as published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License version 2 for more details (a copy is included
-# in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU General Public License
-# version 2 along with this program; If not, see
-# http://www.gnu.org/licenses/gpl-2.0.html
-#
-# GPL HEADER END
-#
-
-#
-# This file is part of Lustre, http://www.lustre.org/
-#
-
-if MODULES
-if TESTS
-modulefs_DATA = kinode$(KMODEXT)
-endif
-endif
-
-MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
'lustre/ptlrpc/ptlrpc.ko',
'lustre/fld/fld.ko',
'lustre/fid/fid.ko',
-'lustre/obdclass/llog_test.ko',
+'lustre/kunit/llog_test.ko',
'lustre/ptlrpc/gss/ptlrpc_gss.ko',
'lustre/obdecho/obdecho.ko',
'lustre/mgc/mgc.ko',
'lustre/red/red.ko',
-'lustre/tests/kernel/kinode.ko',
+'lustre/kunit/kinode.ko',
'lustre/ost/ost.ko',
'lustre/mgs/mgs.ko',
'lustre/lfsck/lfsck.ko',
MGS=$($LCTL dl | awk '/mgs/ { print $4 }')
[ -z "$MGS" ] && echo "$0: SKIP: no MGS available, skipping llog test" && exit 0
-load_module obdclass/llog_test || exit 1
+load_module kunit/llog_test || exit 1
$LCTL modules > "$TMP/ogdb-$(hostname)"
echo "NOW reload debugging syms.."
test_55a() {
local dev_path="/sys/kernel/debug/lustre/devices"
- load_module obdclass/obd_test verbose=2 || error "load_module failed"
+ load_module kunit/obd_test verbose=2 || error "load_module failed"
# This must be run in iteractive mode, since attach and setup
# are stateful
# testing). We don't want to run this test forever.
local num_dev_to_create="$(( 24000 - $dev_count))"
- load_module obdclass/obd_test || error "load_module failed"
+ load_module kunit/obd_test || error "load_module failed"
local start=$SECONDS
{ .name = "kgnilnd", .path = "lnet/klnds/gnilnd"},
{ .name = "ksocklnd", .path = "lnet/klnds/socklnd" },
{ .name = "obdclass", .path = "lustre/obdclass" },
- { .name = "llog_test", .path = "lustre/obdclass" },
+ { .name = "llog_test", .path = "lustre/kunit" },
+ { .name = "obd_test", .path = "lustre/kunit" },
+ { .name = "kinode", .path = "lustre/kunit" },
{ .name = "ptlrpc_gss", .path = "lustre/ptlrpc/gss" },
{ .name = "ptlrpc", .path = "lustre/ptlrpc" },
{ .name = "gks", .path = "lustre/sec/gks" },