File: test.sh

package info (click to toggle)
btrfs-progs 6.17.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,612 kB
  • sloc: ansic: 127,282; sh: 7,915; python: 1,384; makefile: 900; asm: 296
file content (16 lines) | stat: -rwxr-xr-x 573 bytes parent folder | download | duplicates (3)
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" || exit

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