if {![have_board pbxa9]} { puts "Test requires board pbxa9" exit } create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/src/init \ [depot_user]/src/platform \ [depot_user]/raw/pbxa9-devices build { driver/sd_card app/block_tester } install_config { } build_boot_image [build_artifacts] set disk_image "bin/sd_card.img" if { [file exists $disk_image] == 0 } then { # create empty block device file catch { exec dd if=/dev/zero of=$disk_image bs=1M count=512 } } append qemu_args "-drive file=$disk_image,format=raw,if=sd,cache=writeback -nographic " run_genode_until {.*child "block_tester" exited with exit value 0.*\n} 30 exec rm $disk_image # vi: set ft=tcl :