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_file { } { return "cbe_block.img" } 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 } build $build_components create_boot_directory append config { } install_config $config exec rm -rf bin/[cbe_image_file] catch { exec $dd if=/dev/urandom of=bin/[cbe_image_file] 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 } append boot_modules [cbe_image_file] build_boot_image $boot_modules append qemu_args " -nographic -m 1280 " run_genode_until "child \"test\" exited with exit value.*\n" 300 grep_output {\[init\] child "test" exited with exit value} compare_output_to {[init] child "test" exited with exit value 0}