btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests
[platform/upstream/btrfs-progs.git] / tests / fsck-tests / 020-extent-ref-cases / test.sh
1 #!/bin/bash
2 # In order to confirm that 'btrfs check' supports checking a variety of refs,
3 # add the following cases:
4 #
5 # * keyed_block_ref
6 # * keyed_data_ref
7 # * shared_block_ref
8 # * shared_data_ref
9 # * no_inline_ref (a extent item without inline ref)
10 # * no_skinny_ref
11 #
12 # Special check for lowmem regression
13 # * block_group_item_false_alert
14 #   Containing a block group and its first extent at
15 #   the beginning of leaf.
16 #   Which caused false alert for lowmem mode.
17
18 source "$TEST_TOP/common"
19
20 check_prereq btrfs
21
22 check_image() {
23         local image
24
25         image=$1
26         run_check "$TOP/btrfs" check "$image"
27 }
28
29 check_all_images