summaryrefslogtreecommitdiff
path: root/tests/generic/591
blob: 4de50e2a4ec938332cfd9c9f8991be379094defc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2019, Oracle and/or its affiliates.  All Rights Reserved.
#
# FS QA Test No. 591
#
# Test using splice() to read from pipes.

. ./common/preamble
_begin_fstest auto quick rw pipe splice

# Override the default cleanup function.
_cleanup()
{
	cd /
	rm -f $TEST_DIR/a
}

# Import common functions.

# real QA test starts here
_supported_fs generic
_require_test
_require_odirect
_require_test_program "splice-test"

diosize=`_min_dio_alignment $TEST_DEV`

$here/src/splice-test -s $diosize -r $TEST_DIR/a
$here/src/splice-test -rd $TEST_DIR/a
$here/src/splice-test -s $diosize $TEST_DIR/a
$here/src/splice-test -d $TEST_DIR/a

# success, all done
status=0
exit