diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a801576..00e561e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -33,10 +33,10 @@ 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 + run: | + truncate drive.img -s 128MB + mkfs.ext4 drive.img - name: Generate test report in Renode uses: antmicro/renode-linux-runner-action@v1 @@ -50,7 +50,6 @@ jobs: 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 . @@ -59,12 +58,8 @@ 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: | - # vivid gpio 0 32 i2c 0x3C i2c 0x70 @@ -75,7 +70,7 @@ jobs: - name: Read report from image run: | mkdir guest_out - sudo mount protoplaster/test_platform/drive.img guest_out + sudo mount drive.img guest_out ls guest_out cp guest_out/report.md report.md diff --git a/protoplaster/test_platform/drive.img b/protoplaster/test_platform/drive.img deleted file mode 100644 index 9e796f7..0000000 Binary files a/protoplaster/test_platform/drive.img and /dev/null differ diff --git a/protoplaster/test_platform/init.resc b/protoplaster/test_platform/init.resc index 5de607b..c1ca1d5 100644 --- a/protoplaster/test_platform/init.resc +++ b/protoplaster/test_platform/init.resc @@ -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