# Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. # Copyright 2016-2023 Free Software Foundation, Inc. # # 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 of the License, or # (at your option) any later version. # # 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, see . AT_SETUP([update with chdir]) AT_KEYWORDS([update update03 chdir]) # Tar <=1.29 failed to chdir when -u was used with -C # Reported by: Ivan Kalvachev # References: , # http://lists.gnu.org/archive/html/bug-tar/2016-08/msg00003.html AT_TAR_CHECK([ mkdir dir1 mkdir dir2 mkdir dir1/subdir1 dir2/subdir2 genfile --file dir1/subdir1/a genfile --file dir2/subdir2/a echo Create tar -vcf arc.tar -C dir1 subdir1 -C ../dir2 subdir2 genfile --file dir1/subdir1/b genfile --file dir2/subdir2/c echo Update tar -vuf arc.tar -C dir1 subdir1 -C ../dir2 subdir2 ], [0], [Create subdir1/ subdir1/a subdir2/ subdir2/a Update subdir1/b subdir2/c ]) AT_CLEANUP