File: README.longnames

package info (click to toggle)
star 1.5a67-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,600 kB
  • ctags: 4,715
  • sloc: ansic: 37,601; sh: 3,198; makefile: 200
file content (57 lines) | stat: -rw-r--r-- 1,447 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
This are shell scripts to create long filenames.
If you like more tests, write me.

A recent version of the files is always on:

	ftp://ftp.berlios.de/pub/star/testscripts/


The file 'mk' creates file names that check the behaviour of
tar close to or at the POSIX filename length limit

run ./mk to create the files.


The file 'mk2' creates files that are bejond the scope of POSIX tar

run ./mk2 to create the files

In all cases to test the behaviour of tar you need to run:

tar cf filename _*
 
to check the POSIX scope and
 
tar cf filename *

to check against all possibilities.

The length of the filenames is computed in a way that will be wrong
if the filename is prepended by './'

In order to help to test and debug tar implementations that have not
been tested to be corect yet, I added a file long.ustar.gz
This file is a 100% POSIX compiliant tar archive of all files created
by ./mk that can be archived by a POSIX compliant tar implementation.

To test your tar implementation against 'star' which could be called a
POSIX reference implementation run:

gzip -d < long.ustar.gz | tar tvf -

Replace tar by the name of the tar implementation that needs to be tested.

If you like to check which files are not handled correctly, get the 
latest star from ftp://ftp.berlios.de/pub/star/alpha/
and after compilation run:

star -tz < long.ustar.gz >L1

Then run:

gzip -d < long.ustar.gz | yourtar tf - > L2

and finally:

diff L1 L2