1363 Commits

Author SHA1 Message Date
Benedikt Heine
b10bb292c6 Simplify DBus notification assembly 2018-12-29 14:31:31 +01:00
Benedikt Heine
a8faea725d wait longer for DBus in tests
While running under valgrind, it may take over 30 cycles in the loop to
wait for a running GTestDBus instance. So we have to increase the
waiting time.

Waiting a whole second will change the signal/noise ratio and will only
fail, if there's really a problem with the GTestDBus usage.

And as we're sleeping 500us in every loop, we usually get a super fast
response, too.
2018-12-29 14:31:31 +01:00
Benedikt Heine
314d982bf4 Add capability tests for DBus 2018-12-29 14:31:31 +01:00
Benedikt Heine
3598aaf3e2 Add initial dbus tests 2018-12-29 14:31:29 +01:00
Benedikt Heine
52885ca6ad Use a hashtable for notification actions
As g_strv_contains is only available in GLib >= 2.44, we have to bump
the GLib requirements and the CI distros, too.
2018-12-29 14:30:55 +01:00
Benedikt Heine
a359b74901
Merge pull request #555 from anbenson/master
Add tests for extract_urls
2018-12-29 13:54:09 +01:00
Benedikt Heine
f4b8fff89d Simplify pointer test cases 2018-12-29 13:50:35 +01:00
Benedikt Heine
d40b42c77d Add additional tests for extract_urls 2018-12-27 20:59:48 +01:00
Benedikt Heine
db350883cc Improve extract_urls 2018-12-27 20:59:47 +01:00
Andrew Benson
65bcce652c Add tests for extract_urls 2018-12-27 20:59:19 +01:00
Benedikt Heine
c562c6441a Add CircleCI status badge 2018-12-10 04:21:46 +01:00
Benedikt Heine
ab56b47d97 Use official CI docker images 2018-12-10 04:19:25 +01:00
Nikos Tsipinakis
fd486d06d5
Merge pull request #567 from bebehei/circleci
CircleCI
2018-12-02 15:37:59 +02:00
Benedikt Heine
90813dde8e Update Fedora version to latest 2018-11-29 10:29:22 +02:00
Benedikt Heine
91adaa0da9 Use clang and GCC simultaneously 2018-11-28 21:22:36 +02:00
Benedikt Heine
3c28432044 Do not use -j for clean
-j introduces race conditions, which lets the find -name ... -delete
commands fail, because those can't find specific files, which got
removed in the meantime.
2018-11-28 21:22:36 +02:00
Benedikt Heine
394393fb6e Let's test CircleCI 2018-11-28 21:22:36 +02:00
Nikos Tsipinakis
0a2802af75
Merge pull request #566 from bebehei/notification-colors
Notification colors
2018-11-27 14:36:02 +02:00
Benedikt Heine
ecfe64c4bd Cleanup unused macros 2018-11-26 19:54:21 +01:00
Benedikt Heine
7e81506226 Remove colors field from xctx
The xctx color field is a full duplicate of the settings logic.
Only logic included in xctx color fields, are the frame colors, which
fall back to the global frame setting. So, this required to handle it
directly in settings.c
2018-11-26 19:54:07 +01:00
Benedikt Heine
3e205ff159 Use notification_colors struct in settings 2018-11-26 18:17:00 +01:00
Benedikt Heine
c3cd623f41 Use notification_colors struct for notification colors 2018-11-26 17:31:46 +01:00
Nikos Tsipinakis
f02a0d4b8d
Merge pull request #561 from tsipinakis/bugfix/drop-libdbus
Drop libdbus dependency
2018-11-26 17:03:46 +02:00
Nikos Tsipinakis
baf0ec3e11 Remove dbus build flags
We haven't been using libdbus for a while so there is no use to
linking it with the build.
Unfortunately there is still a dependency on it as we depend on the dbus
package to tell us where to put our service files.
2018-11-26 16:05:50 +02:00
Benedikt Heine
7b1157c5af
Merge pull request #564 from bebehei/testsuite
Misc Testsuite updates
2018-11-26 15:00:45 +01:00
Benedikt Heine
b9b803d0ea The memory leaks should be fixed by librsvg 2018-11-26 12:57:37 +01:00
Benedikt Heine
5284ce01f4 Make notification tests easier 2018-11-26 12:19:17 +01:00
Benedikt Heine
193b1f7202 Test notification maximum length 2018-11-26 12:19:17 +01:00
Benedikt Heine
1b4ca786cd Test notification_format_message 2018-11-26 12:17:50 +01:00
Benedikt Heine
6988a6e04d Add tests for log.c 2018-11-26 12:08:18 +01:00
Benedikt Heine
ec3e47abb5 Skip tests requiring extended precision if not avail
Alpine is running with Musl libc and musl uses extended precision
doubles, while valgrind can't handle extended precision,
2.3 == atof("2.3") won't be true under valgrind.

