@@ -156,18 +156,26 @@ jobs:
156
156
# Run
157
157
- run : ${{ env.BUILD_DIR }}usr/gen_init_cpio .github/workflows/qemu-initramfs.desc > qemu-initramfs.img
158
158
159
- - run : qemu-system-${{ env.QEMU_ARCH }} -kernel ${{ env.BUILD_DIR }}${{ env.IMAGE_PATH }} -initrd qemu-initramfs.img -M ${{ env.QEMU_MACHINE }} -cpu ${{ env.QEMU_CPU }} -smp 2 -nographic -no-reboot -append '${{ env.QEMU_APPEND }} rust_example.my_i32=123321 rust_example_2.my_i32=234432' | tee qemu-stdout.log
159
+ - run : qemu-system-${{ env.QEMU_ARCH }} -kernel ${{ env.BUILD_DIR }}${{ env.IMAGE_PATH }} -initrd qemu-initramfs.img -M ${{ env.QEMU_MACHINE }} -cpu ${{ env.QEMU_CPU }} -smp 2 -nographic -no-reboot -append '${{ env.QEMU_APPEND }} rust_example.my_i32=123321 rust_example.my_str=🦀mod rust_example.my_invbool=y rust_example_2.my_i32=234432' | tee qemu-stdout.log
160
160
161
161
# Check
162
162
- run : grep -F '] Rust Example (init)' qemu-stdout.log
163
163
- run : grep -F '] [2] Rust Example (init)' qemu-stdout.log
164
164
- run : grep -F '] [3] Rust Example (init)' qemu-stdout.log
165
165
- run : grep -F '] [4] Rust Example (init)' qemu-stdout.log
166
166
167
- - run : " grep -F '] my_i32: 123321' qemu-stdout.log"
168
- - run : " grep -F '] [2] my_i32: 234432' qemu-stdout.log"
169
- - run : " grep -F '] [3] my_i32: 345543' qemu-stdout.log"
170
- - run : " grep -F '] [4] my_i32: 456654' qemu-stdout.log"
167
+ - run : " grep -F '] my_i32: 123321' qemu-stdout.log"
168
+ - run : " grep -F '] [2] my_i32: 234432' qemu-stdout.log"
169
+ - run : " grep -F '] [3] my_i32: 345543' qemu-stdout.log"
170
+ - run : " grep -F '] [4] my_i32: 456654' qemu-stdout.log"
171
+
172
+ - run : " grep -F '] my_invbool: false' qemu-stdout.log"
173
+ - run : " grep -F '] [2] my_invbool: true' qemu-stdout.log"
174
+
175
+ - run : " grep '\\ ] my_str: Ok(\" 🦀mod\" )\\ s*$' qemu-stdout.log"
176
+ - run : " grep '\\ ] \\ [2\\ ] my_str: Ok(\" default str val\" )\\ s*$' qemu-stdout.log"
177
+ - run : " grep '\\ ] \\ [3\\ ] my_str: Ok(\" 🦀mod\" )\\ s*$' qemu-stdout.log"
178
+ - run : " grep '\\ ] \\ [4\\ ] my_str: Ok(\" default str val\" )\\ s*$' qemu-stdout.log"
171
179
172
180
- run : grep -F '] [3] Rust Example (exit)' qemu-stdout.log
173
181
- run : grep -F '] [4] Rust Example (exit)' qemu-stdout.log
0 commit comments