Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
maska989 committed Dec 5, 2023
1 parent 6b34df4 commit e9f10fb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
18 changes: 18 additions & 0 deletions psh/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,69 +12,87 @@ test:

- name: auth
harness: test-auth.py
reboot: True

#FIXME - test-pshlogin.py is only for targets with root
- name: pshlogin
harness: test-pshlogin.py
reboot: True
targets:
exclude: [armv7m7-imxrt106x-evk, armv7m7-imxrt117x-evk, armv7m4-stm32l4x6-nucleo, riscv64-generic-qemu]

- name: echo
harness: test-echo.py
reboot: True

- name: date
harness: test-date.py
reboot: True

- name: prompt
harness: test-prompt.py
reboot: True

- name: autocompletion
harness: test-autocompletion.py
reboot: True

- name: ps
harness: test-ps.py
reboot: True

- name: cat
harness: test-cat.py
reboot: True

- name: cat-shells
harness: test-cat-shells.py
reboot: True
targets:
exclude: [armv7m7-imxrt106x-evk, armv7m7-imxrt117x-evk, armv7m4-stm32l4x6-nucleo, riscv64-generic-qemu]

- name: kill
harness: test-kill.py
reboot: True

- name: mkdir
harness: test-mkdir.py
reboot: True

- name: touch
harness: test-touch.py
reboot: True

- name: touch-rootfs
harness: test-touch-rootfs.py
reboot: True
targets:
exclude: [armv7m7-imxrt106x-evk, armv7m7-imxrt117x-evk, armv7m4-stm32l4x6-nucleo, riscv64-generic-qemu]

- name: ls
harness: test-ls.py
reboot: True

- name: ls-rootfs
harness: test-ls-rootfs.py
reboot: True
targets:
exclude: [armv7m7-imxrt106x-evk, armv7m7-imxrt117x-evk, armv7m4-stm32l4x6-nucleo, riscv64-generic-qemu]

- name: runfile
harness: test-runfile.py
reboot: True
targets:
# runfile applet is not intended for non-rootfs targets
exclude: [armv7m7-imxrt106x-evk, armv7m7-imxrt117x-evk, armv7m4-stm32l4x6-nucleo, riscv64-generic-qemu]

- name: history
harness: test-history.py
reboot: True

- name: help
harness: test-help.py
reboot: True

- name: exit
targets:
Expand Down
7 changes: 7 additions & 0 deletions trunner/target/armv7a9.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
class ARMv7A9TargetRebooter(Rebooter):
# TODO add text mode reboot

def _reboot_soft(self):
self.host.set_reset(0)
time.sleep(0.05)
self.dut.clear_buffer()
self.host.set_reset(1)
time.sleep(0.05)

def _reboot_hard(self):
self.host.set_power(False)
# optimal power off time to prevent sustaining chips, e.g. flash memory, related to #540 issue
Expand Down

0 comments on commit e9f10fb

Please sign in to comment.