brintos

brintos / linux-shallow public Read only

0
0
Text · 488 B · 902e312 Raw
18 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: GPL-2.03 4source _debugfs_common.sh5 6# Test attrs file7# ===============8 9file="$DBGFS/attrs"10orig_content=$(cat "$file")11 12test_write_succ "$file" "1 2 3 4 5" "$orig_content" "valid input"13test_write_fail "$file" "1 2 3 4" "$orig_content" "no enough fields"14test_write_fail "$file" "1 2 3 5 4" "$orig_content" \15	"min_nr_regions > max_nr_regions"16test_content "$file" "$orig_content" "1 2 3 4 5" "successfully written"17echo "$orig_content" > "$file"18