File: test_0100_ls_basic.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 406 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 "basic ls test"

start_share

echo -n "Testing nfs-ls on root of export ... "
../utils/nfs-ls "${TESTURL}" > /dev/null || failure
success

echo -n "Create a file and verify nfs-ls can see it ... "
touch "${TESTDIR}/testfile"
../utils/nfs-ls "${TESTURL}" > "${TESTDIR}/output" || failure
grep testfile "${TESTDIR}/output" > /dev/null || failure
success

stop_share

exit 0