tests/test-inotify-debuginotify.t
branchstable
changeset 21160 564f55b25122
parent 21028 a0f437e2f5a9
parent 21159 024f38f6d5f6
child 21161 ef59019f4771
equal deleted inserted replaced
21028:a0f437e2f5a9 21160:564f55b25122
     1 
       
     2   $ "$TESTDIR/hghave" inotify || exit 80
       
     3   $ hg init
       
     4   $ echo "[extensions]" >> $HGRCPATH
       
     5   $ echo "inotify=" >> $HGRCPATH
       
     6 
       
     7 inserve
       
     8 
       
     9   $ hg inserve -d --pid-file=hg.pid
       
    10   $ cat hg.pid >> "$DAEMON_PIDS"
       
    11 
       
    12 let the daemon finish its stuff
       
    13 
       
    14   $ sleep 1
       
    15 
       
    16 empty
       
    17 
       
    18   $ hg debuginotify
       
    19   directories being watched:
       
    20     /
       
    21     .hg/
       
    22   $ mkdir a
       
    23   $ sleep 1
       
    24 
       
    25 only 'a
       
    26 
       
    27   $ hg debuginotify
       
    28   directories being watched:
       
    29     /
       
    30     .hg/
       
    31     a/
       
    32   $ rmdir a
       
    33   $ sleep 1
       
    34 
       
    35 empty again
       
    36 
       
    37   $ hg debuginotify
       
    38   directories being watched:
       
    39     /
       
    40     .hg/
       
    41   $ "$TESTDIR/killdaemons.py" hg.pid