Skip to content

Commit

Permalink
add t28 new rsync test
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Mar 15, 2011
1 parent bca6357 commit e413169
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 7 deletions.
4 changes: 3 additions & 1 deletion ChangeLog
@@ -1,4 +1,6 @@
2011-03-14 Jim Garlick <garlick@llnl.gov>
2011-03-15 Jim Garlick <garlick@llnl.gov>

* tests/kern/t28*, tests/kern/Makefile.am : New rsync test.

* tests/kern/t27*, tests/kern/Makefile.am : New (failing) test for
cached negative dentries.
Expand Down
8 changes: 5 additions & 3 deletions tests/kern/Makefile.am
Expand Up @@ -18,12 +18,14 @@ TESTS_ENVIRONMENT += "PATH_MNTDIR=$(shell readlink -f mnt.d)"
TESTS_ENVIRONMENT += "PATH_EXPDIR=$(shell readlink -f exp.d)"
TESTS_ENVIRONMENT += "./runtest"

TESTS = t05 t06 t07 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 \
t23 t24 t25 t26 t27
TESTS = t05 t06 t07 t13 t14 t15 t16 t17 t18 t19 t22 \
t23 t24 t25 t26 t27 t28

# Need to fix cached negative dentries!
XFAIL_TESTS = t27

if ! LARGEIO
XFAIL_TESTS += t20 t21
TESTS += t20 t21
endif

$(TESTS): mnt.d exp.d
Expand Down
7 changes: 4 additions & 3 deletions tests/kern/Makefile.in
Expand Up @@ -299,10 +299,11 @@ TESTS_ENVIRONMENT = env "PATH_DIOD=$(top_builddir)/diod/diod" \
"PATH_DIODMOUNT=$(top_builddir)/utils/diodmount" \
"PATH_MNTDIR=$(shell readlink -f mnt.d)" "PATH_EXPDIR=$(shell \
readlink -f exp.d)" "./runtest"
TESTS = t05 t06 t07 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 \
t23 t24 t25 t26 t27
TESTS = t05 t06 t07 t13 t14 t15 t16 t17 t18 t19 t22 t23 t24 t25 t26 \
t27 t28 $(am__append_1)

XFAIL_TESTS = t27 $(am__append_1)
# Need to fix cached negative dentries!
XFAIL_TESTS = t27
CLEANFILES = *.out *.diff *.stats *.diod
AM_CFLAGS = @GCCWARN@
AM_CPPFLAGS = \
Expand Down
1 change: 1 addition & 0 deletions tests/kern/README
Expand Up @@ -35,3 +35,4 @@ t25 Verify that files are created with the users effective gid.
Verify that files created in a setgid directory have the parent gid.
t26 Verify that chgrp works.
t27 Check that negative dentries are not cached.
t28 Rsync /etc into 9p and compare.
10 changes: 10 additions & 0 deletions tests/kern/t28
@@ -0,0 +1,10 @@
#!/bin/bash -e

echo rsync /etc to mntdir
rsync -a /etc $PATH_MNTDIR/

echo rsync /etc to mntdir again - should be silent
rsync -avc /etc $PATH_MNTDIR/ | egrep -v '^(sent|total).*'

echo rsync /etc to expdir - should be silent
rsync -avc /etc $PATH_EXPDIR/ | egrep -v '^(sent|total).*'
11 changes: 11 additions & 0 deletions tests/kern/t28.exp
@@ -0,0 +1,11 @@
kconjoin: diodmount exited with rc=0
rsync /etc to mntdir
rsync /etc to mntdir again - should be silent
sending incremental file list
etc/

rsync /etc to expdir - should be silent
sending incremental file list

kconjoin: t28 exited with rc=0
kconjoin: diod exited with rc=0

0 comments on commit e413169

Please sign in to comment.