aria2-1.35.0/ 0000755 0001750 0001750 00000000000 13546243723 007610 5 0000000 0000000 aria2-1.35.0/test-driver 0000755 0001750 0001750 00000011042 13546240323 011715 0000000 0000000 #! /bin/sh
# test-driver - basic testsuite driver script.
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 2011-2018 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to or send patches to
# .
# Make unconditional expansion of undefined variables an error. This
# helps a lot in preventing typo-related bugs.
set -u
usage_error ()
{
echo "$0: $*" >&2
print_usage >&2
exit 2
}
print_usage ()
{
cat <$log_file 2>&1
estatus=$?
if test $enable_hard_errors = no && test $estatus -eq 99; then
tweaked_estatus=1
else
tweaked_estatus=$estatus
fi
case $tweaked_estatus:$expect_failure in
0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
0:*) col=$grn res=PASS recheck=no gcopy=no;;
77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
*:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
*:*) col=$red res=FAIL recheck=yes gcopy=yes;;
esac
# Report the test outcome and exit status in the logs, so that one can
# know whether the test passed or failed simply by looking at the '.log'
# file, without the need of also peaking into the corresponding '.trs'
# file (automake bug#11814).
echo "$res $test_name (exit status: $estatus)" >>$log_file
# Report outcome to console.
echo "${col}${res}${std}: $test_name"
# Register the test result, and other relevant metadata.
echo ":test-result: $res" > $trs_file
echo ":global-test-result: $res" >> $trs_file
echo ":recheck: $recheck" >> $trs_file
echo ":copy-in-global-log: $gcopy" >> $trs_file
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
aria2-1.35.0/test/ 0000755 0001750 0001750 00000000000 13546243724 010570 5 0000000 0000000 aria2-1.35.0/test/local-metaurl.meta4 0000644 0001750 0001750 00000000437 13546240266 014207 0000000 0000000
README.torrent
http://example.org/README
aria2-1.35.0/test/base_uri.xml 0000644 0001750 0001750 00000000247 13546240266 013024 0000000 0000000
example.ext
aria2-1.35.0/test/metalink4-dosdirtraversal.xml 0000644 0001750 0001750 00000001037 13546240266 016327 0000000 0000000
http://example.com/example.ext
12345
http://example.com/example.torrent
12345
http://example.com/example.torrent
aria2-1.35.0/test/serialize_session.meta4 0000644 0001750 0001750 00000000404 13546240266 015172 0000000 0000000
http://example.org/README
http://example.org/image.iso
aria2-1.35.0/test/metalink4-groupbymetaurl.xml 0000644 0001750 0001750 00000001061 13546240266 016175 0000000 0000000
1000
http://file1p1
http://torrent
2000
http://file2p1
3000
http://file3p1
http://torrent
aria2-1.35.0/test/metalink3-dirtraversal.xml 0000644 0001750 0001750 00000002036 13546240266 015620 0000000 0000000
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffff
fffff
-----END PGP SIGNATURE-----
http://example.org/aria2-0.5.2.tar.bz2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffff
fffff
-----END PGP SIGNATURE-----
http://example.org/aria2-0.5.3.tar.bz2
aria2-1.35.0/test/metalink4.xml 0000644 0001750 0001750 00000002537 13546240266 013127 0000000 0000000
2009-05-15T12:23:23Z
786430
Example
1.0
en
A description of the example file for download.
cbd18db4cc2f85cedef654fccc4a4d8
0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
5bd9f7248df0f3a6a86ab6c95f48787d546efa14
9413ee70957a09d55704123687478e07f18c7b29
44213f9f4d59b557314fadcd233232eebcac8012
0245178074fd042e19b7c3885b360fc21064b30e73f5626c7e3b005d048069c5
487ba2299be7f759d7c7bf6a4ac3a32cee81f1bb9332fc485947e32918864fb2
37290d74ac4d186e3a8e5785d259d2ec04fac91ae28092e7620ec8bc99e830aa
ftp://ftp.example.com/example.ext
http://example.com/example.ext
http://example.com/example.ext.torrent
a signature
aria2-1.35.0/test/utf8.torrent 0000644 0001750 0001750 00000001002 13546240266 013004 0000000 0000000 d8:announce36:http://aria.rednoah.com/announce.php13:announce-listll16:http://tracker1 el15:http://tracker2el15:http://tracker3ee7:privatei1e7:comment17:REDNOAH.COM RULES13:comment.utf-821:This is utf8 comment.13:creation datei1123456789e4:infod5:filesld6:lengthi284e4:pathl5:aria23:src6:aria2ce10:path.utf-8l13:path in utf-8eed6:lengthi100e4:pathl19:aria2-0.2.2.tar.bz2eee4:name10:aria2-test10:name.utf-813:name in utf-812:piece lengthi128e6:pieces60:AAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCee aria2-1.35.0/test/2files.metalink 0000644 0001750 0001750 00000001120 13546240266 013412 0000000 0000000
aria2
http://aria2.sourceforge.net/
The high speed download utility
http://localhost/aria2-5.0.0.tar.bz2
http://localhost/aria2-5.0.0.deb
aria2-1.35.0/test/input_uris.txt 0000644 0001750 0001750 00000000163 13546240266 013450 0000000 0000000 http://alpha/file http://bravo/file http://charlie/file
out=myfile.out
dir=/mydownloads
http://delta/file.iso
aria2-1.35.0/test/url-list-singleFileEndsWithSlash.torrent 0000644 0001750 0001750 00000000544 13546240266 020423 0000000 0000000 d8:url-list22:http://localhost/dist/8:announce36:http://aria.rednoah.com/announce.php13:announce-listll15:http://tracker1el15:http://tracker2el15:http://tracker3ee7:comment17:REDNOAH.COM RULES13:creation datei1123456789e4:infod6:lengthi380e4:name14:aria2@.tar.bz212:piece lengthi128e6:pieces60:AAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCee aria2-1.35.0/test/url-list-singleFile.torrent 0000644 0001750 0001750 00000000560 13546240266 015760 0000000 0000000 d8:url-list35:http://localhost/dist/aria2.tar.bz28:announce36:http://aria.rednoah.com/announce.php13:announce-listll15:http://tracker1el15:http://tracker2el15:http://tracker3ee7:comment17:REDNOAH.COM RULES13:creation datei1123456789e4:infod6:lengthi380e4:name13:aria2.tar.bz212:piece lengthi128e6:pieces60:AAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCee aria2-1.35.0/test/url-list-multiFile.torrent 0000644 0001750 0001750 00000000717 13546240266 015635 0000000 0000000 d8:url-listl22:http://localhost/dist/18:http://mirror/diste8:announce36:http://aria.rednoah.com/announce.php13:announce-listll15:http://tracker1el15:http://tracker2el15:http://tracker3ee7:comment17:REDNOAH.COM RULES13:creation datei1123456789e4:infod5:filesld6:lengthi284e4:pathl6:aria2@4:src@7:aria2c@eed6:lengthi100e4:pathl19:aria2-0.2.2.tar.bz2eee4:name11:aria2-test@12:piece lengthi128e6:pieces60:AAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCee aria2-1.35.0/test/test.xml 0000644 0001750 0001750 00000005713 13546240266 012215 0000000 0000000
aria2
http://aria2.sourceforge.net/
The high speed download utility
0.5.2
en-US
Linux-x86
a96cf3f0266b91d87d5124cf94326422800b627d
fc4d834e89c18c99b2615d902750948c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffff
fffff
-----END PGP SIGNATURE-----
ftp://ftphost/aria2-0.5.2.tar.bz2
http://httphost/aria2-0.5.2.tar.bz2
345689
0.5.1
ja-JP
Linux-m68k
4c255b0ed130f5ea880f0aa061c3da0487e251cc
92296e19c406d77d21bda0bb944eac46
179463a88d79cbf0b1923991708aead914f26142
fecf8bc9a1647505fe16746f94e97a477597dbf3
ftp://ftphost/aria2-0.5.1.tar.bz2
http://httphost/aria2-0.5.1.tar.bz2
ftp://host/file
92296e19c406d77d21bda0bb944eac46
4c255b0ed130f5ea880f0aa061c3da0487e251cc
179463a88d79cbf0b1923991708aead914f26142
fecf8bc9a1647505fe16746f94e97a477597dbf3
179463a88d79cbf0b1923991708aead914f26142
fecf8bc9a1647505fe16746f94e97a477597dbf3
ftp://host/file
http://host/torrent-http.integrated
http://host/torrent-http.integrated.torrent
aria2-1.35.0/test/test.torrent 0000644 0001750 0001750 00000000662 13546240266 013110 0000000 0000000 d8:announce36:http://aria.rednoah.com/announce.php13:announce-listll16:http://tracker1 el15:http://tracker2el15:http://tracker3ee7:privatei1e7:comment17:REDNOAH.COM RULES13:creation datei1123456789e10:created by5:aria24:infod5:filesld6:lengthi284e4:pathl5:aria23:src6:aria2ceed6:lengthi100e4:pathl19:aria2-0.2.2.tar.bz2eee4:name10:aria2-test12:piece lengthi128e6:pieces60:AAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCee aria2-1.35.0/test/single.torrent 0000644 0001750 0001750 00000000371 13546240266 013407 0000000 0000000 d8:announce37:http://aria.rednoah.com/announce.php 7:comment17:REDNOAH.COM RULES13:creation datei1123456789e4:infod4:name19:aria2-0.8.2.tar.bz26:lengthi384e12:piece lengthi128e6:pieces60:AAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCee aria2-1.35.0/test/sample.netrc 0000644 0001750 0001750 00000000476 13546240266 013033 0000000 0000000 #sample netrc file for unit testing
machine host1
login tujikawa
password tujikawapassword
account tujikawaaccount
macdef init
cd /home/aria2 machine
machine host2
login aria2
password aria2password
account aria2account
macdef init
#another comment line
default login anonymous password ARIA2@USER account ARIA2@ACCT aria2-1.35.0/test/nscookietest.txt 0000644 0001750 0001750 00000000424 13546240266 013761 0000000 0000000 # name=this is a omment line;
localhost FALSE / TRUE 2147483647 JSESSIONID 123456789
expired FALSE / FALSE 1000 user me
192.168.0.1 TRUE /cgi-bin FALSE 0 passwd secret
badformat
something FALSE / FALSE 1463304912.5 TAX 1000
.example.org TRUE / FALSE 2147483647.123 novalue
aria2-1.35.0/test/malformed.netrc 0000644 0001750 0001750 00000000071 13546240266 013507 0000000 0000000 machine host2
login aria2
password aria2password
account
aria2-1.35.0/test/load-v0001.aria2 0000644 0001750 0001750 00000000136 13546240266 013111 0000000 0000000 "3DUfw @
aria2-1.35.0/test/load.aria2 0000644 0001750 0001750 00000000136 13546240266 012345 0000000 0000000 "3DUfw @
aria2-1.35.0/test/load-nonBt-v0001.aria2 0000644 0001750 0001750 00000000112 13546240266 014161 0000000 0000000 @
aria2-1.35.0/test/load-nonBt.aria2 0000644 0001750 0001750 00000000136 13546240266 013423 0000000 0000000 "3DUfw @
aria2-1.35.0/test/gzip_decode_test.gz 0000644 0001750 0001750 00000233742 13546240266 014376 0000000 0000000 X&gH