summaryrefslogtreecommitdiff
path: root/test/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* Better entropy for getRandomBytesTatsuhiro Tsujikawa2022-04-091-1/+2
|
* configure: Use pkg-config to find libs whenever possibleMichał Górny2016-11-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Use pkg-config to find cppunit, libxml2 and expat. All those libraries provide pkg-config files, and in all of those cases the pkg-config macro is superior to the custom macros used currently. The advantages of pkg-config files include: - Explicit static linking support via --static. Currently, e.g. 'xml2-config --libs' prints all libraries needed for static linking when doing dynamic linking unnecessary, resulting in unnecessary direct deps. - Better cross-build support. You don't have to build the additional *-config tools for target. - Better multilib support. Per-ABI pkgconfig directories are commonly supported while packages usually fail to look for per-CHOST *-config variants. - Better override support. The current macros allow little to no result overrides, the pkg-config macros let you pass FOO_CFLAGS and FOO_LIBS manually. - Cleaner version checks. The code used in libxml.m4 is really creepy.
* Compile with openssl 1.1.0Tatsuhiro Tsujikawa2016-08-271-1/+1
| | | | | | | | | We moved @CPPUNIT_LIBS@ to later position. This is because in my development environment, it adds linker search directory which contains system default openssl, while I'd like to use my custom openssl installation. This fix is not universal, since other libraries can do the same thing. It is a bit hard to fix this properly because we mix -L and -l in a same variable.
* Don't add C++11 switch flags to CXXFLAGSTatsuhiro Tsujikawa2016-01-301-1/+1
|
* Add --enable-werror option to configure to enable warning flagsTatsuhiro Tsujikawa2016-01-221-1/+1
|
* Don't modify user variables (e.g., CFLAGS, LIBS, etc)Tatsuhiro Tsujikawa2016-01-221-10/+55
|
* Split UtilTest.cc into UtilTest1.cc and UtilTest2.ccTatsuhiro Tsujikawa2015-02-081-1/+2
|
* Internally use HMAC in http authNils Maier2014-05-221-0/+1
| | | | | | To at least get constant time compare. Also fix incorrect parsing of the creds (were incorrectly stripped). Also add unit tests.
* Add util::security (compare, HMAC, PBKDF2)Nils Maier2014-04-191-0/+1
| | | | See #220
* Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, alwaysNils Maier2014-04-171-2/+0
|
* Fix crash when metaurl contains unsupported URI or textTatsuhiro Tsujikawa2013-12-071-1/+2
|
* Refactor DownloadHandlerFactoryTatsuhiro Tsujikawa2013-11-101-1/+1
|
* Remove Triplet, use std::tuple insteadTatsuhiro Tsujikawa2013-06-221-1/+0
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-1/+0
|
* Add aria2api unit testsTatsuhiro Tsujikawa2013-05-151-0/+4
|
* Add initialization function and addUri API function for libaria2Tatsuhiro Tsujikawa2013-04-261-1/+2
|
* Add preliminary libtool files for libaria2Tatsuhiro Tsujikawa2013-04-251-1/+1
|
* Add GZipFileTestTatsuhiro Tsujikawa2013-03-031-1/+2
| | | | For now, it is a copy of BufferedFileTest.cc
* Support for gzipped -i and --save-sessionNils Maier2013-03-021-4/+4
| | | | | | | | | | | Saved sessions may very large, as in hundreds and even thousands of megabyte when dealing with large queues. Add support to save and reload sessions to gzipped files, when libz is available. The session serializer will output gzipped contents when the file ends with .gz, while the input file reader (UriListParser) will accept whatever is thrown at it.
* Support UDP trackerTatsuhiro Tsujikawa2013-02-251-1/+2
| | | | | It shares UDP listening port with IPv4 DHT. At the moment, in order to enable UDP tracker support, enable IPv4 DHT.
* test: Add missing filelist2.txt to EXTRA_DISTTatsuhiro Tsujikawa2013-02-021-0/+1
|
* Faster deletion of RequestGroup and DownloadResult listsTatsuhiro Tsujikawa2012-12-191-1/+2
|
* Use 64 bits random bytes as GIDTatsuhiro Tsujikawa2012-12-161-1/+2
| | | | | | | | | | This change replaces the current 64 bit sequential GID with 64 bits random bytes GID in an attempt to support persistent GID. Internally, the GID is stored as uint64_t. For human representation and RPC interface, GID is represented as 16 bytes hex string. For console readout, 16 bytes are too long, so it is abbreviated to first 6 bytes. When querying GID in RPC calls, user can speicfy the prefix of GID as long as the prefix is shared by more than 1 GID entries.
* Added --disk-cache optionTatsuhiro Tsujikawa2012-12-031-1/+3
| | | | | | | | | | This option enables disk cache. If SIZE is 0, the disk cache is disabled. This feature caches the downloaded data in memory, which grows to at most SIZE bytes. The cache storage is created for aria2 instance and shared by all downloads. The one advantage of the disk cache is reduce the disk seek time because the data is written in larger unit and it is reordered by the offset of the file. If the underlying file is heavily fragmented it is not the case.
* Rewritten URI parserTatsuhiro Tsujikawa2012-10-141-0/+1
|
* Rewritten ExtensionMessageRegistryTatsuhiro Tsujikawa2012-09-261-1/+2
|
* Moved GZipDecoder to testTatsuhiro Tsujikawa2012-09-241-0/+1
|
* Added stream Bencode parserTatsuhiro Tsujikawa2012-07-241-1/+2
|
* Added streaming parser for structured data format.Tatsuhiro Tsujikawa2012-07-101-0/+1
| | | | | Added JSON streaming parser. Note that currently JSON parser ignores frac and exp parts of number construct.
* Rewritten timegm replacement functionTatsuhiro Tsujikawa2012-07-061-0/+4
| | | | The algorithm is based on Python 2.7 calendar.timegm.
* Moved parseAsyncDNSServers() to AsyncNameResolver.cc and refactored.Tatsuhiro Tsujikawa2012-05-161-0/+4
| | | | | The parseAsyncDNSServers() now uses net::getBinAddr() internally, which makes the function simpler. Also added unit test.
* Fixed assertion failure if Chunked encoding along with Content-Length is used.Tatsuhiro Tsujikawa2012-03-051-1/+2
|
* Reserve PeerConnection's buffer capacity according to number of pieces.Tatsuhiro Tsujikawa2012-02-091-1/+2
| | | | | | | If the number of pieces gets bigger, the length of Bitfield message payload exceeds the initial buffer capacity of PeerConnection, which is MAX_PAYLOAD_LEN. We expand buffer as necessary so that PeerConnection can receive the Bitfield message.
* Proxy URI is now constructed in getProxyUri().Tatsuhiro Tsujikawa2011-11-131-1/+2
| | | | | | | | | | The previous implementation constructs proxy URI in OptionHandler but it cannot handle with the situation when user, password and proxy URI is given various order. Now we just set rules: username set in --*-proxy-user overrides username in --*-proxy option, no matter in any order username, password and proxy URI are parsed. Likewise, password set in --*--proxy-passwd overrides password in --*-proxy option.
* Use XmlParser for XML-RPC.Tatsuhiro Tsujikawa2011-11-111-3/+3
|
* Rewritten parametered URI handling routine.Tatsuhiro Tsujikawa2011-11-061-4/+2
|
* Removed IntSequence and Sequence<T>Tatsuhiro Tsujikawa2011-10-301-1/+0
|
* Added SegList<T>, replacement of Sequence<T>Tatsuhiro Tsujikawa2011-10-291-1/+2
|
* Added PieceStorage::onDownloadIncomplete() virtual function.Tatsuhiro Tsujikawa2011-08-241-1/+2
| | | | | | In DefaultPieceStorage::onDownloadIncomplete(), we call StreamPieceSelector::onBitfieldInit(). Added GeomStreamPieceSelectorTest.
* Added fopen/fread/fwrite/fgets wrapper class.Tatsuhiro Tsujikawa2011-08-061-1/+2
|
* Replaced InOrder with Inorder.Tatsuhiro Tsujikawa2011-06-111-2/+2
|
* Added missing base_uri.xml to EXTRA_DISTTatsuhiro Tsujikawa2011-05-161-1/+2
|
* Renamed classes in abstract layer of RPC service from XmlRpc* to Rpc*.Tatsuhiro Tsujikawa2011-03-141-3/+3
| | | | | Now JSON-RPC is available by default regardless of XML library. XML-RPC becomes available when XML library is available.
* Added XmlRpcResponseTest. Set null as id if id is not sent.Tatsuhiro Tsujikawa2011-03-141-1/+2
| | | | | Removed unused XmlRpcResponse::toJsonBatch(). Set default value false to gzip argument of xmlrpc::toJsonBatch().
* Added initial JSON-RPC support.Tatsuhiro Tsujikawa2011-03-091-1/+2
| | | | | JSON-RPC is enabled using --enable-xml-rpc. We are implementing JSON-RPC based on JSON-RPC 2.0 draft spec.
* Replaced HAVE_LIBZ with HAVE_ZLIBTatsuhiro Tsujikawa2011-02-181-2/+2
|
* Use LIBS and CPPFLAGS instead of substituting them individually perTatsuhiro Tsujikawa2011-02-181-13/+3
| | | | library.
* Made `make distcheck' pass.Tatsuhiro Tsujikawa2010-12-021-3/+10
| | | | | | We added 2 macros A2_TEST_DIR and A2_TEST_OUT_DIR to pass tests in `make distcheck`. A2_TEST_DIR refers to test directory. All output files by unit tests are now created under A2_TEST_OUT_DIR directory.
* 2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-201-1/+1
| | | | | | Replaced StringFormat with fmt
* 2010-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-171-1/+1
| | | | | | | | | | | | | | | | Replaced BNode with DHTBucketTreeNode which is 2 times efficient. * src/BNode.cc: Removed * src/BNode.h: Removed * src/DHTBucketTree.cc * src/DHTBucketTree.h * src/DHTRoutingTable.cc * src/DHTRoutingTable.h * src/Makefile.am * test/BNodeTest.cc: Removed * test/DHTBucketTreeTest.cc * test/Makefile.am