Skip to content

Commit

Permalink
README.md: added tutorial of how to run a sample test
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Prusinowski <jan.prusinowski@3mdeb.com>
  • Loading branch information
JanPrusinowski committed Jun 4, 2024
1 parent a3fbddc commit e1874a2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,26 @@ platform config file.
FW_FILE=$FW_FILE DEVICE_IP=$DEVICE_IP RTE_IP=$RTE_IP CONFIG=$CONFIG ./scripts/regression.sh
```

## Run sample test

Start quemu:

'''
./scripts/ci/qemu-run.sh graphic firmware
'''

Open a new terminal, activate venv and start example test:

'''
source venv/bin/activate
robot -L TRACE -v config:qemu -v rte_ip:127.0.0.1 -v snipeit:no \
-t "PXE007.001*" dasharo-compatibility/network-boot.robot
'''

If everything is setup correctly, you should see tests progress in quemu.
After the test ends log files 'output.xml' 'log.html' and 'report.html' can be
found in 'open-source-firmware-validation' folder.

## Useful refactoring tools

* [sherlock](https://github.com/MarketSquare/robotframework-sherlock)
Expand Down
1 change: 1 addition & 0 deletions platform-configs/include/protectli-v1x10.robot
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ${DMIDECODE_TYPE}= Desktop
${NVME_DISK_SUPPORT}= ${TRUE}
${MEASURED_BOOT_SUPPORT}= ${TRUE}


*** Keywords ***
Power On
[Documentation] Keyword clears telnet buffer and sets Device Under Test
Expand Down
2 changes: 1 addition & 1 deletion sonoff-rest-api

0 comments on commit e1874a2

Please sign in to comment.