if {[expr ![have_include "power_on/qemu"] && ![have_spec linux]]} { puts "Test only runs in Qemu or Linux.\n"; exit 0 } create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/src/init \ [depot_user]/src/vfs_block \ [depot_user]/src/vfs_import build { test/fatfs_block_io lib/libc lib/vfs } install_config { } set disk_image "bin/test.hda" set cmd "dd if=/dev/zero of=$disk_image bs=512 count=4096" puts "creating disk image: $cmd" catch { exec sh -c $cmd } build_boot_image [list {*}[build_artifacts] test.hda] append qemu_args " -nographic " run_genode_until {.*child "test-fatfs_block_io" exited with exit value 0.*} 60 exec rm -f $disk_image