Philipp Marek wrote, On 04/09/06 12:54:
On Sunday 03 September 2006 22:53 Benjamin M. wrote:
  
Attached the results of run-tests 015/016 on my Linux box...  the other
tests run smoothly...
    
The directory where nodes are being created isn't seen as changed.
What filesystem run the tests on?
  
As always: ext3
Could you send me the output with the attached patch?
svn diff
Index: test/016_add_unversion
===================================================================
--- test/016_add_unversion      (revision 415)
+++ test/016_add_unversion      (working copy)
@@ -20,7 +20,8 @@
 $BINq ignore ./*
 # Maybe we get a ., possibly a m ...
 # Depends on timing of directory/inode changes (eg. same/different second)
-if [[ `$BINdflt st` == "."?"C"?" "*" "*"." ]]
+$BINdflt st -d -v
+if [[ `$BINdflt st | egrep -v ' .$'` == "" ]]
 then
        echo "OK, all ignored"
 else


make run-tests TEST_LIST=016* VERBOSE=1
make -C test BINARY=/devworld/src/fsvs-new/fsvs/src/fsvs
make[1]: Entering directory `/devworld/src/fsvs-new/fsvs/src/test'
Running tests...

_______________________________________________________
  016_add_unversion (Mon Sep 4 15:20:29 EDT 2006)
+ set -e
+ make -s -C /devworld/src/fsvs-new/fsvs/src/test prepare_clean
+ cd /tmp/fsvs-test-0/wc
+ DIR=dir
+ IGN=ign
+ PRE=take_
+ file1=dir/take_file1
+ file2=dir/take_something_different
+ file_i=dir/ign_file
+ mkdir dir
+ sleep 1
+ touch dir/take_file1 dir/ign_file dir/take_something_different
+ /devworld/src/fsvs-new/fsvs/src/fsvs -q ignore ./dir
+ /devworld/src/fsvs-new/fsvs/src/fsvs st -d -v
15:20:30.899 main[fsvs.c:441] LC_ALL gives en_US.UTF-8
15:20:30.899 main[fsvs.c:448] LC_CTYPE gives en_US.UTF-8
15:20:30.899 main[fsvs.c:459] codeset found to be UTF-8
15:20:30.899 main[fsvs.c:467] codeset: using identity
15:20:30.899 main[fsvs.c:488] optind=4 per_sts=108 action=""> 15:20:30.899 ign__new_pattern[ignore.c:725] getting 1 new entries - max is 0, used are 0
15:20:30.899 ign__new_pattern[ignore.c:784] new pattern INODE:8:5:16103
15:20:30.899 ign___init_pattern_into[ignore.c:256] pattern:  case, ignore
15:20:30.899 waa__get_waa_directory[waa.c:229] path is /tmp/fsvs-test-0/wc
15:20:30.899 waa__get_waa_directory[waa.c:282] md5 of /tmp/fsvs-test-0/wc
15:20:30.899 waa__open[waa.c:342] reading target /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937/ign
15:20:30.899 waa__open[waa.c:355] got fh 3
15:20:30.900 ign__new_pattern[ignore.c:725] getting 1 new entries - max is 5, used are 1
15:20:30.900 ign__new_pattern[ignore.c:725] getting 1 new entries - max is 5, used are 1
15:20:30.900 ign__new_pattern[ignore.c:784] new pattern ./dir
15:20:30.900 ign___init_pattern_into[ignore.c:256] pattern:  case, ignore
15:20:30.900 ign___init_pattern_into[ignore.c:352] shell pattern matching
15:20:30.900 ign__compile_pattern[ignore.c:176] compiled "./dir"
15:20:30.900 ign__compile_pattern[ignore.c:177]     into "\./dir"
15:20:30.900 waa__get_waa_directory[waa.c:229] path is /tmp/fsvs-test-0/wc
15:20:30.900 waa__get_waa_directory[waa.c:282] md5 of /tmp/fsvs-test-0/wc
15:20:30.900 waa__open[waa.c:342] reading target /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937/dir
15:20:30.900 waa__open[waa.c:355] got fh 3
15:20:30.900 waa__input_tree[waa.c:1141] mmap()ping 121 bytes
15:20:30.900 waa__input_tree[waa.c:1183] reading 1024 subdirs, 1 entries, 5 bytes string-space
15:20:30.900 waa__input_tree[waa.c:1193] ok, found \0 or \0\n at end
15:20:30.901 waa__input_tree[waa.c:1210] curr=0x40018040, end=0x40018079, count=1
15:20:30.901 ops__allocate[est_ops.c:713] need 1 blocks
15:20:30.901 ops__allocate[est_ops.c:750] no freelist, allocating
15:20:30.901 waa__input_tree[waa.c:1226] about to parse 0x40018040 = '0042755 44fc7c7d 44fc7c7d 0 nd x 4096 2 ...'
15:20:30.901 ops__build_path[est_ops.c:540] need 1024 bytes
15:20:30.901 ops__build_path[est_ops.c:554] new cache 0
15:20:30.901 ops__build_path[est_ops.c:568] reallocated cache 0
15:20:30.901 ops__build_path[est_ops.c:586] status=0; path=.
15:20:30.901 hlp__lstat[helper.c:232] .: uid=0 gid=0 mode=42755 dev=80b ino=71534 rdev=1000 size=4096
15:20:30.901 ops___stat_to_action[est_ops.c:246] change = 0
.....      4096  .
15:20:30.901 ops__update_single_entry[est_ops.c:1133] existing .: action="" flags=0, status=0
15:20:30.901 waa__read_or_build_tree[waa.c:1360] read tree = 0
15:20:30.901 wa__summary[warnings.c:168] 0# meta-mtime: 0x
15:20:30.901 wa__summary[warnings.c:168] 1# meta-user: 0x
15:20:30.901 wa__summary[warnings.c:168] 2# meta-group: 0x
15:20:30.901 wa__summary[warnings.c:168] 3# meta-umask: 0x
15:20:30.901 wa__summary[warnings.c:168] 4# entry-not-found: 0x
15:20:30.901 wa__summary[warnings.c:168] 5# no-urllist: 0x
15:20:30.901 wa__summary[warnings.c:168] 6# charset-invalid: 0x
15:20:30.901 wa__summary[warnings.c:168] 7# overlayed-entries: 0x
15:20:30.901 wa__summary[warnings.c:168] 8# _test-warning: 1x
++ /devworld/src/fsvs-new/fsvs/src/fsvs st
++ egrep -v ' .$'
+ [[ '' == '' ]]
+ echo 'OK, all ignored'
OK, all ignored
++ /devworld/src/fsvs-new/fsvs/src/test/path2spool .
+ p=/var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937//dir
+ [[ /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937//dir == '' ]]
+ mv /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937//dir /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937//dir.bak
+ /devworld/src/fsvs-new/fsvs/src/fsvs -q add dir/take_file1

Warning [id=entry-not-found, action=""> Path 'dir' not found in local cache


Warning summary:
   entry-not-found occured 1 time
+ mv /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937//dir.bak /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937//dir
+ /devworld/src/fsvs-new/fsvs/src/fsvs -q add dir/take_something_different dir/take_file1

Warning [id=entry-not-found, action=""> Path 'dir' not found in local cache


Warning summary:
   entry-not-found occured 2 times
++ /devworld/src/fsvs-new/fsvs/src/fsvs st
++ egrep '^n\.\.\.'
++ wc -l
+ [[       2 -eq 2 ]]
+ echo 'OK, 2 added'
OK, 2 added
++ /devworld/src/fsvs-new/fsvs/src/fsvs ci -m add
++ egrep '^n\.\.\.'
++ wc -l
+ [[       2 -eq 2 ]]
+ echo 'OK, 2 committed'
OK, 2 committed
++ svn ls file:///tmp/fsvs-test-0/tmp-repos-path/trunk/dir
++ grep take_
++ wc -l
+ [[       2 -eq 2 ]]
+ echo 'OK, files are in repository.'
OK, files are in repository.
+ /devworld/src/fsvs-new/fsvs/src/fsvs -q unversion dir/take_something_different
++ /devworld/src/fsvs-new/fsvs/src/fsvs st
++ egrep '^d\.\.\.'
++ wc -l
+ [[       1 -eq 1 ]]
+ echo 'OK, unversioned'
OK, unversioned
++ /devworld/src/fsvs-new/fsvs/src/fsvs ci -m unversion
++ egrep '^d\.\.\.'
++ wc -l
+ [[       1 -eq 1 ]]
+ echo 'OK, unversioned committed'
OK, unversioned committed
+ [[ -e dir/take_something_different ]]
+ echo 'OK, file still exists'
OK, file still exists
+ svn ls file:///tmp/fsvs-test-0/tmp-repos-path/trunk/dir/take_something_different
+ echo 'OK, file was removed from repository.'
OK, file was removed from repository.
+ rm dir/take_something_different
+ /devworld/src/fsvs-new/fsvs/src/fsvs -d -v add dir/take_something_different
15:20:31.225 main[fsvs.c:441] LC_ALL gives en_US.UTF-8
15:20:31.225 main[fsvs.c:448] LC_CTYPE gives en_US.UTF-8
15:20:31.225 main[fsvs.c:459] codeset found to be UTF-8
15:20:31.225 main[fsvs.c:467] codeset: using identity
15:20:31.225 main[fsvs.c:488] optind=4 per_sts=108 action=""> 15:20:31.225 ign__new_pattern[ignore.c:725] getting 1 new entries - max is 0, used are 0
15:20:31.225 ign__new_pattern[ignore.c:784] new pattern INODE:8:5:16103
15:20:31.225 ign___init_pattern_into[ignore.c:256] pattern:  case, ignore
15:20:31.225 waa__get_waa_directory[waa.c:229] path is /tmp/fsvs-test-0/wc
15:20:31.225 waa__get_waa_directory[waa.c:282] md5 of /tmp/fsvs-test-0/wc
15:20:31.225 waa__open[waa.c:342] reading target /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937/dir
15:20:31.225 waa__open[waa.c:355] got fh 3
15:20:31.225 waa__input_tree[waa.c:1141] mmap()ping 274 bytes
15:20:31.226 waa__input_tree[waa.c:1183] reading 1024 subdirs, 3 entries, 20 bytes string-space
15:20:31.226 waa__input_tree[waa.c:1193] ok, found \0 or \0\n at end
15:20:31.226 waa__input_tree[waa.c:1210] curr=0x40017040, end=0x40017112, count=3
15:20:31.226 ops__allocate[est_ops.c:713] need 3 blocks
15:20:31.226 ops__allocate[est_ops.c:750] no freelist, allocating
15:20:31.226 waa__input_tree[waa.c:1226] about to parse 0x40017040 = '0042755 44fc7c7d 44fc7c7d 0 nd x 4096 5 ...'
15:20:31.226 waa__input_tree[waa.c:1210] curr=0x40017079, end=0x40017112, count=2
15:20:31.226 waa__input_tree[waa.c:1226] about to parse 0x40017079 = '0042755 44fc7c7e 44fc7c7e 0 nd x 4096 5 ...'
15:20:31.226 waa__input_tree[waa.c:1210] curr=0x400170b4, end=0x40017112, count=1
15:20:31.226 waa__input_tree[waa.c:1226] about to parse 0x400170b4 = '0100644 44fc7c7e 44fc7c7e 0 nd d41d8cd98...'
15:20:31.226 au__mark_entries[add_unvers.c:51] doing dir/take_something_different
15:20:31.226 ops__find_entry_byname[est_ops.c:645] found dir on 0x8067100; ignored: 0x1
15:20:31.226 ops__find_entry_byname[est_ops.c:653] Searching for take_something_different (take_something_different) found no entry (ignored_too=1)
15:20:31.226 ops__allocate[est_ops.c:713] need 1 blocks
15:20:31.226 ops__allocate[est_ops.c:750] no freelist, allocating
15:20:31.226 ops__build_path[est_ops.c:540] need 1024 bytes
15:20:31.226 ops__build_path[est_ops.c:554] new cache 0
15:20:31.226 ops__build_path[est_ops.c:568] reallocated cache 0
15:20:31.226 ops__build_path[est_ops.c:586] status=0; path=./dir/take_something_different
15:20:31.226 hlp__lstat[helper.c:237] stat ./dir/take_something_different: errno=2
15:20:31.226 ops__update_single_entry[est_ops.c:1068] lstat whines 2
15:20:31.226 ops__update_single_entry[est_ops.c:1133] existing ./dir/take_something_different: action="" flags=2, status=0

Warning [id=entry-not-found, action=""> Path 'dir' not found in local cache

15:20:31.226 ops__build_path[est_ops.c:500] 0x8067120 found in cache index 0; lru 0
15:20:31.226 ops__build_path[est_ops.c:586] status=0; path=./dir/take_something_different
n...!         0  ./dir/take_something_different
15:20:31.226 au__mark_entries[add_unvers.c:99] changing flags: has now 2
15:20:31.226 waa__get_waa_directory[waa.c:229] path is /tmp/fsvs-test-0/wc
15:20:31.226 waa__get_waa_directory[waa.c:282] md5 of /tmp/fsvs-test-0/wc
15:20:31.226 waa__open[waa.c:339] tmp for target /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937/dir is /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937/dir.tmp
15:20:31.227 waa__open[waa.c:355] got fh 3
15:20:31.227 waa__open[waa.c:367] reallocate target name array to 5
15:20:31.227 waa__output_tree[waa.c:830] finished subdir
15:20:31.227 waa__output_tree[waa.c:911] new subdir 0 #0
15:20:31.227 waa__output_tree[waa.c:830] finished subdir
15:20:31.227 waa__close[waa.c:410] filehandle 3 should be /var/spool/fsvs/46/d9/862df7439936a14c8caf7ba9f937/dir
15:20:31.227 wa__summary[warnings.c:168] 0# meta-mtime: 0x
15:20:31.227 wa__summary[warnings.c:168] 1# meta-user: 0x
15:20:31.227 wa__summary[warnings.c:168] 2# meta-group: 0x
15:20:31.227 wa__summary[warnings.c:168] 3# meta-umask: 0x
15:20:31.227 wa__summary[warnings.c:168] 4# entry-not-found: 1x

Warning summary:
   entry-not-found occured 1 time
15:20:31.227 wa__summary[warnings.c:168] 5# no-urllist: 0x
15:20:31.227 wa__summary[warnings.c:168] 6# charset-invalid: 0x
15:20:31.227 wa__summary[warnings.c:168] 7# overlayed-entries: 0x
15:20:31.227 wa__summary[warnings.c:168] 8# _test-warning: 1x
+ /devworld/src/fsvs-new/fsvs/src/fsvs -q ci -m 'non-exist, add'
+ echo 'OK, commit stopped on missing entry.'
OK, commit stopped on missing entry.
++ /devworld/src/fsvs-new/fsvs/src/fsvs st
++ grep dir/take_something_different
+ [[ n..!         0  ./dir/take_something_different == \n\.\.\!* ]]
+ echo 'OK, status shows missing entry'
OK, status shows missing entry
++ /devworld/src/fsvs-new/fsvs/src/fsvs add dir/take_something_different
++ grep dir/take_something_different

Warning [id=entry-not-found, action=""> Path 'dir' not found in local cache


Warning summary:
   entry-not-found occured 1 time
+ [[ n..!         0  ./dir/take_something_different != \n\.\.\!* ]]
++ /devworld/src/fsvs-new/fsvs/src/fsvs unversion dir/take_something_different
++ grep dir/take_something_different

Warning [id=entry-not-found, action=""> Path 'dir' not found in local cache


Warning summary:
   entry-not-found occured 1 time
+ [[ D...         0  ./dir/take_something_different != \D\.\.\.* ]]
+ /devworld/src/fsvs-new/fsvs/src/fsvs -W entry-not-found=stop unversion dir/take_something_different
+ echo 'OK, entry not here.'
OK, entry not here.
make[1]: Leaving directory `/devworld/src/fsvs-new/fsvs/src/test'

ben


Reply via email to