add missing test torrent to tarball

This commit is contained in:
arvidn 2019-03-28 00:35:12 +01:00 committed by Arvid Norberg
parent 3a093c5d27
commit 95937b28a7
3 changed files with 14 additions and 5 deletions

View File

@ -14,8 +14,12 @@ chmod a-x docs/*.rst docs/*.htm* src/*.cpp include/libtorrent/*.hpp
./autotool.sh ./autotool.sh
./configure --enable-python-binding --enable-examples=yes --enable-encryption --enable-tests=yes ./configure --enable-python-binding --enable-examples=yes --enable-encryption --enable-tests=yes
make V=1 -j16 check make dist
./configure --enable-python-binding --enable-examples=yes --enable-encryption VERSION=1.2.0
make V=1 -j16 dist
tar xvzf libtorrent-rasterbar-${VERSION}.tar.gz
cd libtorrent-rasterbar-${VERSION}/test
bjam link=static $1

View File

@ -108,6 +108,7 @@ TEST_TORRENTS = \
slash_path3.torrent \ slash_path3.torrent \
string.torrent \ string.torrent \
symlink1.torrent \ symlink1.torrent \
symlink2.torrent \
symlink_zero_size.torrent \ symlink_zero_size.torrent \
unaligned_pieces.torrent \ unaligned_pieces.torrent \
unordered.torrent \ unordered.torrent \
@ -118,6 +119,7 @@ TEST_TORRENTS = \
url_seed_multi.torrent \ url_seed_multi.torrent \
url_seed_multi_space.torrent \ url_seed_multi_space.torrent \
url_seed_multi_space_nolist.torrent \ url_seed_multi_space_nolist.torrent \
url_seed_multi_single_file.torrent \
whitespace_url.torrent whitespace_url.torrent
MUTABLE_TEST_TORRENTS = \ MUTABLE_TEST_TORRENTS = \

View File

@ -45,10 +45,12 @@ def substitute_file(name):
line = ':Version: %d.%d.%d\n' % (version[0], version[1], version[2]) line = ':Version: %d.%d.%d\n' % (version[0], version[1], version[2])
elif 'VERSION = ' in line and name.endswith('Jamfile'): elif 'VERSION = ' in line and name.endswith('Jamfile'):
line = 'VERSION = %d.%d.%d ;\n' % (version[0], version[1], version[2]) line = 'VERSION = %d.%d.%d ;\n' % (version[0], version[1], version[2])
elif 'VERSION=' in line and name.endswith('build_dist.sh'):
line = 'VERSION=%d.%d.%d\n' % (version[0], version[1], version[2])
elif 'version=' in line and name.endswith('setup.py'): elif 'version=' in line and name.endswith('setup.py'):
line = "\tversion = '%d.%d.%d',\n" % (version[0], version[1], version[2]) line = " version='%d.%d.%d',\n" % (version[0], version[1], version[2])
elif "version = '" in line and name.endswith('setup.py'): elif "version = '" in line and name.endswith('setup.py'):
line = "\tversion = '%d.%d.%d',\n" % (version[0], version[1], version[2]) line = " version='%d.%d.%d',\n" % (version[0], version[1], version[2])
elif '"-LT' in line and name.endswith('settings_pack.cpp'): elif '"-LT' in line and name.endswith('settings_pack.cpp'):
line = re.sub('"-LT[0-9A-Za-z]{4}-"', '"-LT%c%c%c%c-"' % v(version), line) line = re.sub('"-LT[0-9A-Za-z]{4}-"', '"-LT%c%c%c%c-"' % v(version), line)
@ -61,6 +63,7 @@ def substitute_file(name):
substitute_file('include/libtorrent/version.hpp') substitute_file('include/libtorrent/version.hpp')
substitute_file('CMakeLists.txt') substitute_file('CMakeLists.txt')
substitute_file('configure.ac') substitute_file('configure.ac')
substitute_file('build_dist.sh')
substitute_file('bindings/python/setup.py') substitute_file('bindings/python/setup.py')
substitute_file('docs/gen_reference_doc.py') substitute_file('docs/gen_reference_doc.py')
substitute_file('src/settings_pack.cpp') substitute_file('src/settings_pack.cpp')