btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests
[platform/upstream/btrfs-progs.git] / tests / mkfs-tests / 002-no-force-mixed-on-small-volume / test.sh
1 #!/bin/bash
2 #
3 # Verify that we do not force mixed block groups on small volumes anymore
4
5 source "$TEST_TOP/common"
6
7 check_prereq mkfs.btrfs
8
9 setup_root_helper
10
11 mixed=$(run_check_stdout "$TOP/mkfs.btrfs" -b 512M -n 64k -f "$TEST_DEV" | egrep 'Data|Metadata')
12 echo "$mixed" | grep -q -v 'Data+Metadata:' || _fail "unexpected: created a mixed-bg filesystem"