summaryrefslogtreecommitdiff
path: root/tests/data
AgeCommit message (Collapse)AuthorFilesLines
2015-06-21fix py3 issue with auto .gz decompression and add testMichael Vogt1-0/+0
2015-06-11python/tarfile.cc: LFS: Handle too large fileJulian Andres Klode1-0/+0
Handle both file sizes larger than SIZE_MAX and allocation failures when reading the data of a tarmember. If using the go() function with a callback, pass None as the data parameter for files that are too large. For extractdata, raise a MemoryError if the file too extract is too large. Also check for an existing error first in extractdata, before raising a new one. Test the whole thing on 32-bit platforms with a sample deb that contains a zeroed file that is 5GB large (compressed using xz at level 1 to a few kb).
2015-06-10apt.debfile: Fix splitting of multi-lines Binary fields in dsc filesJulian Andres Klode1-1/+2
In a multi-line field, a comma might be followed by a newline instead of a space. Closes: #751770
2014-03-17Support all compressors for data.tar/control.tar (Closes: #718330)Julian Andres Klode2-0/+0
This makes our support very flexible, and open for future additions of new compression algorithms. debfile_extract_tar() is almost identical to ExtractTarMember() of apt's debDebFile.
2014-02-22tests/data/aptsources/sources.list.testDistribution: Add tangluJulian Andres Klode1-0/+1
2014-01-07tests: Add back test_hashsums from old and updateJulian Andres Klode2-0/+1
These are automatic tests and they still work, so it's pointless not to use them.
2013-10-21aptsources: Correctly parse multiple options (LP: #1103200)Julian Andres Klode1-0/+1
It's still not optimal and we do not support the arch+ and arch- options, but it's a beginning.
2013-10-21apt/debfile.py: Pass strip_multi_arch=False to parse_depends.Julian Andres Klode3-0/+39
Patch by Michael, tests derived from the ones provided by the reporter. I included the test debs without the source package, as for our use case, all needed "source code" is included in the package itself anyway. Reported-By: Francois Gouget <fgouget@free.fr> Closes: #717859 Closes: #717861
2012-06-11add test for utils.get_release_date_from_release_file and update code for ↵Michael Vogt1-0/+492
more py3 friendliness
2012-02-03* tests/test_tagfile.py:Michael Vogt2-0/+15
- add test for apt_pkg.TagFile() both for compressed/uncompressed files
2011-10-21first cut of multiarch support, tests still fail thoughMichael Vogt1-0/+0
2011-08-08tests/test_apt_cache.py: make the test work on PPA buildd chrootsMichael Vogt3-0/+76
2011-07-13* python/arfile.cc:Michael Vogt1-0/+0
- use APT::Configuration::getCompressionTypes() instead of duplicating the supported methods here * tests/test_debfile.py: - add test for raise on unknown data.tar.xxx
2011-04-06aptsources: Parse multi-arch sources.list files correctlyJulian Andres Klode1-1/+4
2011-03-21* python/arfile.cc, apt/debfile.py:Michael Vogt1-0/+0
- add support for .xz archives * tests/test_debfile.py: - add test for xz compression
2010-09-07tests/test_apt_cache.py: improve the tests so that they do not require a ↵Michael Vogt1-0/+0
working network
2010-09-03not not depend on network when running the tests, some style fixes (thanks ↵Michael Vogt1-0/+0
to Jak for the code-review)
2010-09-02merged patch from Samuel Lidén Borell to fix crash if there utf8 Michael Vogt1-0/+0
in the control file (LP: #624290) and add test
2010-08-31tests/test_debfile.py: add test for binary readingMichael Vogt1-0/+0
2010-08-31add content reading testMichael Vogt1-0/+0
2010-08-05tests/test_debfile.py: make it work on amd64, improve failure messageMichael Vogt3-1/+33
2010-08-05tests/data/test_debs/hello_2.5-1.dsc: simplify debs (to avoid universe issues)Michael Vogt1-1/+1
2010-08-05merged from debian-sid, fix crash in Dsc file handlingMichael Vogt2-0/+34
2010-08-05* apt/debfile.py:Michael Vogt1-0/+33
- fix crash in DscFile handling and add regression test
2010-08-05* apt/debfile.py:Michael Vogt1-0/+32
- fix crash in DscFile handling and add regression test
2010-07-12merged from debian-sid, improve test outputMichael Vogt11-0/+53
2010-07-12tests/test_debfile.py: move test_debs into tests/dataMichael Vogt11-0/+77
2010-07-02add test_progress.py testMichael Vogt2-0/+21
2010-03-23* tests/data/aptsources_ports/sources.list:Michael Vogt1-8/+8
- fix ports test-data
2010-03-03* tests/data/aptsources/sources.list.testDistribution:Julian Andres Klode1-2/+2
- change one mirror which is not on the mirror list anymore.
2009-07-17tests: Import more tests from tests/old.Julian Andres Klode3-0/+78
2009-07-17tests: First work on the new testsuite.Julian Andres Klode2-19/+0
The module tests.test_all will run all available tests. Each test placed herein must be using unittest and provide at least 1 test case. It must be prefixed with test_.
2008-09-18* python/apt_pkgmodule.cc:Michael Vogt1-0/+2
add "SelState{Unknown,Install,Hold,DeInstall,Purge}" constants - fix detection of cdrom sources and add test for it
2008-09-18* tests/test_aptsources.py:Michael Vogt1-10/+10
- make the test work again
2006-09-10* added new "MirrorsFile" keyword for the DistInfo TagfileMichael Vogt1-1/+3
* look for mirros as well when matching distros
2006-09-09* UpdateManager/Common/aptsources.py:Michael Vogt1-7/+2
- fix "add_component" to correcly add components even under difficult conditions * tests/data/sources.list.testDistribution: - changed the sources.list to make it sufficiently difficult for aptsources * tests/test_aptsources.py: - added other testcase for add_component()
2006-09-06* tests/test_aptsources.py:Michael Vogt1-0/+14
- added another test for the "Distribution()" class
2006-09-05* tests/test_aptsources.py:Michael Vogt1-0/+6
- added unittest code and implement some basic tests for the aptsources.py code * UpdateManager/Common/aptsources.py: - added __eq__ method to SourceEntry