1<testcase> 2<info> 3<keywords> 4FTP 5FTP-ipv6 6IPv6 7PASV 8LIST 9--interface 10IPv6 11</keywords> 12</info> 13 14# 15# Server-side 16<reply> 17# When doing LIST, we get the default list output hard-coded in the test 18# FTP server 19<datacheck> 20total 20 21drwxr-xr-x 8 98 98 512 Oct 22 13:06 . 22drwxr-xr-x 8 98 98 512 Oct 22 13:06 .. 23drwxr-xr-x 2 98 98 512 May 2 1996 .NeXT 24-r--r--r-- 1 0 1 35 Jul 16 1996 README 25lrwxrwxrwx 1 0 1 7 Dec 9 1999 bin -> usr/bin 26dr-xr-xr-x 2 0 1 512 Oct 1 1997 dev 27drwxrwxrwx 2 98 98 512 May 29 16:04 download.html 28dr-xr-xr-x 2 0 1 512 Nov 30 1995 etc 29drwxrwxrwx 2 98 1 512 Oct 30 14:33 pub 30dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr 31</datacheck> 32</reply> 33 34# 35# Client-side 36<client> 37<features> 38ipv6 39</features> 40<server> 41ftp-ipv6 42</server> 43 <name> 44FTP-IPv6 dir list PASV with localhost --interface 45 </name> 46 <command> 47-g "ftp://%HOST6IP:%FTP6PORT/" --interface ::1 48</command> 49# --interface doesn't accept an address surrounded by [] so %CLIENT6IP is out 50<precheck> 51perl -e "print 'Test requires default test server host address' if ( '%CLIENT6IP' ne '[::1]' );" 52</precheck> 53</client> 54 55# 56# Verify data after the test has been "shot" 57<verify> 58<protocol> 59USER anonymous 60PASS ftp@example.com 61PWD 62EPSV 63TYPE A 64LIST 65QUIT 66</protocol> 67</verify> 68</testcase> 69