selftests: firmware: add empty string and async tests
authorBrian Norris <computersforpeace@gmail.com>
Wed, 9 Dec 2015 22:50:29 +0000 (14:50 -0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 7 Jan 2016 21:41:07 +0000 (14:41 -0700)
commit1b1fe542b6f010cf6bc7e1c92805e1c0e133e007
tree6443ea9d6072c5fb4057b4ffbc68f163fcfe5b70
parent715780ae4bb76d6fd2f20eb78e2a9ba9769a6cdc
selftests: firmware: add empty string and async tests

Now that we've added a 'trigger_async_request' knob to test the
request_firmware_nowait() API, let's use it. Also add tests for the
empty ("") string, since there have been a couple errors in that
handling already.

Since we now have real ways that the sysfs write might fail, let's add
the appropriate check on the 'echo' lines too.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/firmware/fw_filesystem.sh