<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libevdev.git/test/test-libevdev-init.c, branch libevdev-1.12.0</title>
<subtitle>gitlab.freedesktop.org: libevdev/libevdev.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/'/>
<entry>
<title>Change to the (always intended) MIT license</title>
<updated>2021-01-25T03:46:55+00:00</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2020-09-17T05:56:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=60d4f1b2aea14a65a4c2cfed7631fade405b7adf'/>
<id>60d4f1b2aea14a65a4c2cfed7631fade405b7adf</id>
<content type='text'>
Due to what must've been a copy/paste error many years ago, the license text
for libevdev wasn't actually the MIT license. Let's rectify this, it was
always MIT intended anyway.

To make this more obvious and reduce the chance of copy/paste mistakes, use
the SPDX license identifier in the various source files. The two installed
public header files have the full license text.

All contributors with copyrightable contributions have ACKed the license
change to MIT, either in the MR directly [1] or privately in reply to an
email.

[1] https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/69

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
Acked-by: Alexander Dahl &lt;ada@thorsis.com&gt;
Acked-by: Andreas Pokorny &lt;andreas.pokorny@canonical.com&gt;
Acked-by: Armin K &lt;krejzi@email.com&gt;
Acked-by: Benjamin Tissoires &lt;btissoir@redhat.com&gt;
Acked-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Acked-by: Deepa Dinamani &lt;deepa.kernel@gmail.com&gt;
Acked-by: Emmanuele Bassi &lt;ebassi@gnome.org&gt;
Acked-by: Gaetan Nadon &lt;memsize@videotron.ca&gt;
Acked-by: George Thomas &lt;georgefsthomas@gmail.com&gt;
Acked-by: Michael Forney &lt;mforney@mforney.org&gt;
Acked-by: Nayan Deshmukh &lt;nayan26deshmukh@gmail.com&gt;
Acked-by: Niclas Zeising &lt;zeising@daemonic.se&gt;
Acked-by: Owen W. Taylor &lt;otaylor@fishsoup.net&gt;
Acked-by: Peter Seiderer &lt;ps.report@gmx.net&gt;
Acked-by: Ran Benita &lt;ran234@gmail.com&gt;
Acked-by: Rosen Penev &lt;rosenp@gmail.com&gt;
Acked-by: Scott Jann &lt;sjann@knight-rider.org&gt;
Acked-by: Thilo Schulz &lt;thilo@tjps.eu&gt;
Acked-by: polyphemus &lt;rolfmorel@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Due to what must've been a copy/paste error many years ago, the license text
for libevdev wasn't actually the MIT license. Let's rectify this, it was
always MIT intended anyway.

To make this more obvious and reduce the chance of copy/paste mistakes, use
the SPDX license identifier in the various source files. The two installed
public header files have the full license text.

All contributors with copyrightable contributions have ACKed the license
change to MIT, either in the MR directly [1] or privately in reply to an
email.

[1] https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/69

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
Acked-by: Alexander Dahl &lt;ada@thorsis.com&gt;
Acked-by: Andreas Pokorny &lt;andreas.pokorny@canonical.com&gt;
Acked-by: Armin K &lt;krejzi@email.com&gt;
Acked-by: Benjamin Tissoires &lt;btissoir@redhat.com&gt;
Acked-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Acked-by: Deepa Dinamani &lt;deepa.kernel@gmail.com&gt;
Acked-by: Emmanuele Bassi &lt;ebassi@gnome.org&gt;
Acked-by: Gaetan Nadon &lt;memsize@videotron.ca&gt;
Acked-by: George Thomas &lt;georgefsthomas@gmail.com&gt;
Acked-by: Michael Forney &lt;mforney@mforney.org&gt;
Acked-by: Nayan Deshmukh &lt;nayan26deshmukh@gmail.com&gt;
Acked-by: Niclas Zeising &lt;zeising@daemonic.se&gt;
Acked-by: Owen W. Taylor &lt;otaylor@fishsoup.net&gt;
Acked-by: Peter Seiderer &lt;ps.report@gmx.net&gt;
Acked-by: Ran Benita &lt;ran234@gmail.com&gt;
Acked-by: Rosen Penev &lt;rosenp@gmail.com&gt;
Acked-by: Scott Jann &lt;sjann@knight-rider.org&gt;
Acked-by: Thilo Schulz &lt;thilo@tjps.eu&gt;
Acked-by: polyphemus &lt;rolfmorel@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Use CLOCK_MONOTONIC_FAST on FreeBSD</title>
<updated>2020-08-14T15:50:56+00:00</updated>
<author>
<name>Niclas Zeising</name>
<email>zeising@daemonic.se</email>
</author>
<published>2020-08-10T21:16:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=800946a6733f19e430fa87c3b30628149114d649'/>
<id>800946a6733f19e430fa87c3b30628149114d649</id>
<content type='text'>
FreeBSD does not have CLOCK_MONOTONIC_RAW, instead use
CLOCK_MONOTONIC_FAST.  This test checks that libevdev_set_clock_id()
fails when called with CLOCK_MONOTONIC_[RAW,FAST].

