22 May, 2017

1 commit


11 May, 2017

1 commit


10 May, 2017

1 commit

  • Those tests check:
    - the ability for a phy-user to get a phy based on its name or its index
    - the ability of a phy device (provider) to manage multiple ports
    - the ability to perform operations on the phy (init,deinit,on,off)
    - the behavior of the uclass when optional operations are not implemented

    Signed-off-by: Jean-Jacques Hiblot
    Reviewed-by: Simon Glass

    Jean-Jacques Hiblot
     

08 May, 2017

1 commit

  • This is a simple uclass for Watchdog Timers. It has four operations:
    start, restart, reset, stop. Drivers must implement start, restart and
    stop operations, while implementing reset is optional: It's default
    implementation expires watchdog timer in one clock tick.

    Signed-off-by: Maxim Sloyko
    Reviewed-by: Simon Glass

    maxims@google.com
     

28 Apr, 2017

1 commit

  • Unfortunately a test for the PWM uclass was not included when it was
    submitted. This was noticed when trying to add more functionality:

    http://patchwork.ozlabs.org/patch/748172/

    Add a simple test to get us started.

    Signed-off-by: Simon Glass

    Simon Glass
     

15 Apr, 2017

4 commits


05 Apr, 2017

2 commits

  • Add a test for the correct device removal. Currently two different ways
    for device removal are supported:

    - Normal device removal via the device_remove() API
    - Removal via selective device driver flags (DM_FLAG_ACTIVE_DMA)

    This new test "remove_active_dma" adds tests cases for those both ways
    of removal. This is done by adding a new test driver, which has this
    flag set.

    Signed-off-by: Stefan Roese
    Cc: Simon Glass

    Stefan Roese
     
  • This patch adds the flags parameter to device_remove() and changes all
    calls to this function to provide the default value of DM_REMOVE_NORMAL
    for "normal" device removal.

    This is in preparation for the driver specific pre-OS (e.g. DMA
    cancelling) remove support.

    Signed-off-by: Stefan Roese
    Cc: Simon Glass
    Acked-by: Simon Glass

    Stefan Roese
     

21 Mar, 2017

1 commit


08 Feb, 2017

1 commit

  • At present devices use a simple integer offset to record the device tree
    node associated with the device. In preparation for supporting a live
    device tree, which uses a node pointer instead, refactor existing code to
    access this field through an inline function.

    Signed-off-by: Simon Glass

    Simon Glass
     

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

2 commits


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

3 commits


23 Sep, 2016

6 commits


22 Sep, 2016

1 commit


23 Aug, 2016

1 commit

  • The fs-test.sh script expected there to be a \n\r style newline at the
    end of the output. This is no longer the case, so use 'tr' to remove the
    \r that we get.

    Fixes: (c5917b4b054d "dm: serial-uclass: Move a carriage return before a
    line feed")
    Signed-off-by: Tom Rini

    Tom Rini
     

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
     

20 Aug, 2016

1 commit

  • This adds a bunch of unit tests for the "fdt apply" command.

    They've all been run successfully in the sandbox. However, as you still
    require an out-of-tree dtc with overlay support, this is disabled by
    default.

    Acked-by: Simon Glass
    Acked-by: Pantelis Antoniou
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     

06 Aug, 2016

6 commits