X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2Fincremental.at;h=0b8a977905b111da6406efd5b0833868ab35393b;hb=9c68d68f185cf2fb84a2bac3f59bffd18d2f2cf1;hp=366c0330d1d69ae943a579d030416fabc9ea3c99;hpb=de7372b23c3da92fbfaea2d1ac592f0b2ba87914;p=debian%2Ftar diff --git a/tests/incremental.at b/tests/incremental.at index 366c0330..0b8a9779 100644 --- a/tests/incremental.at +++ b/tests/incremental.at @@ -1,29 +1,31 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004, 2007 Free Software Foundation, Inc. +# Copyright 2004, 2007, 2013-2014, 2016 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify +# This file is part of GNU tar. + +# GNU tar is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. -# This program is distributed in the hope that it will be useful, +# GNU tar is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program. If not, see . # A directory older than the listed entry was skipped completely. AT_SETUP([incremental]) -AT_KEYWORDS([incremental incr00]) +AT_KEYWORDS([incremental listed incr00]) AT_TAR_CHECK([ +AT_CHECK_TIMESTAMP + mkdir structure echo x >structure/file @@ -35,11 +37,11 @@ ls -l structure/file >/dev/null # If the time of an initial backup and the creation time of a file contained # in that backup are the same, the file will be backed up again when an # incremental backup is done, because the incremental backup backs up -# files created `on or after' the initial backup time. Without the sleep +# files created "on or after" the initial backup time. Without the sleep # command, behaviour of tar becomes variable, depending whether the system # clock ticked over to the next second between creating the file and # backing it up. -sleep 2 +sleep 1 tar cf archive --listed=list structure tar cfv archive --listed=list structure