04 Feb, 2018

2 commits


29 Jan, 2018

1 commit


18 Dec, 2017

1 commit


13 Dec, 2017

2 commits


08 Dec, 2017

1 commit


06 Dec, 2017

1 commit


03 Dec, 2017

1 commit

  • The u-boot.sym file is scanned to find unit test suites for execution. At
    present it only finds those whose names start with 'dm' or 'env'. This
    code is buried in the bowels of the test code so when adding a new suite
    it is not easy to discover why it is ignored by the test framework.

    There seems to be no need to make this restriction. Drop it.

    Signed-off-by: Simon Glass
    Acked-by: Stephen Warren

    Simon Glass
     

01 Dec, 2017

3 commits


17 Nov, 2017

1 commit

  • It can be useful to record how long tests take; this can help debug slow
    running test systems or track changes in performance over time. Enhance
    the test system to record timestamps while running test:
    - Whenever a new log file section is started.
    - After U-Boot is started and communication has been established.
    - After each host or U-Boot command is executed.

    Signed-off-by: Stephen Warren

    Stephen Warren
     

06 Nov, 2017

1 commit

  • test_gpt generates a persistent disk image which can be re-used across
    multiple test runs. Currently, if the Python code that generates the disk
    image change, the image is not regenerated, which could cause test
    failures e.g. if a test was updated to expect some new partition name or
    size, yet the persistent disk image contained the old name or size. This
    change introduces functionality to regenerate the disk image if the
    instructions to generate the image have changed.

    Signed-off-by: Stephen Warren

    Stephen Warren
     

24 Oct, 2017

6 commits


17 Oct, 2017

1 commit


01 Oct, 2017

1 commit


30 Sep, 2017

4 commits


19 Sep, 2017

1 commit


16 Sep, 2017

1 commit

  • 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: a2f422555fc8 ("add pytests for 'gpt guid' command in sandbox")
    Fixes: c5772188ede9 ("add pytests for 'gpt rename' and 'gpt swap'")
    Signed-off-by: Stephen Warren
    Tested-by: Tom Rini

    Stephen Warren
     

15 Sep, 2017

4 commits


14 Aug, 2017

1 commit


23 Jul, 2017

1 commit

  • If one does not already have a rule to create a custom device node when
    a given device enumerates it can be useful to have udev create a
    bus path based node to the entry in /dev/bus/usb that was just
    enumerated. Given that DFU itself does not require a /dev entry it is a
    good idea to provide a rule that will generate one.

    Signed-off-by: Tom Rini

    Tom Rini
     

12 Jul, 2017

1 commit

  • Currently we have code which prints out platform data at the start of SPL.
    Now that we have tests for dtoc this is probably not necessary. Drop it.
    Update test_ofplatdata to check for empty output since it is useful to
    check that sandbox_spl works as expected.

    Signed-off-by: Simon Glass

    Simon Glass
     

06 Jun, 2017

2 commits


22 May, 2017

1 commit


27 Nov, 2016

2 commits

  • We have all the building blocks now to run arbitrary efi applications
    in travis. The most important one out there is grub2, so let's add
    a simple test to verify that grub2 still comes up.

    Signed-off-by: Alexander Graf

    Alexander Graf
     
  • Today we can compile a self-contained hello world efi test binary that
    allows us to quickly verify whether the EFI loader framwork works.

    We can use that binary outside of the self-contained test case though,
    by providing it to a to-be-tested system via tftp.

    This patch separates compilation of the helloworld.efi file from
    including it in the u-boot binary for "bootefi hello". It also modifies
    the efi_loader test case to enable travis to pick up the compiled file.
    Because we're now no longer bloating the resulting u-boot binary, we
    can enable compilation always, giving us good travis test coverage.

    Signed-off-by: Alexander Graf
    Reviewed-by: Tom Rini

    Alexander Graf