Create cros-specific unit tests.

Create infrastructure to allow cros-specific unit tests to be
created and executed.  Example .c unit tests are provided.
.c:  testcases/cros/unittests/cros_unittest_sample/cros_unittest_sample.c

Also create a cros test 'suite': runtest/cros_kernel_unittests.

Dependent CL creates a control.kernel_unittests that invokes
this suite wrapper.

To create a new test, create a new .c file within an existing
folder under cros/unittests or create a new folder with a
Makefile to contain new .c tests.  Each .c unittest simply
executes code and returns 0 for success and nonzero for failure.

To test:
-emerge-xxx autotest-tests-ltp
 (autotest-tests-ltp builds autotest-deps-ltp which builds the tests)
-run_remote_tests.sh ...  client/site_tests/kernel_LTP/control.kernel_unittests

BUG=chromium-os:36962
TEST=./run_remote_tests.sh --remote=... --use_emerged client/site_tests/kernel_LTP/control.sample
TEST=./run_remote_tests.sh --remote=... --use_emerged client/site_tests/kernel_LTP/control.kernel_unittests
TEST=./run_remote_tests.sh --remote=... --use_emerged client/site_tests/kernel_LTP/control.kernel_tests

Change-Id: I10031be77c6a4430fb00b28084d6a957a1d46271
Previously-Reviewed-on: https://gerrit.chromium.org/gerrit/45086
Reviewed-on: https://chromium-review.googlesource.com/257251
Reviewed-by: Mike Truty <truty@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
20 files changed