Squashed 'third_party/cmocka/' content from commit 9ec5378

git-subtree-dir: third_party/cmocka
git-subtree-split: 9ec537894241fd54bb7bb661ed1af3db7c60b234
cmocka: Add subtree from tag cmocka-0.3.2

Shell-Command: \
  git-subtree add --prefix=third_party/cmocka --squash \
  git://git.cryptomilk.org/projects/cmocka.git \
  refs/tags/cmocka-0.3.2
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
cmake: Add module WaffleCMocka

If waffle_build_tests, then this module imports the cmocka library built
in 'third_party/cmocka'. When configuring waffle, the module also
configures 'third_party/cmocka' by descending into the directory and
invoking cmake there.

All tests will eventrually be converted from using libwaffle_test to use
cmocka.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
core: Convert wcore_attrib_list_unittest to use cmocka

Convert it away from using libwaffle_test.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
core: Convert wcore_error_unittest to use cmocka

Convert it away from using libwaffle_test.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
core: Convert wcore_config_attrs_unittest to use cmocka

Convert it away from using libwaffle_test.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
core: Stop linking libwaffle_test into unittest executables

All unittests have been converted to use cmocka.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Merge branch 'cmocka'

This merge makes progress towards killing off libwaffle_test and
replacing it with cmocka.

- Add subtree 'third_party/cmocka' from tag cmocka-0.3.2.
- Convert all unit test executables to use cmocka. They no longer use
  libwaffle_test.
- The only remaining user of libwaffle_test is gl_basic_test, which
  I will also move to cmocka eventually.
cmake: Don't build unittests when waffle_build_tests=0

Return early from add_unittest() if waffle_build_tests=0, making the
function a no-op.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>