# # \brief Test of Block session interface provided by server/part_blk # set block_count 20480 if [catch { set sfdisk [ exec which sfdisk ] }] { puts "sfdisk needs to be installed!" exit 1 } # # Build # build { core init drivers/timer server/rom_blk server/part_blk test/blk/cli } if { [file exists bin/ata.raw] == 0 } then { # create empty block device file catch { exec dd if=/dev/zero of=bin/ata.raw bs=512 count=$block_count } # create two primary partitions (one is extented) and two logical paritions puts "using sfdisk to partition disk image, requires root privileges" catch { exec echo "2048,4096,c\n4096,16386,5\n0,0\n0,0\n6144,4096,c\n12288,8192,c\n" | $sfdisk -uS -f bin/ata.raw } } create_boot_directory # # Generate config # install_config { } # # Boot modules # build_boot_image { core init timer rom_blk part_blk test-blk-cli ata.raw } # # Qemu # append qemu_args " -nographic -m 128 " run_genode_until "Tests finished successfully.*\n.*Tests finished successfully.*\n" 50 exec rm bin/ata.raw puts "Test succeeded"