Zbigniew Jędrzejewski-Szmek
8ccd64789a
tests: mirror is-systemd-running test from systemd
v231
2015-10-28 10:02:53 -04:00
Zbigniew Jędrzejewski-Szmek
644e11f398
build-sys: make sure we use modules from the build dir
...
When running form the top source directory, sometimes modules
from systemd/ and not build/*/systemd/ were loaded.
2015-10-28 09:54:11 -04:00
Zbigniew Jędrzejewski-Szmek
94ee7ed0f9
build-sys: name html build directory after format
...
This way different outputs don't land in the same place.
2015-10-28 09:46:09 -04:00
Zbigniew Jędrzejewski-Szmek
45295d1b59
Bump version to 231
2015-10-27 08:25:15 -04:00
Zbigniew Jędrzejewski-Szmek
8176439058
build-sys: also put pytest.ini in the tarball
...
Without this tests don't seem to run properly with a build dir.
2015-10-27 08:17:58 -04:00
Zbigniew Jędrzejewski-Szmek
8d55a298d9
docs: remove SD_MESSAGE_CONFIG_ERROR from list
...
This list should be auto-generated... Let's remove the
ID that was removed from systemd from here too for now.
2015-10-27 00:26:37 -04:00
Zbigniew Jędrzejewski-Szmek
0576d32ed4
Add NEWS file
2015-10-27 00:13:38 -04:00
Zbigniew Jędrzejewski-Szmek
d31bfc3ba6
build-sys: add utility target to run tests
2015-10-27 00:12:11 -04:00
Zbigniew Jędrzejewski-Szmek
c1c55294f1
build-sys: add utility target to build TAGS
2015-10-27 00:07:18 -04:00
Zbigniew Jędrzejewski-Szmek
f83f19b3bd
Python2 does not have ConnectionError
2015-10-27 00:07:18 -04:00
Zbigniew Jędrzejewski-Szmek
3217d17d0c
build-sys: include tests in installation
...
This also allows tests to be run against he build directory:
$ py.test-2.7 -v build/lib.linux-x86_64-2.7 docs
$ py.test-3.4 -v build/lib.linux-x86_64-3.4 docs
2015-10-27 00:07:18 -04:00
Zbigniew Jędrzejewski-Szmek
a947f32b31
tests: add tests for notify()
2015-10-26 23:38:58 -04:00
Zbigniew Jędrzejewski-Szmek
6baa4b417b
daemon: wrap sd_pid_notify[_with_pids]
...
Closes #8 .
2015-10-26 22:51:27 -04:00
Zbigniew Jędrzejewski-Szmek
035700c2b5
Merge branch 'tests'
2015-10-25 16:51:04 -04:00
Zbigniew Jędrzejewski-Szmek
1d8f5f26df
tests: work around bug in sd_is_mq
...
The fix was committed in v226-362-g0260d1d542.
2015-10-25 16:50:59 -04:00
Zbigniew Jędrzejewski-Szmek
4be2fc75bf
Do not assume specific output from the journal
...
While we *usually* get those messages from udev, in many tests environments
this will not be true, so just do not try to check the output at all.
2015-10-25 12:23:29 -04:00
Zbigniew Jędrzejewski-Szmek
2e3e9748d4
build-sys: replace loop with list comprehension
2015-10-25 11:56:13 -04:00
Jeroen Dekkers
718cefefcd
build-sys: generate systemd/id128-constants.h in setup.py
...
Fixes #7 .
2015-10-25 11:55:48 -04:00
Zbigniew Jędrzejewski-Szmek
173c2a89b2
tests: add simplistic tests for Reader matches
...
It would be nice to run those tests against fake journal files
with the right content to actually test the matches. But those
tests are still useful because they test that the interface
works as expected.
2015-09-16 12:43:06 +02:00
Zbigniew Jędrzejewski-Szmek
4f5aa7b54a
journal: allow numbers in field identifiers
2015-09-17 11:53:45 +02:00
Zbigniew Jędrzejewski-Szmek
bbbc6e8a92
tests: add tests for Reader initialization
2015-09-17 11:53:45 +02:00
Zbigniew Jędrzejewski-Szmek
008aac74d7
journal: reindent to 4 spaces
2015-09-17 11:53:45 +02:00
Zbigniew Jędrzejewski-Szmek
5bf468dca1
tests: start adding tests for JournalHandler
2015-09-17 11:53:45 +02:00
Zbigniew Jędrzejewski-Szmek
5f36e8647a
Normalize some strange indentation
2015-09-08 10:36:16 +02:00
Zbigniew Jędrzejewski-Szmek
085db21e5e
tests: add more tests for socket functions
2015-09-06 18:54:55 +02:00
Zbigniew Jędrzejewski-Szmek
e6b305b41a
tests: adapt to python2.7 output again
2015-09-05 14:23:20 +02:00
Zbigniew Jędrzejewski-Szmek
0cf0cf7e42
tests: daemon.booted
2015-09-05 14:18:32 +02:00
Zbigniew Jędrzejewski-Szmek
2e115f3c4f
tests: daemon.listen_fds
2015-09-05 14:18:23 +02:00
Zbigniew Jędrzejewski-Szmek
c76c5f0ef7
tests: fix test discovery by pytest
2015-09-05 13:47:47 +02:00
Zbigniew Jędrzejewski-Szmek
26a9c1f18a
tests: also collect doctests from rst
...
There isn't much to test now, but it doesn't hurt to enable.
2015-09-05 13:33:40 +02:00
Zbigniew Jędrzejewski-Szmek
cc5f218a50
tests: enable doctests in the sources
...
Unfortunately the "standard" way to access the names in the
defined module does not work. I find it nicer to explicitly import,
e.g. from systemd import journal, because then the examples
correspond more closely to what a user would use. The only
exception is made for JournalHandler, because journal.JournalHandler
is a tad to long.
2015-09-05 13:09:43 +02:00
Evgeny Vereshchagin
b71b8b64eb
Fix booted() doc
2015-09-04 18:30:10 +02:00
Zbigniew Jędrzejewski-Szmek
f83dea9f8d
Add compatibility with systemd < 205
2015-09-04 17:16:28 +02:00
Zbigniew Jędrzejewski-Szmek
c71fbb58e5
build-sys: output full pkg-config output on failure
2015-09-04 12:21:28 +02:00
Zbigniew Jędrzejewski-Szmek
ddca9bbe3a
build-sys: use pkg-config to build with old systemd
...
This should allow the build to just work on old Ubuntu
and similar.
2015-09-04 09:50:51 +02:00
Zbigniew Jędrzejewski-Szmek
d03d276625
README: add semaphore build badge
2015-09-03 20:27:36 +02:00
Zbigniew Jędrzejewski-Szmek
a93828172f
tests: add first test
...
This is based on the code in https://github.com/systemd/python-systemd/pull/4
by Jacek Konieczny <j.konieczny@eggsoft.pl>.
2015-08-07 11:49:56 -04:00
Zbigniew Jędrzejewski-Szmek
d2bc513440
tree-wide: systemd→python-systemd in headers
2015-08-07 11:49:56 -04:00
Zbigniew Jędrzejewski-Szmek
40e08de1a6
build-sys: add clean targets
2015-08-07 11:49:56 -04:00
Jacek Konieczny
71d82616a8
Fix daemon.is_fifo and .is_mq under Python 3
...
The 'path' parameter was not properly converted from Unicode
and the functions would always fail when a path was provided.
https://github.com/systemd/python-systemd/pull/4
2015-08-07 11:49:42 -04:00
David Strauss
58c65cf10a
Update source building instructions
...
* Only list Fedora 21+. Older releases are no longer supported by upstream, let alone for systemd development.
* Fedora now uses `pip` and `pip3`, not `pip-python` and `pip-python3`. By only documenting Fedora 21+, we can be consistent in the instructions.
* Use HTTPS for git (rather than HTTP).
2015-08-02 10:18:01 -04:00
Zbigniew Jędrzejewski-Szmek
108d3d8ea9
build-sys: also add installation and dist targets
2015-07-08 15:32:40 -04:00
Zbigniew Jędrzejewski-Szmek
344d520d8c
build-sys: exclude id128-constants.h after all
...
This file should be rebuild from latest systemd headers, and
not distributed here.
2015-07-08 15:23:02 -04:00
Zbigniew Jędrzejewski-Szmek
c030a453c2
docs: avoid warning about duplicate target name
2015-07-08 15:17:00 -04:00
Zbigniew Jędrzejewski-Szmek
2f5a390239
docs: update links in documentation
...
This is a standalone package now, but let's keep the links
to systemd itself.
2015-07-08 15:12:25 -04:00
Zbigniew Jędrzejewski-Szmek
f13a571db2
build-sys: call setup.py from make
2015-07-08 14:49:46 -04:00
Zbigniew Jędrzejewski-Szmek
e706969039
build-sys: add make rules for documentation
2015-07-08 14:47:46 -04:00
Zbigniew Jędrzejewski-Szmek
1ad7f56b90
Move docs to top level and include in manifest
2015-07-08 13:45:03 -04:00
Zbigniew Jędrzejewski-Szmek
2cef4ef7fc
Bump version to 230
...
v230
This matches what was done for libgudev. This way we have plenty of time
to remove the module from systemd, and this version will always be "newer".
2015-07-05 21:37:09 -04:00
Zbigniew Jędrzejewski-Szmek
f58519d53e
Specify system-devel@ as the maintainers
2015-07-05 21:32:42 -04:00