Refactor unit test linking
authorDavid Antler <david.a.antler@intel.com>
Thu, 22 Sep 2016 00:44:19 +0000 (17:44 -0700)
committerDave Thaler <dthaler@microsoft.com>
Sat, 1 Oct 2016 00:00:32 +0000 (00:00 +0000)
commitb31b2b4081a361240853af222e5b055f8169e4cf
treecaee7d5659f0e64dff1016a569e11046dcbbf15e
parent92ddafd88106c95f309e808cd8fd70e91b209be6
Refactor unit test linking

* Build an octbstack_test static library.
* Link test executables against aforementioned static library.
* Remove octbstack_test.def file.
* Light cleanup of various SCons scripts

Note: This patch also fixes an issue where the build would fail
when TEST=0 was specified on Windows.

Change-Id: Ied7457fd5857396f4ce32bff37380998d66adeff
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12115
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
resource/c_common/ocrandom/test/SConscript
resource/csdk/SConscript
resource/csdk/connectivity/test/SConscript
resource/csdk/octbstack_product.def
resource/csdk/octbstack_test.def [deleted file]
resource/csdk/security/provisioning/unittest/SConscript
resource/csdk/security/unittest/SConscript
resource/csdk/stack/test/SConscript
resource/provisioning/unittests/SConscript
resource/unittests/SConscript