Added hook to unit test when build: darwin.
[platform/upstream/iotivity.git] / resource / unit_tests.scons
index bea8c7e..7624233 100644 (file)
@@ -47,5 +47,12 @@ if target_os == 'linux':
        # Build C++ unit tests
        SConscript('unittests/SConscript')
 
+elif target_os == 'darwin':
+       # Verify that 'google unit test' library is installed.  If not,
+       # get it and install it
+       SConscript(src_dir + '/extlibs/gtest/SConscript')
 
+       # Build C stack's unit tests.
+       SConscript('csdk/stack/test/SConscript')
+       SConscript('csdk/connectivity/test/SConscript')