summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/damon/debugfs_rm_non_contexts.sh
blob: 48b7af6b022cb20bdfeafe2fe1e5aeb2bc0782cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0

source _debugfs_common.sh

# Test putting non-ctx files/dirs to rm_contexts file
# ===================================================

dmesg -C

for file in "$DBGFS/"*
do
	echo "$(basename "$f")" > "$DBGFS/rm_contexts"
	if dmesg | grep -q BUG
	then
		dmesg
		exit 1
	fi
done