06 Jun, 2017

2 commits


22 May, 2017

1 commit


27 Nov, 2016

4 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
     
  • Now that we have working network tests and a hello world efi application
    built inside our tree, we can automatically test that efi binary running
    inside of U-Boot.

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

    Alexander Graf
     
  • The network test currently downloads files at 0MB offset of RAM start.
    This works for most ARM systems, but x86 has weird memory layout constraints
    on the first MB of RAM.

    To not get caught into any of these, let's add a 4MB pad from start
    of RAM to the default memory offset.

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

    Alexander Graf
     

22 Nov, 2016

1 commit


24 Oct, 2016

1 commit

  • In pytest 3, runtestprotocol() may not call pytest_runtest_setup() if
    the test is skipped. That call is required to create a section for the
    test in the log file. If this is skipped, the call to log.end_section()
    at the tail of pytest_runtest_protocol() will throw an exception. This
    patch ensures that a log section always exists, both to avoid the
    exception and to ensure that a consistently structured log file is
    always created.

    Cc: Stefan Brüns
    Reported-by: Stefan Brüns
    Signed-off-by: Stephen Warren
    Tested-by: Tom Rini

    Stephen Warren
     

15 Oct, 2016

1 commit


14 Oct, 2016

1 commit

  • Add a NFS download test, based on TFTP test.
    Tested on i.MX6 SabreLite board.

    Signed-off-by: Guillaume GARDET

    Cc: Tom Rini
    Cc: Joe Hershberger
    Cc: Stephen Warren
    Cc: Simon Glass
    Reviewed-by: Stephen Warren
    Acked-by: Joe Hershberger

    Guillaume GARDET
     

22 Sep, 2016

1 commit


21 Aug, 2016

1 commit

  • This prevents capture of command output from terminating early on boards
    that use a simple prompt (e.g. "=> ") that appears in the middle of
    command output (e.g. crc32's "... ==> 2fa737e0").

    Reported-by: Tom Rini
    Signed-off-by: Stephen Warren
    Tested-by: Tom Rini
    Reviewed-by: Heiko Schocher

    Stephen Warren
     

06 Aug, 2016

8 commits


23 Jul, 2016

2 commits

  • Getting this error:
    Zynq> sb load hostfs - 100
    /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
    Unknown command 'sb' - try 'help'

    because sb command is present only for Sandbox
    obj-$(CONFIG_SANDBOX) += host.o

    that's why mark this test to be run only at Sandbox

    Signed-off-by: Michal Simek
    Acked-by: Simon Glass

    Michal Simek
     
  • Without this, the test fails if the test is run with a cwd other than the
    root of the U-Boot source tree.

    Fixes: 8729d582595d ("test: Convert the vboot test to test/py")
    Signed-off-by: Stephen Warren
    Reviewed-by: Simon Glass

    Stephen Warren
     

17 Jul, 2016

1 commit


15 Jul, 2016

14 commits


09 Jul, 2016

2 commits

  • Some archs like MIPS or PPC have a different 'bdinfo' output
    than ARM regarding the memory configuration. Also support
    'memstart = 0x*' in u_boot_utils.find_ram_base() to make
    all tests requiring the RAM base working on those archs.

    Signed-off-by: Daniel Schwierzeck
    Acked-by: Stephen Warren

    Daniel Schwierzeck
     
  • Prior to this patch, any VT100 codes emitted by U-Boot are considered part
    of a command's output, which often causes tests to fail. For example,
    test_env_echo_exists executes printenv, and then considers any text on a
    line before an = sign as a valid U-Boot environment variable name. This
    includes any VT100 codes emitted. When the test later attempts to use that
    variable, the name would be invalid since it includes the VT100 codes.
    Solve this by stripping VT100 codes from the match buffer, so they are
    never seen by higher level test code.

    The codes are still logged unmodified, so that users can expect U-Boot's
    exact output without interference. This does clutter the log file a bit.
    However, it allows users to see exactly what U-Boot emitted rather than a
    modified version, which hopefully is better for debugging. It's also much
    simpler to implement, since logging happens as soon as text is received,
    and so stripping the VT100 codes from the log would require handling
    reception and stripping of partial VT100 codes.

    Signed-off-by: Stephen Warren

    Stephen Warren