assert_spec linux # # Check used commands # set dd [installed_command dd] set sfdisk [installed_command sfdisk] set sgdisk [installed_command sgdisk] create_boot_directory build { core init timer server/lx_block server/report_rom app/block_tester server/part_block } proc create_disk_image {number} { global dd global sfdisk global sgdisk catch { exec $dd if=/dev/zero of=bin/block$number.raw bs=1M count=0 seek=2048 } if { $number == 0 } { exec echo -e "2048 2097151 - -\n2099200 2095070 - -" | $sfdisk -f bin/block$number.raw } else { catch { exec $sgdisk --clear bin/block$number.raw } catch { exec $sgdisk -n1:2048:2099199 -n2:2099200:4194270 bin/block$number.raw } } } install_config { } create_disk_image 0 create_disk_image 1 build_boot_image { core init timer block_tester report_rom ld.lib.so part_block block0.raw block1.raw lx_block } run_genode_until {.*--- all tests finished ---.*\n} 360 set serial_id [output_spawn_id] run_genode_until {.*--- all tests finished ---.*\n} 360 $serial_id run_genode_until {.*--- all tests finished ---.*\n} 360 $serial_id run_genode_until {.*--- all tests finished ---.*\n} 360 $serial_id exec rm -f bin/block0.raw bin/block1.raw