Permalink
Commits on Sep 11, 2017
  1. Add Travis CI configuration (#58)

    martinpitt committed on GitHub Sep 11, 2017
Commits on Sep 6, 2017
  1. release 0.9.3

    martinpitt committed Sep 6, 2017
  2. tests: Stop assuming that /dev/loop0 always exists

    martinpitt committed Sep 6, 2017
    Loop devices don't exist in containers and some other build machines.
    Use /dev/zero as second device in /umockdev-record/system-single
    instead.
    
    https://bugs.debian.org/792189
Commits on Aug 10, 2017
  1. release 0.9.2

    martinpitt committed Aug 10, 2017
  2. Relax sysfs path check to work with udev 234

    martinpitt committed Aug 10, 2017
    New udev has some jitter in the returned path name:
    
    ERROR:tests/test-umockdev.c:1242:t_testbed_dev_query_gudev: assertion failed
      (g_udev_device_get_sysfs_path(device) == "/sys/devices/block/disk"):
      ("/sys/dev/block/../../devices/block/disk" == "/sys/devices/block/disk")
    
    Relax this to just ensure that we have a plausible path.
    
    https://bugs.debian.org/871060
Commits on May 1, 2017
  1. release 0.9.1

    martinpitt committed May 1, 2017
  2. Relax /umockdev-testbed/proc to work on different architectures

    martinpitt committed May 1, 2017
    Show /proc/cpuinfo on failure for easier debugging.
Commits on Apr 13, 2017
  1. release 0.9

    martinpitt committed Apr 13, 2017
  2. Add mocking of /proc

    martinpitt committed Apr 13, 2017
    Also add appropriate documentation, tests, and an example.
    
    Fixes #55
Commits on Feb 20, 2017
  1. preload: Fix variable scope

    martinpitt committed Feb 20, 2017
    In connect(), trapped_addr is being used throughout connect(), so
    declare it at the top.
    
    Fixes #50
Commits on Jan 26, 2017
  1. release 0.8.13

    martinpitt committed Jan 26, 2017
  2. Fix crash when client sends uevents to closed listeners

    martinpitt committed Jan 26, 2017
    We lazily create the unix sockets which mock netlink sockets for
    uevents, but so far never cleaned them. It may happen that the client
    closes the connection to a previous netlink socket and sends an uevent
    after that, so that our server-side socket fails with "Connection
    refused". Intercept that and clean up the socket instead of bailing out
    with an assertion.
    
    Fixes #53
Commits on Nov 10, 2016
  1. release 0.8.12

    martinpitt committed Nov 10, 2016
  2. Fix /umockdev-testbed-usb/lsusb test for libusb 1.0.21

    martinpitt committed Nov 10, 2016
    libusb/libusb@377f513 requires devices to have
    DEVTYPE=usb_device, so add this missing property to that test case.
Commits on Apr 21, 2016
  1. include sys/sysmacros.h for major/minor/makedev (#52)

    vapier committed with martinpitt Apr 21, 2016
    These funcs are defined in the sys/sysmacros.h header, not sys/types.h.
    Linux C libraries are updating to drop the implicit include, so we need
    to include it explicitly.
Commits on Jun 29, 2015
  1. release 0.8.11

    martinpitt committed Jun 29, 2015
  2. Skip /umockdev-record/system-all test with "check-installed"

    martinpitt committed Jun 29, 2015
    It's too brittle and prone to break on quirky hardware/kernel issues.
  3. test-umockdev.py: Explicitly require version 1.0 for GUdev and GUMockdev

    martinpitt committed Jun 29, 2015
    This avoids a deprecation warning:
    
      tests/test-umockdev.py:26: ImportWarning: GUdev was imported without specifying a version first. Use gi.require_version('GUdev', '1.0') before import to ensure that the right version gets loaded.
        from gi.repository import GLib, GUdev
      tests/test-umockdev.py:31: ImportWarning: UMockdev was imported without specifying a version first. Use gi.require_version('UMockdev', '1.0') before import to ensure that the right version gets loaded.
        from gi.repository import UMockdev
Commits on Jun 9, 2015
  1. release 0.8.10

    martinpitt committed Jun 9, 2015
  2. Include SEQNUM property into synthesized uevents

    martinpitt committed Jun 9, 2015
    This makes libudev monitoring work for version >= 220.
Commits on Jun 8, 2015
  1. Include DEVTYPE property into synthesized uevents

    martinpitt committed Jun 8, 2015
    This makes libudev monitoring work for version >= 220.
  2. Create /sys/bus/ hierarchy instead of /sys/class for "usb" and "pci"

    martinpitt committed Jun 8, 2015
    This matches what the real kernel does.
  3. preload: Wrap canonicalize_file_name()

    martinpitt committed Jun 8, 2015
    This fixes operation with udev >= 220.
  4. preload: Wrap readlinkat()

    martinpitt committed Jun 8, 2015
    This fixes operation with udev >= 220.
Commits on May 28, 2015
  1. Fix build failure of tests/test-ioctl-tree.c on powerpc with recent g…

    martinpitt committed May 28, 2015
    …libcs
    
    In file included from /usr/lib/powerpc-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
                     from /usr/include/glib-2.0/glib/gtypes.h:32,
                     from /usr/include/glib-2.0/glib/galloca.h:32,
                     from /usr/include/glib-2.0/glib.h:30,
                     from tests/test-ioctl-tree.c:21:
    tests/test-ioctl-tree.c: In function 't_execute':
    tests/test-ioctl-tree.c:436:45: error: invalid application of 'sizeof' to incomplete type 'struct termios'
         g_assert(ioctl_tree_execute(tree, last, TCGETS, NULL, &ret) == NULL);
                                                 ^
Commits on May 22, 2015
  1. release 0.8.9

    martinpitt committed May 22, 2015
  2. Skip /umockdev-run/integration/input-touchpad test if X.org fails

    martinpitt committed May 22, 2015
    Calling Xorg is not allowed in build environments in e. g. Fedora.
    
    #47
  3. Fix recording of USB devices on recent kernels

    martinpitt committed May 22, 2015
    Pass device as major:minor instead of assuming that they are only 8 bit (which
    is not true any more).
Commits on Nov 12, 2014
  1. umockdev-record: Ignore stderr from udevadm info

    martinpitt committed Nov 12, 2014
    This avoids udev debug message spew on stderr if udev debugging is enabled.
    
    https://bugs.debian.org/767909
Commits on Sep 22, 2014
  1. release 0.8.8

    martinpitt committed Sep 22, 2014
  2. Skip O_TMPFILE test on Linux versions which don't support that

    martinpitt committed Sep 22, 2014
    There it fails with EISDIR (Linux < 3.11) or potentially EINVAL.
Commits on Sep 19, 2014
  1. release 0.8.7

    martinpitt committed Sep 19, 2014
Commits on Sep 8, 2014
  1. Call open(.., .., mode) when O_TMPFILE is specified

    camako committed with martinpitt Sep 6, 2014
    Test case by Martin Pitt.
Commits on Sep 1, 2014
  1. Fix evemu test for evtest 1.32

    martinpitt committed Sep 1, 2014
    /umockdev-run/integration/input-evtest-evemu test: Be more liberal in parsing
    evtest's SYN event output, as it changed in 1.32.
  2. release 0.8.6

    martinpitt committed Sep 1, 2014