Skip to content
Snippets Groups Projects
  1. May 14, 2019
  2. May 13, 2019
    • Gianfranco Valentino's avatar
      [zircon][fvm] Integration test cleanup start. · 47e21273
      Gianfranco Valentino authored
      Move the resize tests into their own translation unit ant test target.
      Use zxtest instead of unittest in the new tests.
      Create set of utils for common tasks in the resize tests.
      
      Utils treats devices as objects(Using RAII mechanics to close handles
      and perform cleanup). This reduces the boilerplate of manually creating
      the requests for fvm_* and such free functions, and makes the test more
      readable in terms of what actually matters.
      
      New test target is named fvm-integration-test.
      
      TEST=fvm-test,fvm-integration-test
      
      Change-Id: Ie88fb94c61affe188492e1de2991079cffe91d3d
      47e21273
    • Ed Coyne's avatar
      [fx] update run-host-tests -z to use build. · fbea4c97
      Ed Coyne authored
      "fx run-host-tests -z" used the removed command "build-zircon" before
      running tests. Update it to use the normal "build" which now builds
      zircon too.
      
      Change-Id: Iaaccb01f9155e3989c68c55612cedf0d92ee1224
      fbea4c97
    • Roland McGrath's avatar
      [build] Force a fidl_library() with .test.fidl sources to be testonly · f9a0d908
      Roland McGrath authored
      FIDL source files must be named `*.fidl` and if source files are
      named `*.test.fidl` then the library using it can only be used in
      test code.  So the fidl_library() template automatically sets
      `testonly=true` if its sources list include any `*.test.fidl`.
      It's not allowed to override this with explicit `testonly=false`.
      
      Change-Id: I7bb79327be678efbfd293b9fa2baaad55832c9df
      f9a0d908
    • Petr Hosek's avatar
      [zircon][gn] Use AS_NEEDED for libc++.so · a3684085
      Petr Hosek authored
      This avoids the extra DT_NEEDED entry even in cases where libc++.so
      isn't needed. This is also consistent with Clang driver implementation
      which uses --as-needed around libc++.so.
      
      Bug: ZX-4099
      Change-Id: I76475896b7ea2c825a97f28b7b09e53228b468c6
      a3684085
    • Alex Legg's avatar
      [devfs][test] Fix incorrect assumption in test · fe25b61f
      Alex Legg authored
      We can't assume that there will always be a block device. For now, we
      can assume that there will always be a platform-bus driver bound.
      
      It would be better if we created a fake devfs for these tests but since
      device discovery is going to signficantly change in the near future this
      should be good enough for now.
      
      ZX-4090 #done
      
      Change-Id: I668e6a13ec273f83d13654ba692ea92763fc41b8
      fe25b61f
    • Nick Cook's avatar
      [docs] Document how to run the examples in //examples. · f1a8516c
      Nick Cook authored
      Add information about running the examples using fx commands.
      
      PiperOrigin-RevId: 246914905
      Change-Id: I6489354d5941671f6f04682e548d32d0bee28fef
      f1a8516c
    • Jody Sankey's avatar
      [identity] Move integration tests to //src/identity. · 26276537
      Jody Sankey authored
      This are the final things in /garnet/bin/auth so we also delete it
      (yey!).
      
      AUTH-196 #comment
      
      Change-Id: I0d73f3c20d4195de70799f28ce1183395baac4a6
      26276537
    • Aaron Wood's avatar
      [omaha client] Implement single request state machine · 9a82fb01
      Aaron Wood authored
      This is the start of the central state machine which makes requests to
      omaha.  This is the initial skeleton if the async flow of performing a
      single update check (and subsequent update if one is returned by Omaha).
      
      Bug: PKG-465
      Test: fx run-test omaha_client_lib_tests
      Test: ran prototype client (not in this CL) with Omaha service
      
      Change-Id: Ic6e07f76bd30f903ee232f61a20ca1f595adeb74
      9a82fb01
    • Ben Keller's avatar
      [third-party][rust] Expose arrayvec · 9672aa3c
      Ben Keller authored
      Change-Id: I7e3915b69d321fb2f2b2d2598259ee6dc2eed9b4
      9672aa3c
    • John Sheu's avatar
      [banjo] Support more types as union fields · 15405db5
      John Sheu authored
      This causes union fields to be generated using the same logic as struct
      fields, so that arrays and strings are properly handled. Note for now
      that vector fields are excluded from unions, as they actually generate
      two fields (a pointer and a count) which does not interact well with
      unions.
      
      Change-Id: I69a36903390740d5443f5e3ff0d00d3e49e423f8
      15405db5
    • Manali Bhutiyani's avatar
      [minfs] disk-inspector Part 3: CmdLine/Uapp application to consume the disk-interface · 0e405ecb
      Manali Bhutiyani authored
      This change implements a very simple command line tool/uapp application to consume the
      disk objects for minfs and recursively iterate over all of them.
      Please note that this is not interactive at the time being, but is implemented
      as a first implementation of the disk-inspector tool. It is a good way to
      test the different apis of the disk-inpector library.
      
      Testing: The application itself is pretty dumb and doesn't need unit tests.
                The unit tests for minfs backend are already added as part of the change:
                https://fuchsia-review.googlesource.com/c/fuchsia/+/277175
      Change-Id: Icd211c30bdb2c82c9f242447d8fddc5d7620c323
      0e405ecb
    • docs-roller's avatar
      [gndoc] Update GN build arguments documentation · a86026a2
      docs-roller authored
      Test: CQ
      
      Change-Id: I0b8a33851af712c41c0bcf84d05a150a29e99730
      a86026a2
    • John Sheu's avatar
      [banjo] Remove newline stripping from test output · 9c5c8f1d
      John Sheu authored
      This makes it much easier to compare failing test output against the
      reference, as well as to derive new reference outputs from the test log
      when tests are updated.
      
      Change-Id: I7af722007b39bf08ff602636ed6a3562c617aa03
      9c5c8f1d
    • Sean Klein's avatar
      [test][hid-parser] Relocate unit tests to exist alongside source · 7ee94191
      Sean Klein authored
      Change-Id: I0a6b422086d82e61c3761d9abc3a0b2e147da3df
      7ee94191
    • Marty Faltesek's avatar
      [zircon][unittest] Rename stack-test.c to stack-test.cpp · c50b1949
      Marty Faltesek authored
      ZX-3736
      
      Test: stack-test
      Change-Id: Ib7a55021bf5790352a451a34a5cad1e74fda780b
      c50b1949
    • Garratt Gallagher's avatar
      [ISP] Changing fidl file to be not .test · 05c6062d
      Garratt Gallagher authored
      This updates the ISP test fidl interface to comply with abarth's
      fidl rules.
      
      TEST: No functionality change.
      Change-Id: I6660a9bf47e66ba7337c95245f9e7ade5f9dfb3d
      05c6062d
    • Andres Oportus's avatar
      [debugger] Fix typos · 9b2c0057
      Andres Oportus authored
      Change-Id: If6d9f751f9beadf51bddd584eb3f8cb7d5511ef7
      9b2c0057
    • Francois Rousseau's avatar
      [crash][feedback] switch to RunLoopUntil() in unit tests · 9db32157
      Francois Rousseau authored
      * apparently RunLoopWithTimeoutUntil() is bad because the default timeout
      isn't guaranteed to be enough on some bots so instead we rely on the
      infra timeout they give to each test
      * we don't check the return value RunLoopUntil() in anticipation of https://fuchsia-review.googlesource.com/c/fuchsia/+/280471
      
      TESTED=`fx run-test feedback_agent_tests`
      TESTED=`fx run-test crashpad_agent_tests`
      
      Change-Id: I491252ef6a3e3f51f418ef5e57d3f426411e54f6
      9db32157
    • Ross Wang's avatar
      [e2e][sl4f][dart] Update image byte order to BGRA · e43cb691
      Ross Wang authored
      This changed from RGBA in
      https://github.com/brendan-duncan/image/commit/f3d07a74d17d0004d88fc1043042df9111eb3b6f
      
      Also added a test for this regression.
      
      Issue: https://github.com/brendan-duncan/image/issues/92
      Test: fx run-host-tests sl4f_client_tests
            end-to-end test
      Change-Id: If8c82f9d5479d16e7c41845eb001d6ac8068ea27
      e43cb691
    • Roland McGrath's avatar
      [build][fidl] Fix //zircon/public/fidl metadata · 04e0ff45
      Roland McGrath authored
      Step #1's local testing was misconfigured and failed to test the
      step #2 integration build properly as the bots do, so a trivial
      bug slipped through.
      
      Bug: ZX-3365
      Change-Id: I331b3b989125c5982632d310daa8b7d512a49faf
      04e0ff45
    • Aaron Green's avatar
      [fuzzing] Run scripts/fuzzing/test/* as host test. · a5c16227
      Aaron Green authored
      This CL extends the host test for host fuzzers to also run the python
      unit tests for 'fx fuzz'.
      
      Bugs: SEC-170
      Test: fx set core.x64 --with //src/fuzzing:tests
            fx run-host-test fuzzing_host_test
      Change-Id: Ic2568e5603b34d35a94ebe85161f476f7854c330
      a5c16227
    • James Robinson's avatar
      [zircon] Guard general __TA_xx macros behind _LIBCPP check · 8cd5884f
      James Robinson authored
      We use the __TA_xxx macros to annotate code for clang's thread safety
      analysis features.  The thread safety analysis feature works by
      comparing the annotations on types with the annotations on code using
      those types and generating a warning if the code is identified that is
      inconsistent with the annotations or the defined semantics of the
      annotations.  We frequently use these annotations to describe the
      relationship between code and types from the C++ standard library, such
      as std::mutex.  These types are annotated in the libc++ standard library
      implementation if the preprocessor define
      _LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS is set.
      
      In the Fuchsia build, we always set -Wthread-safety and -D_LIBCPP_...
      compiler flags together so the annotations are consistent internally.
      Some SDK customers use the fuchsia SDK and -Wthread-safety flag without
      setting the preprocessor define as they use other libraries which use
      the C++ standard library types in ways incompatible with thread safety
      analysis.  This causes issues when compiling code that uses the
      __TA_xxx macros with types like std::mutex.
      
      This updates the __TA_xxx macros to only enable annotations if we can
      tell that C++ standard library types are annotated (using the
      _LIBCPP_... macro) or if we're in kernel code that we always control.
      
      This also updates zircon/kernel code to use the non-public macros
      defined in zircon/system/private so that they are enabled even when
      libc++ is not involved.
      
      ZX-4091 #done
      
      Change-Id: I74910f6963d79bd2a53cf5d89a183252c5b58e7e
      8cd5884f
    • Allan MacKinnon's avatar
      [graphics][compute] Properly export C functions for use in C++ (HotSort) · 3fd0d3b7
      Allan MacKinnon authored
      Tracked by SPN-19.
      
      Testability: HotSort library and test compile and run.
      Change-Id: I6a80c97057493c3f967cc4eef30691e82d18ad16
      3fd0d3b7
    • Allan MacKinnon's avatar
      [graphics][compute] Add Spinel libs to compute build. · 2e8e8f5a
      Allan MacKinnon authored
      Tracked by SPN-22 and SPN-19.
      
      Blocks tests SPN-17, SPN-18.
      
      Change-Id: I4bd95681b26b81e3521c518b4d0894730e5c23ce
      2e8e8f5a
    • Allan MacKinnon's avatar
      [graphics][compute] Properly export C functions for use in C++ (/color,/ts) · b510ca67
      Allan MacKinnon authored
      Tracked by SPN-19.
      
      Testability: not yet part of build.
      Change-Id: I04c73606b03191d2c6e4f2048f329af848c8f5fb
      b510ca67
    • Todd Eisenberger's avatar
      [devhost] Fix double-free of ProxyIostate · 8a76c5da
      Todd Eisenberger authored
      The double free would occur if
      1) some thread invoked Cancel() to queue destruction of a ProxyIostate,
         and
      2) before that packet was processed, the ProxyIostate's handler ran and
         decided to destroy itself.
      
      Bug: ZX-4060
      Change-Id: I3b9c7275c4e0cd2dc3a6c6cd2d2376c947eb627a
      8a76c5da
Loading