Mock hardware devices for creating unit tests

Download project files

How do I verify a download?


110 of 30 releases

0.8.1 release from the trunk series released 2014-03-31

Release information
Release notes:

- Fix eternal hang due to negative delays when playing back evemu scripts with
  timestamps that go backwards.

File Description Downloads
download icon umockdev-0.8.1.tar.xz (md5, sig) release tarball -

0.8 release from the trunk series released 2014-03-20

Release information
Release notes:

New features:
- Add new method umockdev_testbed_load_evemu_events() to replay an evemu events
  file into an emulated evdev device. These are platform independent and thus
  more portable than a script record.
- Add -e/--evemu-events=devname=eventsfilename option to umockdev-run, to load
  an evemu .events file. (Issue #5)
- Add -e/--evemu-events=devname=eventsfilename option to umockdev-record, to
  record reads from an evdev device into an evemu .events file. (Issue #5)
- Add umockdev_in_mock_environment(). This function returns whether
  or not the current process is running in a umockdev testbed
  environment. Thanks Chris Halse Rogers!

Bug fixes:
- Only send a "add" uevent from add_device if running in a umockdev
  testbed environment. Fixes error messages when loading devices fro...

File Description Downloads
download icon umockdev-0.8.tar.xz (md5, sig) release tarball 6
last downloaded 4 days ago
Total downloads: 6

0.7 release from the trunk series released 2014-03-05

Release information
Release notes:

- Set PTYs into raw mode to get more accurate read() semantics,
  specifically how many bytes each read() slurps.
- umockdev-record --script=/dev/device now also stores the name of the
  device node recorded in the script.
  umockdev_testbed_load_script(testbed, NULL, "device.script")
  now automatically associates the script with the original device node.

File Description Downloads
download icon umockdev-0.7.tar.xz (md5, sig) release tarball 5
last downloaded 5 weeks ago
Total downloads: 5

0.6 release from the trunk series released 2014-02-15

Release information
Release notes:

- Also send DEVNAME in uevent when available. Thanks Chris Halse Rogers!
- Send an "add" uevent when adding a device
- umockdev-record --ioctl now stores the name of the device node recorded
  in the trace. umockdev_testbed_load_ioctl(testbed, NULL, "device.ioctl")
  now automatically associates the ioctl trace with the original device
  node. (issue #33)

File Description Downloads
download icon umockdev-0.6.tar.xz (md5, sig) release tarball 5
last downloaded 4 weeks ago
Total downloads: 5

0.5.1 release from the trunk series released 2014-01-16

Release information
Release notes:

- Update devices/cameras/canon-powershot-sx200.ioctl with ioctls from
  libgphoto2 2.5.3, to make the /umockdev-run/integration/gphoto-* tests work
  with that version.

File Description Downloads
download icon umockdev-0.5.1.tar.xz (md5, sig) release tarball 5
last downloaded 10 weeks ago
Total downloads: 5

0.5 release from the trunk series released 2014-01-08

Release information
Release notes:

- Add generic support for variable length structs without pointers to
  substructs. Definitions of such ioctls must provide a get_data_size()
  function which returns the number of bytes based on the ioctl number and the
  data pointer.
- Declare libc ioctl type correctly using varargs. On some architectures (e.g.
  ppc64el) the calling convention for varargs is sufficiently different that
  the previous declaration caused stack corruption. Thanks Colin Watson!

File Description Downloads
download icon umockdev-0.5.tar.xz (md5, sig) release tarball 5
last downloaded 9 weeks ago
Total downloads: 5

0.4.7 release from the trunk series released 2013-11-14

Release information
Release notes:

- Skip umockdev-record loop device test if /sys exists, but there is no loop
  device.
- Slightly relax timings in /umockdev-testbed/script_replay_simple test to
  avoid failure on slow machines.
- preload: Wrap chmod() and inotify_add_watch().
- Fix assertion on umockdev_testbed_uevent() if there are no listeners.
  (issue #29)

File Description Downloads
download icon umockdev-0.4.7.tar.xz (md5, sig) release tarball 8
last downloaded 4 weeks ago
Total downloads: 8

0.4.6 release from the trunk series released 2013-10-11

Release information
Release notes:

- Fix wrong select() call timeout which caused a failure on arm64.
- Skip umockdev-record tests which need /sys if there is no real /sys.
  (Debian #724203)

File Description Downloads
download icon umockdev-0.4.6.tar.xz (md5, sig) release tarball 8
last downloaded 14 weeks ago
Total downloads: 8

0.4.5 release from the trunk series released 2013-09-17

Release information
Release notes:

- Make various test cases more robust.

File Description Downloads
download icon umockdev-0.4.5.tar.xz (md5, sig) release tarball 6
last downloaded 7 weeks ago
Total downloads: 6

0.4.4 release from the trunk series released 2013-09-16

Release information
Release notes:

- testsuite: Write "skip" messages to stdout instead of stderr.
- README.rst: Add information about building, testing, running, and
  contributing.
- Add code coverage reporting with gcov and lcov, using the gnome-common
  macros. autogen.sh will enable this automatically if lcov is installed.
- Support comments in scripts and ioctl records, lines starting with '#' get
  ignored.

File Description Downloads
download icon umockdev-0.4.4.tar.xz (md5, sig) release tarball 3
last downloaded 30 weeks ago
Total downloads: 3

110 of 30 releases