Signed-off-by: Niclas Zeising &lt;zeising@daemonic.se&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
FreeBSD does not have CLOCK_MONOTONIC_RAW, instead use
CLOCK_MONOTONIC_FAST.  This test checks that libevdev_set_clock_id()
fails when called with CLOCK_MONOTONIC_[RAW,FAST].

Signed-off-by: Niclas Zeising &lt;zeising@daemonic.se&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>config.h is a local include path</title>
<updated>2020-02-14T02:03:23+00:00</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2020-02-14T00:13:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=4c8a7a265d9e3f134329b2b79a754a682e60e147'/>
<id>4c8a7a265d9e3f134329b2b79a754a682e60e147</id>
<content type='text'>
Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>test: split the tests into one test case each</title>
<updated>2020-02-11T10:57:42+00:00</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2020-02-11T10:37:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=1014acedfc9f8889d38467b811d7360914204517'/>
<id>1014acedfc9f8889d38467b811d7360914204517</id>
<content type='text'>
For debugging it's more important to be able to quickly run a single test
rather than grouping them together, we don't have thousands of tests here
anyway. So let's add a macro to put every test func into its own TCase,
allowing for test selection via the environment variable CK_RUN_CASE.

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For debugging it's more important to be able to quickly run a single test
rather than grouping them together, we don't have thousands of tests here
anyway. So let's add a macro to put every test func into its own TCase,
allowing for test selection via the environment variable CK_RUN_CASE.

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>test: sort-of autodetect whether we need root privileges</title>
<updated>2018-06-15T05:01:19+00:00</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2018-06-15T04:51:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=b642eddc31646e40e1211ca56ea93cc20af5e88d'/>
<id>b642eddc31646e40e1211ca56ea93cc20af5e88d</id>
<content type='text'>
It's not really autodetection, we just declare the test suites that need root
privs. But this way we can generically check for it from the main() that we
re-use across tests.

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's not really autodetection, we just declare the test suites that need root
privs. But this way we can generically check for it from the main() that we
re-use across tests.

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>test: automate test suite handling</title>
<updated>2018-06-15T05:00:24+00:00</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2018-06-15T04:36:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=83ce8eb5be4c0674b4728386c55173070ffde528'/>
<id>83ce8eb5be4c0674b4728386c55173070ffde528</id>
<content type='text'>
Move all tests to a special section, then loop through that section
to fetch all test suite. The result is that new tests only need to add the
source files without having to update everything else as well.

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move all tests to a special section, then loop through that section
to fetch all test suite. The result is that new tests only need to add the
source files without having to update everything else as well.

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update struct input_event</title>
<updated>2018-04-12T05:23:22+00:00</updated>
<author>
<name>Deepa Dinamani</name>
<email>deepa.kernel@gmail.com</email>
</author>
<published>2018-01-16T00:21:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=3c6766c86246c1594096b23e769079e639fc75ad'/>
<id>3c6766c86246c1594096b23e769079e639fc75ad</id>
<content type='text'>
The struct input_event is not y2038 safe.
Update the struct according to the kernel patch:
https://lkml.org/lkml/2018/1/6/324

Signed-off-by: Deepa Dinamani &lt;deepa.kernel@gmail.com&gt;
Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The struct input_event is not y2038 safe.
Update the struct according to the kernel patch:
https://lkml.org/lkml/2018/1/6/324

Signed-off-by: Deepa Dinamani &lt;deepa.kernel@gmail.com&gt;
Reviewed-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>When changing the fd, reset our grab state to ungrabbed</title>
<updated>2017-12-13T00:01:58+00:00</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2017-12-12T23:20:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=0637d0237a36828f02ad096a08e644a77ad68541'/>
<id>0637d0237a36828f02ad096a08e644a77ad68541</id>
<content type='text'>
Previously, calling grabbing a device after changing the fd was a no-op
because libevdev's grab state didn't match the fd:

libevdev_grab(LIBEVDEV_GRAB);
  .. fd is grabbed
  .. internal state is 'grabbed'
libevdev_change_fd();
  .. new fd is ungrabbed
  .. internal state is 'grabbed'
libevdev_grab(LIBEVDEV_GRAB);
  .. argument matches internal state and we exit without grabbing the device

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, calling grabbing a device after changing the fd was a no-op
because libevdev's grab state didn't match the fd:

libevdev_grab(LIBEVDEV_GRAB);
  .. fd is grabbed
  .. internal state is 'grabbed'
libevdev_change_fd();
  .. new fd is ungrabbed
  .. internal state is 'grabbed'
libevdev_grab(LIBEVDEV_GRAB);
  .. argument matches internal state and we exit without grabbing the device

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cosmetic: fix a couple of duplicate/missing empty lines</title>
<updated>2015-03-03T22:41:33+00:00</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2015-03-03T22:37:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=4160d94bafd3b658f1c04b90b5a3e4e7b8e3be40'/>
<id>4160d94bafd3b658f1c04b90b5a3e4e7b8e3be40</id>
<content type='text'>
Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>test: add test for clock id setting on an invalid device</title>
<updated>2014-11-17T23:05:14+00:00</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2014-11-17T02:06:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libevdev.git/commit/?id=cc3b81f15a646765f18700b2e2c03fd3341d1a2d'/>
<id>cc3b81f15a646765f18700b2e2c03fd3341d1a2d</id>
<content type='text'>
Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
