1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00
Commit Graph

67 Commits

Author SHA1 Message Date
bi4k8
df16eeabf6
gradient: initialize alpha when converting from rgb (#1491)
this fixes tests that ended up comparing zero alpha to an unitialized alpha value

also improve reporting so that failing color comparison tests will print the color in hex

Co-authored-by: bi4k8 <bi4k8@github>
2023-04-05 09:07:32 -04:00
bi4k8
30eda7e5d0
colours: parse 3-digit colour specifications again (#1480)
Co-authored-by: bi4k8 <bi4k8@github>
2023-03-31 12:52:37 -04:00
bi4k8
566fbe7187
Fix and test graph parsing (#1447)
* specials: comment all parser cases

* specials: scan_graph: early-return if args is null

* specials: fix logic in scan_graph

* tests: add scan_graph parsing test

* specials: separate command parsing from graph parsing

this simplifies the implementation of graph parsing and makes it less ambiguous to parse graphs in contexts where commands are not expected

* specials: tweak comments in scan_graph

* tests: update for scan_command separation

---------

Co-authored-by: bi4k8 <bi4k8@github>
2023-03-05 19:25:56 -05:00
Brenden Matthews
1296ab8517 Fix these colour tests, refactor gcov script. 2023-02-25 14:22:43 -05:00
Brenden Matthews
de3bd0c2eb Add some colour tests. 2023-02-24 19:41:02 -05:00
bi4k8
5e98c49c4c
use new Colour type for specials and gradients (#1418)
* gradient, colours: use 24-bit colour depth internally on Wayland

our Colour type assumes this anyway; lower colour depth should be handled by display backends

* core: restore gradient color computation

this was mistakenly disabled when moving to a unified Colour representation

* core, gradient: use Colour type

* tests: gradient: always test hsv/hcl

colour computations no longer depend on the display backends we compile with, so these can be tested unconditionally now

* gradients, specials: use Color type

this makes specials now accept color names as well as hex codes, and removes all notions of color depth from gradient calculations

---------

Co-authored-by: bi4k8 <bi4k8@github>
2023-02-24 08:13:19 -05:00
Brenden Matthews
e6643508f0
Put the code coverage stuff behind a build flag. 2022-12-26 11:46:29 -05:00
Brenden Matthews
b06f658ebf
Run clang-format. 2022-10-13 14:44:26 -05:00
Caio Freitas de Oliveira
43a10434ae remove include 2022-10-12 21:35:35 -04:00
Caio Freitas de Oliveira
8a64e4134e add special case for X11 tests 2022-10-12 21:35:35 -04:00
Caio Freitas de Oliveira
48b7271c0d use shift for masks; fix tests for 16-bit color depth 2022-10-12 21:35:35 -04:00
Caio Freitas de Oliveira
e7ac782a3c PR changes; fix saturation calculation (scale before dividing) 2022-10-12 21:35:35 -04:00
Caio Freitas de Oliveira
ac7887ad09 refactor gradients to use config value instead of hard-coded option 2022-10-12 21:35:35 -04:00
Caio Freitas de Oliveira
938526755c restore tests 2022-10-12 21:35:35 -04:00
Caio Freitas de Oliveira
033508a93e use clang-format 2022-10-12 21:35:35 -04:00
Caio Freitas de Oliveira
3261ec4a69 use LCh color space (Rec.2020 for luma) 2022-10-12 21:35:35 -04:00
Brenden Matthews
5d02762903
Comment out rsvg_handle_get_intrinsic_size_in_pixels for now. 2022-09-10 11:57:16 -05:00
Brenden Matthews
da2ddb00ed Partially revert change from c352069b31.
It's not quite clear to me what the intent was here, but I don't believe
this change was correct. We shouldn't block on callbacks within the main
loop.

This fixes #901.
2021-04-25 09:00:29 -05:00
Brenden Matthews
d3527e1ed9 Add archlinux & alpine builds. 2021-03-03 15:39:02 -05:00
Brenden Matthews
3c43c4c7fe Refactor hsv code. 2021-03-03 12:19:20 -05:00
Brenden Matthews
783ebc269c
Update gcov wrapper to use latest llvm. 2021-02-28 17:00:33 -06:00
Brenden Matthews
22eccf7cb4
Make sure llvm-profdata is installed. 2021-02-28 15:38:41 -06:00
Brenden Matthews
fb990459e2
Ok ok, but lcov back. 2021-02-28 15:01:28 -06:00
Brenden Matthews
954edef9ef
Simplify clang coverage logic. 2021-02-28 14:46:17 -06:00
Brenden Matthews
42aa4c107a
Don't need lcov in base image. 2021-02-28 11:15:28 -06:00
Brenden Matthews
a40c89b1ea
Make sure all tools are installed for build. 2021-02-28 11:05:13 -06:00
Brenden Matthews
f0e34dc3fb
Drop Fedora 29. 2021-02-27 10:43:41 -06:00
Brenden Matthews
ebc6dbbe00
RIP CentOS. 2021-02-27 10:24:09 -06:00
Brenden Matthews
308f2cb8ea
Update copyright, authors. 2021-02-27 09:14:19 -06:00
Brenden Matthews
88fce68a7c
Install build-essential in ubuntu image. 2021-02-05 13:37:16 -06:00
Brenden Matthews
fd1ddc591d
Add back missing wget. 2021-02-05 13:23:12 -06:00
Brenden Matthews
2ff2d33ef3
Drop sccache stuff. 2021-02-05 12:49:21 -06:00
Brenden Matthews
89e3b05fb4
Drop clang 8, gcc 5 & 6 on ubuntu. 2021-02-05 12:43:45 -06:00
Brenden Matthews
7c7984a3bb
Drop clang-7 w/ ubuntu. 2021-02-05 12:35:07 -06:00
Brenden Matthews
d05c9499b5
Retire CentOS 6. 2021-02-05 12:24:35 -06:00
Brenden Matthews
68868f4cc0
Run clang-format. 2021-02-03 18:38:41 -06:00
Brenden Matthews
2f8bfbd807
Switch PPA for clang. 2021-02-03 18:31:21 -06:00
Brenden Matthews
90a3e679f1
Bump ubuntu base image to focal. 2021-02-03 18:29:33 -06:00
Brenden Matthews
9adaba449a
Run clang-format. 2021-02-01 17:30:17 -06:00
Brenden Matthews
e4fad17dc0
Apply clang-format. 2021-01-23 19:47:57 -06:00
Brenden Matthews
a3bc6a4ce6
Add recent fedora dists. 2021-01-23 19:39:59 -06:00
Brenden Matthews
ab0cdac0a6
Add dockerfiles for build matrix. 2021-01-23 18:53:24 -06:00
Brenden Matthews
283129e283
Apply clang-format. 2021-01-23 18:19:04 -06:00
isaac
36d685eb88 refactor and unit test 2021-01-23 18:00:53 -06:00
freddii
b62e115830 fixed wrong spelled words 2021-01-23 17:59:07 -06:00
Tomunu
9fe1ceeb32 Add Tests in new Test files (#852) 2019-06-20 14:51:39 -05:00
Travis Yaeger
0ca4a26d3b Remove unused variable
Was failing Test because warnings were being treated as errors.
2019-06-02 13:25:02 -04:00
Travis Yaeger
7c074f5237 Add extern environ for Tests
This seems to be needed only for the OSX builds.
2019-06-02 13:25:02 -04:00
Travis Yaeger
0ad2119bb4 Remove REQUIRE from cpu Test
cpu_barval now has the same behavior as cpu_percentage when trying to 
get info from a non-existent cpu.
2019-06-02 13:25:02 -04:00
Travis Yaeger
e6bb3d666a Add more mem Tests to test-common 2019-06-02 13:25:02 -04:00