# # \brief Test of FatFS block-io implementation # \author Emery Hemingway # \date 2017-07-31 # 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 } 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 { libc.lib.so vfs.lib.so libm.lib.so vfs_import.lib.so test-fatfs_block_io 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