2 message testing the long filename support
4 # assume that we are allowed to create 255 bytes filename (not path name).
5 # the _POSIX_PATH_MAX (the maximam length of relative path name) value may
8 # Note that on Cygwin/MinGW, on NTFS, the maximam length of whole path
9 # name (contain the drive letter) is limited probably. it seems to be 259 (?)
15 file=1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 ;;
18 file=123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 ;;
20 (cd test-tmp1 && touch $file)
22 $lha cg test-tmp1-hg.lzh test-tmp1 2> test-stderr
24 # on Cygwin/MinGW, skip this test.
25 # the length of pathname does not amount to the limit of level 0 header.
28 *) test -s test-stderr ;;
31 $lha c0 test-tmp1-h0.lzh test-tmp1 2> test-stderr
33 # on Cygwin/MinGW, skip this test.
34 # the length of pathname does not amount to the limit of level 0 header.
37 *) test -s test-stderr ;;
40 $lha c1 test-tmp1-h1.lzh test-tmp1
42 $lha c2 test-tmp1-h2.lzh test-tmp1
44 $lha xw=test-tmp1-hg test-tmp1-hg.lzh
46 $lha xw=test-tmp1-h0 test-tmp1-h0.lzh
48 $lha xw=test-tmp1-h1 test-tmp1-h1.lzh
50 $lha xw=test-tmp1-h2 test-tmp1-h2.lzh
53 $lha vv test-tmp1-hg.lzh
55 $lha vv test-tmp1-h0.lzh
57 $lha vv test-tmp1-h1.lzh
59 $lha vv test-tmp1-h2.lzh
61 $lha vv test-tmp1-hg.lzh | egrep '\[0\].?$'
63 $lha vv test-tmp1-h0.lzh | egrep '\[0\].?$'
65 $lha vv test-tmp1-h1.lzh | egrep '\[1\].?$'
67 $lha vv test-tmp1-h2.lzh | egrep '\[2\].?$'
69 test -f test-tmp1-hg/$(echo test-tmp1/$file | cut -c-233)
71 test -f test-tmp1-h0/$(echo test-tmp1/$file | cut -c-221)
73 test -f test-tmp1-h1/test-tmp1/$file
75 test -f test-tmp1-h2/test-tmp1/$file
77 # the header size is 0x101 instead of 0x100 on level 2 header
78 file=test-tmp9012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
81 $lha c2 test-tmp4-h2.lzh $file
83 $lha vv test-tmp4-h2.lzh
85 $lha vv test-tmp4-h2.lzh | egrep '\[2\].?$'
87 $lha xw=test-tmp4 test-tmp4-h2.lzh
89 test x"`/bin/ls -l test-tmp4-h2.lzh | awk '{print $5}'`" = x258
91 test -f test-tmp4/$file