assert_spec linux assert_spec x86_64 exec rm -rf var/libcache/cbe exec rm -rf var/libcache/cbe_cxx exec rm -rf var/libcache/cbe_common exec rm -rf var/libcache/cbe_common_cxx exec rm -rf var/libcache/cbe_init exec rm -rf var/libcache/cbe_init_cxx exec rm -rf var/libcache/cbe_check exec rm -rf var/libcache/cbe_check_cxx exec rm -rf var/libcache/cbe_dump exec rm -rf var/libcache/cbe_dump_cxx set dd [installed_command dd] proc cbe_image_name { } { return "cbe_block.img" } proc local_cbe_image { } { return bin/[cbe_image_name] } proc autopilot_cbe_image { } { return /tmp/[cbe_image_name].[exec id -un] } set image_size 1024 if {[info exists ::env(CBE_IMAGE_SIZE)]} { set image_size $::env(CBE_IMAGE_SIZE) } proc cbe_image_size_mb { } { global image_size return $image_size } proc cbe_vbd_size_mb { } { return [expr [cbe_image_size_mb] / 2] } proc cbe_ft_size_mb { } { return [expr [cbe_image_size_mb] / 8] } append build_components { core init timer server/vfs app/cbe_tester server/log_terminal server/report_rom server/lx_fs server/lx_block lib/vfs_cbe_crypto_aes_cbc lib/vfs_cbe_trust_anchor lib/vfs_import lib/vfs_jitterentropy } build $build_components create_boot_directory append config { } install_config $config exec rm -rf [local_cbe_image] if { [get_cmd_switch --autopilot] } { exec rm -rf [autopilot_cbe_image] catch { exec $dd if=/dev/urandom of=[autopilot_cbe_image] bs=1M count=[cbe_image_size_mb] } exec ln -sf -T [autopilot_cbe_image] [local_cbe_image] } else { catch { exec $dd if=/dev/urandom of=[local_cbe_image] bs=1M count=[cbe_image_size_mb] } } append boot_modules { core init timer cbe_tester ld.lib.so spark.lib.so libsparkcrypto.lib.so cbe_cxx.lib.so cbe_check_cxx.lib.so cbe_dump_cxx.lib.so cbe_init_cxx.lib.so log_terminal report_rom lx_fs vfs lx_block libc.lib.so libcrypto.lib.so vfs.lib.so vfs_cbe_trust_anchor.lib.so vfs_cbe_crypto_aes_cbc.lib.so vfs_import.lib.so vfs_jitterentropy.lib.so } append boot_modules [cbe_image_name] build_boot_image $boot_modules append qemu_args " -nographic -m 1280 " run_genode_until "child \"test\" exited with exit value.*\n" 360 if { [get_cmd_switch --autopilot] } { exec rm -rf [local_cbe_image] exec rm -rf [autopilot_cbe_image] } grep_output {\[init\] child "test" exited with exit value} compare_output_to {[init] child "test" exited with exit value 0}