- 25 Jan, 2018 1 commit
-
-
Mats Wichmann authored
Currently, when the run_tests function is called twice from the the same scons script (that is, the script has more than one unit test binary to register), the GTEST_OUTPUT environment variable becomes malformed. This is because the string to add is added to a list instead of just being appended as a string. The result is that while all the test output binaries are expected to go to BUILD_DIR/test_out, in these cases they go deep down underneath that directory. Here are the unexpected paths in an unmodified testing run: out/linux/x86_64/debug/test_out/:xml: out/linux/x86_64/debug/test_out/:xml:/home out/linux/x86_64/debug/test_out/:xml:/home/mats out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work/out out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work/out/linux out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work/out/linux/x86_64 out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work/out/linux/x86_64/debug out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work/out/linux/x86_64/debug/test_out out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work/out/linux/x86_64/debug/test_out/unittest.xml out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work/out/linux/x86_64/debug/test_out/stacktests.xml out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work/out/linux/x86_64/debug/test_out/cbortests.xml out/linux/x86_64/debug/test_out/:xml:/home/mats/iotivity.work/out/linux/x86_64/debug/test_out/provisiontests.xml The :xml: is intended as a tag used to signal gtest, it is never supposed to be part of the real filesystem path. Note fix was already proposed as part of https://gerrit.iotivity.org/gerrit/#/c/22275/ but since it's a distinct error with a very simple fix, wanted to get it pushed through by itself while that one is under consideration. Change-Id: I05c57d54034686a7c77c783eab758e7f501e86ea Signed-off-by:
Mats Wichmann <mats@linux.com> (cherry picked from commit 0d010e4b)
-
- 09 Nov, 2017 1 commit
-
-
Mats Wichmann authored
A previous change updated all the scons scripts: https://gerrit.iotivity.org/gerrit/#/c/22525/ This change picks up the semi-external scripts that are called by the build, and thus are run in the scons context and need updating. Print statements are surrounded with parens so they look like function calls. This is an scons3 syntax requirement even if still using Python 2. The old exception format "except FooErr, err" is no longer supported in Python 3; since the Python 3 format "except FooErr as err" has been available since Python 2.6, there is no problem switching these and it makes sense to remove one way things could fail if Py3 is used. A few comparisons which used <> are changed to the preferred != form. Reformatted Builder call without changing it, and added a comment in the forked version to help explain why there are two copies of UnpackAll.py. With these changes, a full build completes successfully using scons3.0. Change-Id: Ia8df28d12c6504d6466dcf793779535d1ad3aa8b Signed-off-by:
Mats Wichmann <mats@linux.com> (cherry picked from commit b34da4aa)
-
- 11 Aug, 2017 1 commit
-
-
Ibrahim Esmat authored
We recently added our changes to the SCons repository to allow us to build UWP Store compatible DLLs from SCons. Rename the UWP_APP variable to be MSVC_UWP_APP to match what is used in the SCons repository for building UWP DLLs. Change-Id: I944afd0077c8690e49f8c03b2edd988c9d77b636 Signed-off-by:
Ibrahim Esmat <iesmat@microsoft.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21671Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-
- 20 Jul, 2017 1 commit
-
-
Ibrahim Esmat authored
An elevator client UWP sample app using the dynamic ipca and octbstack dlls. The Supported APIs WACK test is run if building for Release. Change-Id: I54b03d366a21b51cb723c355a252572b71050cd8 Signed-off-by:
Ibrahim Esmat <iesmat@microsoft.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21315Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-
- 09 Mar, 2017 1 commit
-
-
Way Vadhanasin authored
This change adds reference count to OCPlatform's static start and stop functions and synchronizes them. It does the following: 1. Ensures that calls to the "C" APIs OCInit and OCStop are balanced. 2. Maintains backward compatibility by introducing new PlatformConfig constructor and deprecate the old ones. 3. Updates the existing unit tests and samples. Because this change allows the framework to stop properly, it exposes some existing IoTivity leaks in Jenkins (Valgrind validation). Thus the following leaks are fixed in this change to allow successful Jenkins runs: 1. caipadapter.c: endpoint cache leak in UDP (no issue for TCP). - https://build.iotivity.org/ci/job/iotivity-verify-unit_tests/ 10907/valgrindResult/pid=24498,0x3fe 2. psinterface.c: CBOR buffer leaks in CreateResetProfile. - https://build.iotivity.org/ci/job/iotivity-verify-unit_tests/ 10922/valgrindResult/pid=2316,0x3ad 3. ocstack.c & securityResourceManager.cpp: persistent storage buffer leaks as a result of restarting and switching OCPlatform configuration after shutdown (e.g., between tests). https://build.iotivity.org/ci/job/iotivity-verify-unit_tests/ 10922/valgrindResult/pid=2316,0x3ad 4. OCRepresentationEncodingTest.cpp: representation value leaks. - https://build.iotivity.org/ci/job/iotivity-verify-unit_tests/ 10922/valgrindResult/pid=2316,0x3a9 5. runtest.py: change Valgrind callstack size from the default value of 12 to 24 so that the test name is visible in the report. Helpful for reproducibility. Change-Id: I79406f2cf4282efbb29a69c14e42aae928f54bae Signed-off-by:
Way Vadhanasin <wayvad@microsoft.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/17685Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-
- 24 Jan, 2017 1 commit
-
-
Pawel Winogrodzki authored
I've modified the global env configuration and run.bat in order to make parallel builds possible and generate private symbols files at the same time. Change-Id: I770b5a57e4fb8b437b727d7937f37a411e2f6cca Signed-off-by:
Pawel Winogrodzki <pawelwi@microsoft.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/16553Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-
- 13 Dec, 2016 1 commit
-
-
Philippe Coval authored
- Run tests using tools.scons.RunTest - Add a file parameter to enable valgrind check - Disable failed test, to make verifier sane again To be tracked at: http://wiki.iotivity.org/1.2-rel Bug: https://jira.iotivity.org/browse/IOT-1486 Change-Id: Ib665de6ab2dfe31b06ab3bb8cb3fb22f27487f4e Origin: https://gerrit.iotivity.org/gerrit/#/c/14967/Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/14967Tested-by:
jenkins-iotivity <jenkins-iotivity@opendaylight.org> Origin: https://gerrit.iotivity.org/gerrit/#/c/12075/ Reviewed-on: https://gerrit.iotivity.org/gerrit/12075Reviewed-by:
George Nash <george.nash@intel.com>
-
- 06 Dec, 2016 1 commit
-
-
George Nash authored
Stop downloading gtest-1.7.0 from the fedora project mirror. Download it from github googletest project page. The major changes as a result are: - The name of the zip file has changed from gtest-1.7.0.zip to release-1.7.0.zip - The name of the extracted folder has changed from gtest-1.7.0 to googletest-release-1.7.0 - Google test no longer contains a configure file to run auto make files. The autoreconfig tool is used to produce a new configure file from the configure.ac file. Change-Id: I3316af1f3a875137a872577a22f0e4db74f0b0f3 Signed-off-by:
George Nash <george.nash@intel.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/14381Reviewed-by:
Larry Sachs <larry.j.sachs@intel.com> 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>
-
- 28 Nov, 2016 2 commits
-
-
Philippe Coval authored
Windows is confused with implicit .exe suffix ie: scons: *** [out\windows\...\utresource\csdk\connectivity\test\catests] \ Explicit dependency ...\utresource\csdk\connectivity\test\catests' \ not found, needed by target \ ... Change-Id: I010eb13f7904cba510e492b73be1caeeb0061edd Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/14849Reviewed-by:
Ziran Sun <ziran.sun@samsung.com> Tested-by:
jenkins-iotivity <jenkins-iotivity@opendaylight.org>
-
Philippe Coval authored
This prevents Sporadic Valgrind Failures, caused by race conditions Common error message is like: out/linux/x86_64/debug/resource/unittests/unittests: Permission denied Bug: https://jira.iotivity.org/browse/IOT-1526 Change-Id: I49bfb21ee7cd934b965e132cb150d59c047ef383 Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/14705Tested-by:
jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by:
Kevin Kane <kkane@microsoft.com> Reviewed-by:
Nivedita Singhvi <niveditasinghvi@gmail.com> Reviewed-by:
Ziran Sun <ziran.sun@samsung.com>
-
- 30 Aug, 2016 1 commit
-
-
George Nash authored
When building with TEST=1 the build failed reporting multiple environments were trying to build the target 'ut' This was a hardcoded dummy target that is used to force the unit tests to run. The dummy target was switched from the hardcoded 'ut' name to use the name of the unit test so two environments don't think they are building the same target. Change-Id: I9ac35752f0a1c7acf902bf0087a212833bf5a6a5 Signed-off-by:
George Nash <george.nash@intel.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/10443Tested-by:
jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by:
Ziran Sun <ziran.sun@samsung.com> Reviewed-by:
Jon A. Cruz <jon@joncruz.org>
-
- 02 Jun, 2016 1 commit
-
-
David Antler authored
Change-Id: Ieebc9ab44f597a9cd47e28591e6edb8be30399c4 Signed-off-by:
David Antler <david.a.antler@intel.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/8107Reviewed-by:
Dave Thaler <dthaler@microsoft.com> Tested-by:
jenkins-iotivity <jenkins-iotivity@opendaylight.org>
-
- 31 Jul, 2015 1 commit
-
-
Ossama Othman authored
This is an implementation of the proposed OIC Bluetooth Low Energy transport for Linux. Change-Id: Id105a1d7a86c59d41900c6e4b0fc1b0a60b97c75 Signed-off-by:
Ossama Othman <ossama.othman@intel.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/1125Tested-by:
jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by:
Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by:
Erich Keane <erich.keane@intel.com>
-
- 17 Jul, 2015 1 commit
-
-
Ossama Othman authored
Moved duplicated code test run code to a Python module under tools/scons. Support for Valgrind suppressions was also added. Change-Id: I31d0bf7879116a358439e387dcd5fd87bbbecc9d Signed-off-by:
Ossama Othman <ossama.othman@intel.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/1678Tested-by:
jenkins-iotivity <jenkins-iotivity@opendaylight.org> Reviewed-by:
Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by:
Caiwen Zhang <caiwen.zhang@intel.com> Reviewed-by:
Erich Keane <erich.keane@intel.com>
-