Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichalski-ant committed Jan 26, 2024
1 parent d326890 commit 0476e50
Showing 1 changed file with 41 additions and 37 deletions.
78 changes: 41 additions & 37 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,44 +33,48 @@ jobs:
tuttest README.md example > example.yml
protoplaster -t example.yml --generate-docs
# - name: Generate test report from yml
# run: |
# protoplaster -t example.yml --csv report.csv
# protoplaster-test-report report.csv -t md
- name: Generate test report from yml
run: |
sudo apt install v4l-utils linux-modules-extra-$(uname -r) 1>/dev/null
sudo modprobe vivid
sudo modprobe i2c-stub chip_addr=0x70
sudo modprobe i2c-stub chip_addr=0x3C
protoplaster -t example.yml --csv report.csv
protoplaster-test-report report.csv -t md
- name: Generate test report in Renode
uses: antmicro/renode-linux-runner-action@v1
with:
board: custom
resc: /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/init.resc
repl: /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/platform.repl
arch: riscv64
kernel: /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/kernel-riscv64-hifive_unleashed_virtio.tar.xz
image-type: native
image: /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/image-riscv64-default.tar.xz
shared-dirs: ./
renode-run: |
ls /dev | grep video
python -m venv .venv
source .venv/bin/activate
pip install .
protoplaster -t example.yml --csv report.csv
protoplaster-test-report report.csv -t md
mkdir -p protoplaster/host_dir
mount /dev/vdb protoplaster/host_dir
cp report.md protoplaster/host_dir/report.md
cp report.csv protoplaster/host_dir/report.csv
echo "file from guest" > protoplaster/host_dir/test2.txt
ls protoplaster/host_dir
umount protoplaster/host_dir
devices: |
# vivid
gpio 0 32
i2c 0x3C
i2c 0x70
tasks: |
/home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/renode_network.yml
/home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/v4l2.yml
# - name: Generate test report in Renode
# uses: antmicro/renode-linux-runner-action@v1
# with:
# board: custom
# resc: /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/init.resc
# repl: /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/platform.repl
# arch: riscv64
# kernel: /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/kernel-riscv64-hifive_unleashed_virtio.tar.xz
# image-type: native
# image: /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/image-riscv64-default.tar.xz
# shared-dirs: ./
# renode-run: |
# ls /dev | grep video
# python -m venv .venv
# source .venv/bin/activate
# pip install .
# protoplaster -t example.yml --csv report.csv
# protoplaster-test-report report.csv -t md
# mkdir -p protoplaster/host_dir
# mount /dev/vdb protoplaster/host_dir
# cp report.md protoplaster/host_dir/report.md
# cp report.csv protoplaster/host_dir/report.csv
# echo "file from guest" > protoplaster/host_dir/test2.txt
# ls protoplaster/host_dir
# umount protoplaster/host_dir
# devices: |
# # vivid
# gpio 0 32
# i2c 0x3C
# i2c 0x70
# tasks: |
# /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/renode_network.yml
# /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/v4l2.yml

- name: Read report from image
run: |
Expand Down

0 comments on commit 0476e50

Please sign in to comment.