summaryrefslogtreecommitdiff
path: root/test/libapt/install_progress_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* build: test: Silence warnings in GTest codeJulian Andres Klode2024-04-201-1/+1
| | | | | GTest has a lot of broken things with signed vs unsigned, and double integer promotions, let's silence them.
* apt: Use unicode install progress bar on UTF-8 localesJulian Andres Klode2024-04-131-0/+20
| | | | | This produces a much more appealing progress bar and it can even show parts of the progress being done.
* Prevent GTest from flooding us with compiler warningsDavid Kalnischkies2018-05-041-1/+1
| | | | | | | | | | | | | | GTest has a bunch of undefined macros which causes the compiler to spit out warnings for each one on each test file. There isn't much we can do, so we just disable the warning for the testcases. Other warnings like sign-promo and sign-compare we can avoid by being more explicit about our expected integer constants being unsigned. As we are just changing testcases, there is no user visible change which would deserve to be noted in the changelog. Gbp-Dch: Ignore Reported-By: gcc-8
* Work around float rounding change in gcc 7 on i386Julian Andres Klode2017-08-121-1/+1
| | | | This caused a build failure in the test suite.
* don't perform int<float in progress bar drawingDavid Kalnischkies2016-08-121-1/+6
| | | | | | | | Comparing floating numbers is always fun and in this instance a 9 < 9.0 is "somehow" true on hurd-i386 letting the tests fail by reporting that too much progress achieved. A bit mysterious, but with some rework we can use code which avoids dealing with the floats in this way entirely and make our testcases happy.
* use Google C++ Testing Framework for libapt testsDavid Kalnischkies2014-04-161-18/+8
| | | | | | | | | | | | My commit 45df0ad2 from 26. Nov 2009 had a little remark: "The commit also includes a very very simple testapp." This was never intended to be permanent, but as usually… The commit adds the needed make magic to compile gtest statically as it is required and links it against a small runner. All previous testcase binaries are reimplemented in gtest and combined in this runner. While most code is a 1:1 translation some had to be rewritten like compareversion_test.cc, but the coverage remains the same.
* Add progressbar to "Dpkg::Progress-Fancy"Michael Vogt2014-03-271-0/+30
A text progressbar is now displayed in the Dpkg::Progress-Fancy mode. It can be turned off via the apt option Dpkg::Progress-Fancy::Progress-Bar=false