1. 25 Jan, 2018 1 commit
    • Mats Wichmann's avatar
      Build gtest output paths correctly · a4e14b93
      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: default avatarMats Wichmann <mats@linux.com>
      (cherry picked from commit 0d010e4b)
      a4e14b93
  2. 09 Nov, 2017 1 commit
    • Mats Wichmann's avatar
      Prepare for scons3: change prints and more · 630bb71b
      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: default avatarMats Wichmann <mats@linux.com>
      (cherry picked from commit b34da4aa)
      630bb71b
  3. 11 Aug, 2017 1 commit
  4. 20 Jul, 2017 1 commit
  5. 09 Mar, 2017 1 commit
  6. 24 Jan, 2017 1 commit
  7. 13 Dec, 2016 1 commit
  8. 06 Dec, 2016 1 commit
  9. 28 Nov, 2016 2 commits
  10. 30 Aug, 2016 1 commit
  11. 02 Jun, 2016 1 commit
  12. 31 Jul, 2015 1 commit
  13. 17 Jul, 2015 1 commit