if {[expr ![have_include "power_on/qemu"] && ![have_spec linux]]} { puts "Test only supports Qemu or Linux.\n"; exit 0 } create_boot_directory build { core init timer lib/ld lib/libc lib/posix lib/vfs_import server/vfs_block test/libc_block } install_config { } # # Boot modules # set disk_image "bin/test.hda" set cmd "dd if=/dev/zero of=$disk_image bs=1024 count=65536" 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-libc_block" exited with exit value 0.*} 60 exec rm -f $disk_image puts "\nTest succeeded\n" # vi: set ft=tcl :