File: test_0300_write.sh

package info (click to toggle)
libnfs 5.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,648 kB
  • sloc: ansic: 39,600; sh: 1,654; makefile: 315; xml: 178
file content (21 lines) | stat: -rwxr-xr-x 435 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

. ./functions.sh

echo "NFSv${VERS} Basic nfs_write() test."

start_share

echo -n "test writing to a file (1) ... "
touch "${TESTDIR}/open1"
./prog_open_write "${TESTURL}/?version=${VERS}" "." /open1 O_WRONLY "kangabanga" >/dev/null || failure
success

echo -n "verify the data is correct ... "
echo -n "kangabanga" > "${TESTDIR}/verify1"
diff "${TESTDIR}/verify1" "${TESTDIR}/open1" || failure
success

stop_share

exit 0