And therefore the option retrieval methods *_get_double would fail.

Also we have to increase the test verbosity, as `SKIPm` doesn't print
the message when skipping the tests.
See: silentbicycle/greatest#85
2018-11-26 12:07:50 +01:00
Benedikt Heine
22cc3f190d Update greatest.h (1.2.1 -> 1.4.0)
Enables the feature -x to exclude some specific tests.
2018-11-26 10:52:57 +01:00
Benedikt Heine
7ba6ca910f
Merge pull request #551 from bebehei/queues-tests
Queues tests
2018-11-26 10:50:58 +01:00
Benedikt Heine
93f6eb58a3 Remove n->start tests
These aren't used anymore. Any notification which gets moved from
waiting to displayed, will have set the start field with the current
monotonic time.

So testing start == 0 won't ever succeed in
queues_notification_is_finished, as the tested notification is contained
in the displayed queue. So the start field never will be 0.

Also there's no semantics for start being 0 in dunst actually
implemented.
2018-11-24 15:22:18 +01:00
Benedikt Heine
d96a29fed5 Move field definition on top of function (readability) 2018-11-24 15:22:18 +01:00
Benedikt Heine
711b11c92f Merge queue_update and queue_check_timeouts 2018-11-24 15:22:18 +01:00
Benedikt Heine
9878de312b Do not mark the waiting notification as shown
Notifications listed in the waiting queue are never shown
🙈
2018-11-24 15:22:18 +01:00
Benedikt Heine
475d829733 Fix notification seeping when displayed isn't full
Only if the queue is full, dunst should swap the most important
notifications from waiting with the least important notifications from
displayed.
2018-11-24 15:22:18 +01:00
Benedikt Heine
0b7a31b477 Add faulty notification seep test 2018-11-24 15:22:18 +01:00
Benedikt Heine
3e0daf40bf Add tests for xmore layout behavior 2018-11-24 15:22:18 +01:00
Benedikt Heine
24e0e25ec2 Add tests for seeping important notifications 2018-11-24 15:22:18 +01:00
Benedikt Heine
acee260624 Add test for pausing behavior 2018-11-24 15:22:18 +01:00
Benedikt Heine
3fbd1fc589 Add tests for fullscreen behavior 2018-11-24 15:22:18 +01:00
Benedikt Heine
2c1de2dc22 Add tests for checking notifications timing out 2018-11-24 15:22:18 +01:00
Benedikt Heine
e6e0d881eb Test stacking 2018-11-24 15:22:18 +01:00
Benedikt Heine
f1e391673a Add queue history tests 2018-11-24 15:22:18 +01:00
Benedikt Heine
5cf9e51ada Test queue length reporting functions 2018-11-24 15:22:18 +01:00
Benedikt Heine
662b22e5de Test sleep times for get_next_datachange 2018-11-24 15:22:18 +01:00
Benedikt Heine
140278a36f Introduce a status structure 2018-11-24 15:22:18 +01:00
Benedikt Heine
ef08f6aa66 Test notification closing in queues 2018-11-24 15:22:18 +01:00