bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] [GNU tar 1.26] testsuite: 2 3 4 5 6 7 8 9 10 11 12 13 14 1


From: Kevin Brott
Subject: Re: [Bug-tar] [GNU tar 1.26] testsuite: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 30 31 34 36 38 39 40 42 43 44 45 46 47 48 49 51 52 53 54 55 57 58 59 60 61 62 64 65 66 67 68 69 71 72 73 74 79 80 81 82 83 84 85 87 90 91 92
Date: Thu, 18 Aug 2011 09:46:48 -0700


On Thu, Aug 18, 2011 at 00:34, Paul Eggert <address@hidden> wrote:
On 08/16/2011 06:07 PM, Kevin Brott wrote:
> Any chance you could give me an example of where you would suggest this change?

There are three copies of each test in the 'testsuite' file,
and you should change all three copies consistently.

Or, you can run the test by hand, by looking in the appropriate
*.at file and executing its commands one by one.

This is the segment of pipe.at that I tested against ...

mkdir directory
genfile --length 10240 --pattern zeros --file directory/file1
genfile --length 13 --file directory/file2
tar cf archive directory
mv directory orig
cat archive | tar xfv - --warning=no-timestamp | sort
echo "separator"
cmp orig/file1 directory/file1
echo "separator"
cmp orig/file2 directory/file2],

So I cd into tests and ran the following commands:

$ mkdir directory
$ ./genfile --length 10240 --pattern zeros --file directory/file1
$ ./genfile --length 13 --file directory/file2
$ ../src/tar cf archive directory
../src/tar: directory/file1: file changed as we read it
../src/tar: directory/file2: file changed as we read it
$ rm archive
$ truss ../src/tar cf archive directory 2> /var/tmp/truss.1 (attached)
$ mv directory orig
$ cat archive | ../src/tar xfv - --warning=no-timestamp | sort
directory/
directory/file1
directory/file2
$ cmp orig/file1 directory/file1
cmp: EOF on directory/file1
$ cmp orig/file2 directory/file2
cmp: EOF on directory/file2
$ ls -al orig/*
-rw-r--r--    1 brottk   sysadmin      10240 Aug 18 09:34 orig/file1
-rw-r--r--    1 brottk   sysadmin         13 Aug 18 09:34 orig/file2
$ ls -al directory/*
-rw-r--r--    1 brottk   sysadmin          0 Aug 18 09:34 directory/file1
-rw-r--r--    1 brottk   sysadmin          0 Aug 18 09:34 directory/file2
$ ../src/tar tvf archive
drwxr-xr-x brottk/sysadmin   0 2011-08-18 09:34 directory/
-rw-r--r-- brottk/sysadmin   0 2011-08-18 09:34 directory/file1
-rw-r--r-- brottk/sysadmin   0 2011-08-18 09:34 directory/file2

Looks like tar isn't putting anything but zero-byte files into the archives - which of course would make all the tests related to contents fail.

--
# include <stddisclaimer.h>
/* Kevin  Brott <address@hidden> */


Attachment: truss.1
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]