set use_blk_cache 0 # # Build # set build_components { core init drivers/timer drivers/ahci server/part_blk server/rump_fs test/libc_vfs } lappend_if [have_spec acpi] build_components drivers/acpi lappend_if [have_spec pci] build_components drivers/pci lappend_if [have_spec pci] build_components drivers/pci/device_pd lappend_if $use_blk_cache build_components server/blk_cache build $build_components create_boot_directory # # Generate config # append config { } append_if $use_blk_cache config { } append config { } append_if [expr !$use_blk_cache] config { } append_if $use_blk_cache config { } append config { } install_config $config # # Boot modules # # generic modules set boot_modules { core init timer test-libc_vfs ahci part_blk blk_cache rump.lib.so rump_fs.lib.so rump_fs ld.lib.so libc.lib.so } lappend_if [have_spec pci] boot_modules pci_drv lappend_if [have_spec acpi] boot_modules acpi_drv lappend_if [have_spec nova] boot_modules pci_device_pd lappend_if $use_blk_cache boot_modules blk_cache build_boot_image $boot_modules append qemu_args " -m 256 -nographic" append qemu_args " -drive id=disk,file=var/run/rump_ext2.img,if=none -device ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0 -boot d" run_genode_until {.*child exited with exit value 0.*} 60 puts "\nTest succeeded\n"