Fix unittest of easy setup for TCP option build
authorJihun Ha <jihun.ha@samsung.com>
Thu, 18 Aug 2016 00:06:57 +0000 (09:06 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 18 Aug 2016 05:34:44 +0000 (05:34 +0000)
commitb45dd0c6399942c9442b83fab5ad5ac037be29bd
tree47ff2c8bb7dc329e9f29856d487b7beae75833fe
parente17947fd4f983488bf66133521ab4e0b8ca0d007
Fix unittest of easy setup for TCP option build

With TCP option build, two resources per each network interface are
discovered. We have to filter out the resource with TCP flag.
Additionally, Easysetup unittest tries to discover a real provisioning
resource in a network to the test. So if there is other provisioning
resources in a network, the test would fails. To resolve the problem,
we have to filter out resources running on difference machine.

Change-Id: I130f134b051b598d6f783a6ffa9d0365fec2c172
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10559
Reviewed-by: Heewon Park <h_w.park@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/enrollee/unittests/ESMediatorSimulator.h
service/easy-setup/enrollee/unittests/SConscript
service/easy-setup/mediator/richsdk/unittests/ESMediatorTest.cpp [changed mode: 0644->0755]
service/easy-setup/mediator/richsdk/unittests/SConscript