libusbgx: tests: Add simulation of configfs for gadget attrs get/set
authorPawel Szewczyk <p.szewczyk@samsung.com>
Thu, 12 Feb 2015 15:01:52 +0000 (16:01 +0100)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 20:45:34 +0000 (21:45 +0100)
commit90ba89408fc2de902cc619be209ae56aa4a4f5ef
tree9a5d25289243abab8696a0ec0e734bf58ce940ce
parenta9e608e10165b85a1ce2222ad837379eac03f4c7
libusbgx: tests: Add simulation of configfs for gadget attrs get/set

Before executing libusbgx functions which get and set gadget attributes,
we must prepare virtual filesystem to behave as expected.
push_* and pull_* functions take arguments similar to usbg functions
which will be called after them, e.g. push_gadget_attrs(g, a)
will prepare for calling usbg_get_gadget_attrs on gadget matching g,
where a is value passed to be read.

Change-Id: I805544dbd35a1a7f8c2e4073f9f4607d9c70bb95
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
include/usbg/usbg_internal.h
tests/usbg-test.c
tests/usbg-test.h