]> Git Repo - linux.git/blob - tools/testing/selftests/damon/debugfs_schemes.sh
x86/kaslr: Expose and use the end of the physical memory address space
[linux.git] / tools / testing / selftests / damon / debugfs_schemes.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3
4 source _debugfs_common.sh
5
6 # Test schemes file
7 # =================
8
9 file="$DBGFS/schemes"
10 orig_content=$(cat "$file")
11
12 test_write_succ "$file" "1 2 3 4 5 6 4 0 0 0 1 2 3 1 100 3 2 1" \
13         "$orig_content" "valid input"
14 test_write_fail "$file" "1 2
15 3 4 5 6 3 0 0 0 1 2 3 1 100 3 2 1" "$orig_content" "multi lines"
16 test_write_succ "$file" "" "$orig_content" "disabling"
17 test_write_fail "$file" "2 1 2 1 10 1 3 10 1 1 1 1 1 1 1 1 2 3" \
18         "$orig_content" "wrong condition ranges"
19 echo "$orig_content" > "$file"
This page took 0.034341 seconds and 4 git commands to generate.