summaryrefslogtreecommitdiff
path: root/test/libapt/extracttar_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Allow prefix to be a complete filename for GetTempFileDavid Kalnischkies2020-05-181-8/+16
| | | | | | | | | | | | | Our testcases had their own implementation of GetTempFile with the feature of a temporary file with a choosen suffix. Merging this into GetTempFile lets us drop this duplicate and hence test more our code rather than testing our helpers for test implementation. And then hashsums_test had another implementation… and extracttar wasn't even trying to use a real tempfile… one GetTempFile to rule them all! That also ensures that these tempfiles are created in a temporary directory rather than the current directory which is a nice touch and tries a little harder to clean up those tempfiles.
* Adjust code for missing includes/using std::stringJulian Andres Klode2019-06-121-0/+1
|
* Reformat and sort all includes with clang-formatJulian Andres Klode2017-07-121-1/+1
| | | | | | | | | | | | | This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh.
* stablize gtest testcase environmentDavid Kalnischkies2016-01-261-1/+1
| | | | | | | | | Avoid the dependency on a specific current path for the tar test and ensure that _system is correctly initialized (gcc-6 runs into a segfault otherwise and with it fixed starts to depend on the multi-arch configuration of the running system… not good). Git-Dch: Ignore
* Add test for using ExtractTar on compressed filesJulian Andres Klode2015-08-271-0/+41
Git-Dch: ignore