3 message testing the long filename support
5 # assume that we are allowed to create 255 bytes filename (not path name).
6 # the _POSIX_PATH_MAX (the maximam length of relative path name) value may
9 # Note that on Cygwin/MinGW, on NTFS, the maximam length of whole path
10 # name (contain the drive letter) is limited probably. it seems to be 259 (?)
16 file=1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 ;;
19 file=123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 ;;
21 (cd test-tmp1 && touch $file)
23 $lha cg test-tmp1-hg.lzh test-tmp1 2> test-stderr
25 # on Cygwin/MinGW, skip this test.
26 # the length of pathname does not amount to the limit of level 0 header.
29 *) test -s test-stderr ;;
32 $lha c0 test-tmp1-h0.lzh test-tmp1 2> test-stderr
34 # on Cygwin/MinGW, skip this test.
35 # the length of pathname does not amount to the limit of level 0 header.
38 *) test -s test-stderr ;;
41 $lha c1 test-tmp1-h1.lzh test-tmp1
43 $lha c2 test-tmp1-h2.lzh test-tmp1
45 $lha xw=test-tmp1-hg test-tmp1-hg.lzh
47 $lha xw=test-tmp1-h0 test-tmp1-h0.lzh
49 $lha xw=test-tmp1-h1 test-tmp1-h1.lzh
51 $lha xw=test-tmp1-h2 test-tmp1-h2.lzh
54 $lha vv test-tmp1-hg.lzh
56 $lha vv test-tmp1-h0.lzh
58 $lha vv test-tmp1-h1.lzh
60 $lha vv test-tmp1-h2.lzh
62 $lha vv test-tmp1-hg.lzh | egrep '\[0\].?$'
64 $lha vv test-tmp1-h0.lzh | egrep '\[0\].?$'
66 $lha vv test-tmp1-h1.lzh | egrep '\[1\].?$'
68 $lha vv test-tmp1-h2.lzh | egrep '\[2\].?$'
70 test -f test-tmp1-hg/$(echo test-tmp1/$file | cut -c-233)
72 test -f test-tmp1-h0/$(echo test-tmp1/$file | cut -c-221)
74 test -f test-tmp1-h1/test-tmp1/$file
76 test -f test-tmp1-h2/test-tmp1/$file
78 # the header size is 0x101 instead of 0x100 on level 2 header
79 file=test-tmp9012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
82 $lha c2 test-tmp4-h2.lzh $file
84 $lha vv test-tmp4-h2.lzh
86 $lha vv test-tmp4-h2.lzh | egrep '\[2\].?$'
88 $lha xw=test-tmp4 test-tmp4-h2.lzh
90 test x"`/bin/ls -l test-tmp4-h2.lzh | awk '{print $5}'`" = x258
92 test -f test-tmp4/$file