fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 015
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2013 Fusion IO.  All Rights Reserved.
4 #
5 # FS QA Test No. btrfs/015
6 #
7 # Regression test to make sure we can create a snapshot after mounting with
8 # readonly and remounting rw.
9 #
10 . ./common/preamble
11 _begin_fstest auto quick snapshot
12
13 # Import common functions.
14 . ./common/filter
15
16 # real QA test starts here
17 _supported_fs btrfs
18 _require_scratch
19
20 _scratch_mkfs > /dev/null 2>&1
21 _scratch_mount -o ro
22 _scratch_mount -o rw,remount
23
24 $BTRFS_UTIL_PROG subvolume snapshot $SCRATCH_MNT $SCRATCH_MNT/snap >> $seqres.full 2>&1 \
25         || _fail "couldn't create snapshot"
26
27 echo "Silence is golden"
28 status=0 ; exit