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 server/vfs_block lib/vfs/import 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 } # generic modules build_boot_image { core init timer ld.lib.so libc.lib.so vfs.lib.so libm.lib.so posix.lib.so vfs_block vfs_import.lib.so test-libc_block 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 :