2006-02-17 13:35:04 +00:00
|
|
|
TESTS = aria2c
|
|
|
|
check_PROGRAMS = $(TESTS)
|
|
|
|
aria2c_SOURCES = AllTest.cc\
|
2007-12-04 11:12:56 +00:00
|
|
|
Base64Test.cc\
|
2007-11-21 16:14:40 +00:00
|
|
|
SequenceTest.cc\
|
2007-11-07 12:36:33 +00:00
|
|
|
a2functionalTest.cc\
|
2007-11-05 15:13:55 +00:00
|
|
|
FileEntryTest.cc\
|
2007-10-23 16:29:37 +00:00
|
|
|
PieceTest.cc\
|
2007-10-11 16:58:24 +00:00
|
|
|
SegmentTest.cc\
|
|
|
|
GrowSegmentTest.cc\
|
|
|
|
SingleFileAllocationIteratorTest.cc\
|
2007-09-01 16:10:30 +00:00
|
|
|
DefaultBtProgressInfoFileTest.cc\
|
2007-10-11 16:58:24 +00:00
|
|
|
SingleFileDownloadContextTest.cc\
|
2007-08-28 15:46:49 +00:00
|
|
|
RequestGroupTest.cc\
|
2007-08-28 11:51:20 +00:00
|
|
|
PStringBuildVisitorTest.cc\
|
|
|
|
ParameterizedStringParserTest.cc\
|
|
|
|
UtilTest.cc\
|
|
|
|
AlphaNumberDecoratorTest.cc\
|
2007-07-05 15:45:03 +00:00
|
|
|
FileUriListParserTest.cc\
|
|
|
|
StreamUriListParserTest.cc\
|
2007-07-01 10:40:30 +00:00
|
|
|
HttpHeaderProcessorTest.cc\
|
2007-06-10 12:02:09 +00:00
|
|
|
CookieBoxTest.cc\
|
|
|
|
RequestTest.cc\
|
|
|
|
CookieParserTest.cc\
|
|
|
|
HttpRequestTest.cc\
|
|
|
|
CookieBoxFactoryTest.cc\
|
|
|
|
RequestGroupManTest.cc\
|
2007-10-30 12:48:01 +00:00
|
|
|
AuthConfigFactoryTest.cc\
|
2007-06-10 12:02:09 +00:00
|
|
|
NetrcAuthResolverTest.cc\
|
|
|
|
DefaultAuthResolverTest.cc\
|
|
|
|
OptionHandlerTest.cc\
|
|
|
|
SegmentManTest.cc\
|
|
|
|
BitfieldManTest.cc\
|
|
|
|
NetrcTest.cc\
|
|
|
|
SingletonHolderTest.cc\
|
|
|
|
HttpHeaderTest.cc\
|
|
|
|
HttpResponseTest.cc\
|
|
|
|
SharedHandleTest.cc\
|
|
|
|
ChunkedEncodingTest.cc\
|
|
|
|
FileTest.cc\
|
|
|
|
OptionTest.cc\
|
|
|
|
DefaultDiskWriterTest.cc\
|
|
|
|
FeatureConfigTest.cc\
|
|
|
|
SpeedCalcTest.cc\
|
2007-11-14 10:10:38 +00:00
|
|
|
FixedNumberRandomizer.h\
|
|
|
|
MultiDiskAdaptorTest.cc\
|
|
|
|
MultiFileAllocationIteratorTest.cc
|
2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
MessageDigestHelper is introduced in order to simplify the use
of message digest. Removed repeated code.
The message digest algorithm is now specified by string, like
"sha1",
"md5".
* src/messageDigest.{h, cc}
* src/MessageDigestHelper.{h, cc}: New class.
* src/DefaultPieceStorage.cc
* src/DefaultBtContext.{h, cc}
(computeFastSet): New function.
(setInfoHash): Added for unit testing.
(setNumPieces): Added for unit testing.
* src/DefaultBtInteractive.cc
* src/BtPieceMessage.cc
* src/Peer.cc
* src/Checksum.h
* src/message.h
* src/IteratableChecksumValidator.h
* src/ChunkChecksumValidator.{h, cc}: Use
IteratableChecksumValidator
inside it.
* src/SegmentMan.{h, cc}
(checkIntegrity): Removed.
* src/IteratableChunkChecksumValidator.{h, cc}
* src/Util.h
(sha1Sum): Removed.
(simpleMessageDigest): Removed.
(fileChecksum): Removed.
(computeFastSet): Removed.
* src/ShaVisitor.cc
* src/ChunkChecksum.h
* src/DownloadCommand.cc
Removed messageDigest virtual functions.
* src/MultiDiskAdaptor.{h, cc}
* src/DiskAdaptor.h
* src/ByteArrayDiskWriter.h
* src/DiskWriter.h
* src/DiskAdaptorWriter.h
* src/AbstractSingleDiskAdaptor.{h, cc}
* src/AbstractDiskWriter.{h, cc}
Fixed comilation error when message digest is disabled.
* src/MetalinkEntry.{h, cc}
* src/MetalinkRequestInfo.cc
Removed srandom and random.
* src/SimpleRandomizer.h
Added size() virtual function to DiskAdaptor
* src/MultiDiskAdaptor.h
Fixed the bug that causes that files are not opened correctly in
multi-file torrent.
* src/TorrentRequestInfo.cc
* src/MultiDiskAdaptor.cc
Added SHA256 support
* src/messageDigest.cc
* src/Xml2MetalinkProcessor.cc
Show supported message digest algorithms
* src/main.cc
Updated contact info.
* src/main.cc
2007-08-08 14:40:11 +00:00
|
|
|
|
|
|
|
if ENABLE_MESSAGE_DIGEST
|
2007-10-11 16:58:24 +00:00
|
|
|
aria2c_SOURCES += MessageDigestHelperTest.cc\
|
2007-11-12 11:28:16 +00:00
|
|
|
IteratableChunkChecksumValidatorTest.cc\
|
|
|
|
IteratableChecksumValidatorTest.cc
|
2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
MessageDigestHelper is introduced in order to simplify the use
of message digest. Removed repeated code.
The message digest algorithm is now specified by string, like
"sha1",
"md5".
* src/messageDigest.{h, cc}
* src/MessageDigestHelper.{h, cc}: New class.
* src/DefaultPieceStorage.cc
* src/DefaultBtContext.{h, cc}
(computeFastSet): New function.
(setInfoHash): Added for unit testing.
(setNumPieces): Added for unit testing.
* src/DefaultBtInteractive.cc
* src/BtPieceMessage.cc
* src/Peer.cc
* src/Checksum.h
* src/message.h
* src/IteratableChecksumValidator.h
* src/ChunkChecksumValidator.{h, cc}: Use
IteratableChecksumValidator
inside it.
* src/SegmentMan.{h, cc}
(checkIntegrity): Removed.
* src/IteratableChunkChecksumValidator.{h, cc}
* src/Util.h
(sha1Sum): Removed.
(simpleMessageDigest): Removed.
(fileChecksum): Removed.
(computeFastSet): Removed.
* src/ShaVisitor.cc
* src/ChunkChecksum.h
* src/DownloadCommand.cc
Removed messageDigest virtual functions.
* src/MultiDiskAdaptor.{h, cc}
* src/DiskAdaptor.h
* src/ByteArrayDiskWriter.h
* src/DiskWriter.h
* src/DiskAdaptorWriter.h
* src/AbstractSingleDiskAdaptor.{h, cc}
* src/AbstractDiskWriter.{h, cc}
Fixed comilation error when message digest is disabled.
* src/MetalinkEntry.{h, cc}
* src/MetalinkRequestInfo.cc
Removed srandom and random.
* src/SimpleRandomizer.h
Added size() virtual function to DiskAdaptor
* src/MultiDiskAdaptor.h
Fixed the bug that causes that files are not opened correctly in
multi-file torrent.
* src/TorrentRequestInfo.cc
* src/MultiDiskAdaptor.cc
Added SHA256 support
* src/messageDigest.cc
* src/Xml2MetalinkProcessor.cc
Show supported message digest algorithms
* src/main.cc
Updated contact info.
* src/main.cc
2007-08-08 14:40:11 +00:00
|
|
|
endif # ENABLE_MESSAGE_DIGEST
|
|
|
|
|
2007-07-23 14:09:46 +00:00
|
|
|
if ENABLE_BITTORRENT
|
|
|
|
aria2c_SOURCES += BtAllowedFastMessageTest.cc\
|
2007-06-10 12:02:09 +00:00
|
|
|
BtBitfieldMessageTest.cc\
|
|
|
|
BtCancelMessageTest.cc\
|
|
|
|
BtChokeMessageTest.cc\
|
2007-07-23 14:09:46 +00:00
|
|
|
BtHandshakeMessageTest.cc\
|
2007-06-10 12:02:09 +00:00
|
|
|
BtHaveAllMessageTest.cc\
|
|
|
|
BtHaveMessageTest.cc\
|
|
|
|
BtHaveNoneMessageTest.cc\
|
|
|
|
BtInterestedMessageTest.cc\
|
|
|
|
BtKeepAliveMessageTest.cc\
|
|
|
|
BtNotInterestedMessageTest.cc\
|
|
|
|
BtPieceMessageTest.cc\
|
|
|
|
BtPortMessageTest.cc\
|
|
|
|
BtRejectMessageTest.cc\
|
|
|
|
BtRequestMessageTest.cc\
|
|
|
|
BtSuggestPieceMessageTest.cc\
|
|
|
|
BtUnchokeMessageTest.cc\
|
2007-11-14 10:10:38 +00:00
|
|
|
DefaultPieceStorageTest.cc\
|
2007-07-23 14:09:46 +00:00
|
|
|
DefaultBtAnnounceTest.cc\
|
|
|
|
DefaultBtContextTest.cc\
|
|
|
|
DefaultBtMessageDispatcherTest.cc\
|
|
|
|
DefaultBtRequestFactoryTest.cc\
|
|
|
|
MockBtMessage.h\
|
2007-06-10 12:02:09 +00:00
|
|
|
MockBtMessageDispatcher.h\
|
|
|
|
MockBtMessageFactory.h\
|
2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
MessageDigestHelper is introduced in order to simplify the use
of message digest. Removed repeated code.
The message digest algorithm is now specified by string, like
"sha1",
"md5".
* src/messageDigest.{h, cc}
* src/MessageDigestHelper.{h, cc}: New class.
* src/DefaultPieceStorage.cc
* src/DefaultBtContext.{h, cc}
(computeFastSet): New function.
(setInfoHash): Added for unit testing.
(setNumPieces): Added for unit testing.
* src/DefaultBtInteractive.cc
* src/BtPieceMessage.cc
* src/Peer.cc
* src/Checksum.h
* src/message.h
* src/IteratableChecksumValidator.h
* src/ChunkChecksumValidator.{h, cc}: Use
IteratableChecksumValidator
inside it.
* src/SegmentMan.{h, cc}
(checkIntegrity): Removed.
* src/IteratableChunkChecksumValidator.{h, cc}
* src/Util.h
(sha1Sum): Removed.
(simpleMessageDigest): Removed.
(fileChecksum): Removed.
(computeFastSet): Removed.
* src/ShaVisitor.cc
* src/ChunkChecksum.h
* src/DownloadCommand.cc
Removed messageDigest virtual functions.
* src/MultiDiskAdaptor.{h, cc}
* src/DiskAdaptor.h
* src/ByteArrayDiskWriter.h
* src/DiskWriter.h
* src/DiskAdaptorWriter.h
* src/AbstractSingleDiskAdaptor.{h, cc}
* src/AbstractDiskWriter.{h, cc}
Fixed comilation error when message digest is disabled.
* src/MetalinkEntry.{h, cc}
* src/MetalinkRequestInfo.cc
Removed srandom and random.
* src/SimpleRandomizer.h
Added size() virtual function to DiskAdaptor
* src/MultiDiskAdaptor.h
Fixed the bug that causes that files are not opened correctly in
multi-file torrent.
* src/TorrentRequestInfo.cc
* src/MultiDiskAdaptor.cc
Added SHA256 support
* src/messageDigest.cc
* src/Xml2MetalinkProcessor.cc
Show supported message digest algorithms
* src/main.cc
Updated contact info.
* src/main.cc
2007-08-08 14:40:11 +00:00
|
|
|
ShaVisitorTest.cc\
|
|
|
|
DefaultPeerListProcessorTest.cc\
|
|
|
|
AnnounceListTest.cc\
|
|
|
|
DefaultPeerStorageTest.cc\
|
|
|
|
MockPeerStorage.h\
|
|
|
|
DataTest.cc\
|
|
|
|
DictionaryTest.cc\
|
|
|
|
ListTest.cc\
|
|
|
|
MetaFileUtilTest.cc\
|
|
|
|
ByteArrayDiskWriterTest.cc\
|
|
|
|
PeerTest.cc\
|
|
|
|
PeerMessageUtilTest.cc\
|
|
|
|
ShareRatioSeedCriteriaTest.cc\
|
2007-10-11 16:58:24 +00:00
|
|
|
BtRegistryTest.cc\
|
|
|
|
BtDependencyTest.cc\
|
|
|
|
BtPostDownloadHandlerTest.cc\
|
2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Rewritten to add content-type support.
* src/DownloadHandler.{h, cc}
* src/BtPostDownloadHandler.{h, cc}
* test/BtPostDownloadHandlerTest.cc
* src/MetalinkPostDownloadHandler.{h, cc}
* test/MetalinkPostDownloadHandlerTest.cc
* src/PostDownloadHandler.{h, cc}
* src/DownloadHandlerConstants.{h, cc}
* src/RequestGroup.cc
* src/HttpResponseCommand.cc
* src/FtpNegotiationCommand.cc
* src/SingleFileDownloadContext.{h, cc}
* src/RequestGroup.h
* src/RequestGroupCriteria.h
* src/ContentTypeRequestGroupCriteria.h
Added 'mem' option value for --follow-metalink,
--follow-torrent.
If it is give, metalink/torrent file is not written to the disk,
but
just is kept in memory. Parsing is occurred on memory.
* src/MetalinkHelper.{h, cc}
* src/MetalinkProcessor.h
* src/Xml2MetalinkProcessor.{h, cc}
* test/Xml2MetalinkProcessorTest.cc
* src/DownloadHandlerFactory.{h, cc}
* test/DownloadHandlerFactoryTest.cc
* src/PreDownloadHandler.{h, cc}
* src/OptionHandlerFactory.cc
* src/DefaultBtContext.{h, cc}
* test/DefaultBtContextTest.cc
* src/version_usage.cc
* src/Metalink2RequestGroup.{h, cc}
* src/RequestGroup.{h, cc}
* src/a2functional.h
* test/a2functionalTest.cc
* src/MemoryBufferPreDownloadHandler.{h, cc}
* src/OptionHandlerImpl.h
* src/prefs.h
* src/Util.{h, cc}
* test/UtilTest.cc
Keep DownloadResult rather than RequestGroup after downloads to
reduce
memory usage.
* src/RequestGroupMan.{h, cc}
* src/DownloadEngine.cc
* src/BtDependency.{h, cc}: Changed the type of dependee from
WeakHandle to SharedHandle because WeakHandle could be null.
* src/RequestGroup.{h, cc}
* src/DownloadEngineFactory.cc
* src/DownloadResult.h
Set totalLength after download finished
* src/UnknownLengthPieceStorage.{h, cc}
Keep torrent file specified in metalink in memory.
* src/Metalink2RequestGroup.cc
* src/BtDependency.cc
* src/TrueRequestGroupCriteria.h
Fixed the bug: seekg is used where seekp should be used.
* src/ByteArrayDiskWriter.cc
* test/ByteArraydiskWriterTest.cc
2007-11-27 12:27:10 +00:00
|
|
|
DownloadHandlerFactoryTest.cc\
|
2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
MessageDigestHelper is introduced in order to simplify the use
of message digest. Removed repeated code.
The message digest algorithm is now specified by string, like
"sha1",
"md5".
* src/messageDigest.{h, cc}
* src/MessageDigestHelper.{h, cc}: New class.
* src/DefaultPieceStorage.cc
* src/DefaultBtContext.{h, cc}
(computeFastSet): New function.
(setInfoHash): Added for unit testing.
(setNumPieces): Added for unit testing.
* src/DefaultBtInteractive.cc
* src/BtPieceMessage.cc
* src/Peer.cc
* src/Checksum.h
* src/message.h
* src/IteratableChecksumValidator.h
* src/ChunkChecksumValidator.{h, cc}: Use
IteratableChecksumValidator
inside it.
* src/SegmentMan.{h, cc}
(checkIntegrity): Removed.
* src/IteratableChunkChecksumValidator.{h, cc}
* src/Util.h
(sha1Sum): Removed.
(simpleMessageDigest): Removed.
(fileChecksum): Removed.
(computeFastSet): Removed.
* src/ShaVisitor.cc
* src/ChunkChecksum.h
* src/DownloadCommand.cc
Removed messageDigest virtual functions.
* src/MultiDiskAdaptor.{h, cc}
* src/DiskAdaptor.h
* src/ByteArrayDiskWriter.h
* src/DiskWriter.h
* src/DiskAdaptorWriter.h
* src/AbstractSingleDiskAdaptor.{h, cc}
* src/AbstractDiskWriter.{h, cc}
Fixed comilation error when message digest is disabled.
* src/MetalinkEntry.{h, cc}
* src/MetalinkRequestInfo.cc
Removed srandom and random.
* src/SimpleRandomizer.h
Added size() virtual function to DiskAdaptor
* src/MultiDiskAdaptor.h
Fixed the bug that causes that files are not opened correctly in
multi-file torrent.
* src/TorrentRequestInfo.cc
* src/MultiDiskAdaptor.cc
Added SHA256 support
* src/messageDigest.cc
* src/Xml2MetalinkProcessor.cc
Show supported message digest algorithms
* src/main.cc
Updated contact info.
* src/main.cc
2007-08-08 14:40:11 +00:00
|
|
|
TimeSeedCriteriaTest.cc
|
2007-07-23 14:09:46 +00:00
|
|
|
endif # ENABLE_BITTORRENT
|
|
|
|
|
|
|
|
if ENABLE_METALINK
|
|
|
|
aria2c_SOURCES += MetalinkerTest.cc\
|
|
|
|
MetalinkEntryTest.cc\
|
2007-10-11 16:58:24 +00:00
|
|
|
Metalink2RequestGroupTest.cc\
|
2007-11-03 12:03:53 +00:00
|
|
|
MetalinkPostDownloadHandlerTest.cc\
|
2007-12-04 11:12:56 +00:00
|
|
|
MetalinkHelperTest.cc\
|
|
|
|
MetalinkParserControllerTest.cc\
|
2007-12-14 00:46:32 +00:00
|
|
|
MetalinkProcessorTest.cc
|
2007-07-23 14:09:46 +00:00
|
|
|
endif # ENABLE_METALINK
|
|
|
|
|
2006-04-06 12:52:16 +00:00
|
|
|
#aria2c_CXXFLAGS = ${CPPUNIT_CFLAGS} -I../src -I../lib -Wall -D_FILE_OFFSET_BITS=64
|
|
|
|
#aria2c_LDFLAGS = ${CPPUNIT_LIBS}
|
|
|
|
|
|
|
|
aria2c_LDADD = ../src/libaria2c.a\
|
2007-07-23 14:09:46 +00:00
|
|
|
@LIBINTL@ @LIBGNUTLS_LIBS@\
|
|
|
|
@LIBGCRYPT_LIBS@ @OPENSSL_LIBS@ @XML_LIBS@ @LIBARES_LIBS@\
|
|
|
|
@LIBCARES_LIBS@ @WINSOCK_LIBS@\
|
2007-12-14 00:46:32 +00:00
|
|
|
${CPPUNIT_LIBS} -lexpat
|
2006-04-06 12:52:16 +00:00
|
|
|
AM_CPPFLAGS = -Wall\
|
|
|
|
${CPPUNIT_CFLAGS}\
|
|
|
|
-I ../src\
|
|
|
|
-I../lib -I../intl -I$(top_srcdir)/intl\
|
2006-07-03 14:19:23 +00:00
|
|
|
@LIBGNUTLS_CFLAGS@ @LIBGCRYPT_CFLAGS@ @OPENSSL_CFLAGS@ @XML_CPPFLAGS@\
|
2006-10-20 13:20:50 +00:00
|
|
|
@LIBARES_CPPFLAGS@ @LIBCARES_CPPFLAGS@\
|
2006-04-06 12:52:16 +00:00
|
|
|
-D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"$(localedir)\" @DEFS@
|