Skip to content

Commit

Permalink
Docs job cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichalski-ant committed Jan 26, 2024
1 parent d326890 commit 95d5a60
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ machine LoadPlatformDescriptionFromString 'virtio: Storage.VirtIOBlockDevice @ s
virtio LoadImage @images/rootfs.img

machine LoadPlatformDescriptionFromString 'virtio2: Storage.VirtIOBlockDevice @ sysbus 0x100e0000 { IRQ -> plic@51 }'
virtio2 LoadImage @/home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/drive.img true
virtio2 LoadImage @/home/runner/work/protoplaster/protoplaster/drive.img true


showAnalyzer uart0
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 11 additions & 15 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,23 @@ 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: Prepare drive image for results from Renode
run: |
truncate drive.img -s 128MB
mkfs.ext4 drive.img
- 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
resc: /home/runner/work/protoplaster/protoplaster/github/test_platform/init.resc
repl: /home/runner/work/protoplaster/protoplaster/github/test_platform/platform.repl
arch: riscv64
kernel: /home/runner/work/protoplaster/protoplaster/protoplaster/test_platform/kernel-riscv64-hifive_unleashed_virtio.tar.xz
kernel: /home/runner/work/protoplaster/protoplaster/github/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
image: /home/runner/work/protoplaster/protoplaster/github/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 .
Expand All @@ -59,8 +58,6 @@ jobs:
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: |
Expand All @@ -69,14 +66,13 @@ jobs:
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
/home/runner/work/protoplaster/protoplaster/github/test_platform/renode_network.yml
/home/runner/work/protoplaster/protoplaster/github/test_platform/v4l2.yml
- name: Read report from image
run: |
mkdir guest_out
sudo mount protoplaster/test_platform/drive.img guest_out
ls guest_out
sudo mount drive.img guest_out
cp guest_out/report.md report.md
- name: Generate system report from yml
Expand Down
Binary file removed protoplaster/test_platform/drive.img
Binary file not shown.
Binary file not shown.

0 comments on commit 95d5a60

Please sign in to comment.