File: test.sh

package info (click to toggle)
btrfs-progs 6.2-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,244 kB
  • sloc: ansic: 114,376; sh: 9,576; python: 1,242; makefile: 820
file content (16 lines) | stat: -rwxr-xr-x 565 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# https://bugzilla.kernel.org/show_bug.cgi?id=200085
#
# The --dump option should follow the --max-errors and not loop indefinetelly
# by default

source "$TEST_TOP/common"

check_prereq btrfs

printf 'btrfs-stream\0\0\0\0\0' | run_mustfail "parsing invalid stream did not fail" \
	"$TOP/btrfs" receive --dump
printf 'btrfs-stream\0\0\0\0\0' | run_mustfail "parsing invalid stream did not fail" \
	"$TOP/btrfs" receive --dump -E 1
printf 'btrfs-stream\0\0\0\0\0' | run_mustfail "parsing invalid stream did not fail" \
	"$TOP/btrfs" receive --dump -E 10