File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / rsync / testsuite / crtimes.test
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:32:36 2021 UTC (3 years, 3 months ago) by misho
Branches: rsync, MAIN
CVS tags: v3_2_3, HEAD
rsync 3.2.3

    1: #! /bin/sh
    2: 
    3: # Test rsync copying create times
    4: 
    5: . "$suitedir/rsync.fns"
    6: 
    7: $RSYNC --version | grep "[, ] crtimes" >/dev/null || test_skipped "Rsync is configured without crtimes support"
    8: 
    9: # Setting an older time via touch sets the create time to the mtime.
   10: # Setting it to a newer time affects just the mtime.
   11: 
   12: mkdir "$fromdir"
   13: echo hiho "$fromdir/foo"
   14: 
   15: touch -t 200101011111.11 "$fromdir"
   16: touch -t 200202022222.22 "$fromdir"
   17: 
   18: touch -t 200111111111.11 "$fromdir/foo"
   19: touch -t 200212122222.22 "$fromdir/foo"
   20: 
   21: TLS_ARGS=--crtimes
   22: 
   23: checkit "$RSYNC -rtgvvv --crtimes \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
   24: 
   25: # The script would have aborted on error, so getting here means we've won.
   26: exit 0

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>