Skip to content
Snippets Groups Projects
  1. Oct 23, 2017
  2. Oct 16, 2017
  3. Oct 09, 2017
  4. Oct 06, 2017
    • Tom Rini's avatar
      test/dm: Fix string handling issues in the eth test · e2e6daed
      Tom Rini authored
      
      Coverity scan has identified potential buffer overruns in these tests.
      Correct this by zeroing our buffer and using strncpy not strcpy.
      
      Reported-by: Coverity (CID: 155462, 155463)
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      e2e6daed
    • Tom Rini's avatar
      test/overlay: Fix various malloc/free leaks · d91062c4
      Tom Rini authored
      
      With the overlay tests now being built in sandbox Coverity has found a
      number of issues in the tests.  In short, if malloc ever failed we would
      leak the previous mallocs, so we need to do the usual goto pattern to
      free each in turn.  Finally, we always looked at the free()d location to
      see how many tests had failed for the return code.
      
      Reported-by: Coverity (CID: 167224, 167227, 167230, 167236)
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      d91062c4
    • Tuomas Tynkkynen's avatar
      fs-test: Add test for a filename using '..' to go back to the root · 7c890f14
      Tuomas Tynkkynen authored
      
      The previous commit fixed a problem in FAT code where going back to the
      root directory using '..' wouldn't work correctly on FAT12 or FAT16.
      Add a test to exercise this case (which was once fixed in commit
      18a10d46 "fat: handle paths that include ../" but reintroduced due to
      the directory iterator refactoring).
      
      This test only very barely catches the problem - without the fix the
      size command still gives valid output but the additional spurious
      "Invalid FAT entry" error message makes it not get caught in the
      'egrep -A3 ' output. I tried to make a proper test that grows the root
      directory to two clusters lots of with dummy files but that causes the
      write tests to crash the sandbox totally...
      
      Signed-off-by: default avatarTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      7c890f14
    • Tuomas Tynkkynen's avatar
      fs-test: Add FAT16 support · edce588a
      Tuomas Tynkkynen authored
      
      Currently we can only test FAT32 which is the default FAT version that
      mkfs.vfat creates by default. Instead make it explicitly create either a
      FAT16 or a FAT32 volume. This allows us to exercise more code, for
      instance the root directory handling is done differently in FAT32 than
      the older FATs.
      
      Adding FAT12 support is a much bigger job since the test creates a 2.5GB
      file and the FAT12 maximum partition size is way smaller than that.
      
      Signed-off-by: default avatarTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      edce588a
  5. Oct 01, 2017
    • Bin Meng's avatar
      test: dm: usb: Update test cases for USB · f4d4f7d4
      Bin Meng authored
      
      Now that we have changed to remove all devices under the root hub in
      usb_stop(), and corrected the USB emulator select logic, it makes no
      sense to do various tests based on 'usb tree' output since the order
      of devices is no longer fixed. Remove these USB test cases related
      to 'usb tree'.
      
      For the USB remove test, ideally we should remove an emulator device
      node from the device tree, but this is so far not working. Change to
      test the 'usb stop' only.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      f4d4f7d4
  6. Sep 29, 2017
  7. Sep 18, 2017
  8. Sep 16, 2017
    • Stephen Warren's avatar
      test/py: gpt: make use of infra-structure · 110ba625
      Stephen Warren authored
      
      Make various changes to the GPT test:
      
      1) Reference the disk image using an absolute path in all cases. This
      allows test/py to operate correctly if it's run from a directory other
      than the root of the U-Boot source tree.
      
      2) Store the disk image in the teswt/py persistent data directory. This
      removes the need to re-generate it every time the tests are run.
      
      3) Execute sgdisk using u_boot_utils.run_and_log() so that its output is
      captured in the test log. This allows debugging any problems running it.
      
      4) Make the disk image a test fixture. This removes the requirement to
      always run all GPT tests, and run them in order. The current code doesn't
      create the disk image if e.g. just test_gpt_uuid() is executed via the
      test.py -k command-line option.
      
      5) Use @pytest.mark.buildconfigspec for all feature dependencies, rather
      than manually implementing some of them.
      
      6) Make all tests depend on sandbox, since they use the sandbox-specific
      host command.
      
      Fixes: a2f42255 ("add pytests for 'gpt guid' command in sandbox")
      Fixes: c5772188 ("add pytests for 'gpt rename' and 'gpt swap'")
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Tested-by: default avatarTom Rini <trini@konsulko.com>
      110ba625
  9. Sep 15, 2017
  10. Sep 12, 2017
  11. Aug 16, 2017
  12. Aug 13, 2017
  13. Jul 22, 2017
  14. Jul 11, 2017
Loading