btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests
[platform/upstream/btrfs-progs.git] / tests / fsck-tests / 018-leaf-crossing-stripes / test.sh
1 #!/bin/bash
2
3 source "$TEST_TOP/common"
4
5 check_prereq btrfs
6
7 image=$(extract_image "./default_case.raw.xz")
8 run_check_stdout "$TOP/btrfs" check "$image" 2>&1 |
9         grep -q "crossing stripe boundary" ||
10         _fail "no expected error message in the output"
11
12 rm -f "$image"