btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests
[platform/upstream/btrfs-progs.git] / tests / fsck-tests / 019-non-skinny-false-alert / test.sh
1 #!/bin/bash
2 #
3 # $ btrfs check img
4 # Checking filesystem on img
5 # UUID: 17f2bf15-f4c2-4ebc-b1f7-39b7af26257a
6 # checking extents
7 # bad extent [29376512, 29392896), type mismatch with chunk
8 # bad extent [29442048, 29458432), type mismatch with chunk
9 # bad extent [29589504, 29605888), type mismatch with chunk
10 # ...
11 #
12 # a buggy check leads to the above messages
13
14 source "$TEST_TOP/common"
15
16 check_prereq btrfs
17
18 image=$(extract_image "./default_case.img.xz")
19 run_check_stdout "$TOP/btrfs" check "$image" 2>&1 |
20         grep -q "type mismatch with chunk" &&
21         _fail "unexpected error message in the output"
22
23 rm -f "$image"