assert_spec linux
if {[expr ![info exists ::env(CBE_KEEP)]]} {
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
}
create_boot_directory
proc cbe_image_file { } {
return "vfs_cbe_block.img"
}
set use_interactively [expr ![get_cmd_switch --autopilot]]
import_from_depot [depot_user]/pkg/[drivers_interactive_pkg] \
[depot_user]/pkg/terminal \
[depot_user]/src/ncurses \
[depot_user]/src/bash \
[depot_user]/src/coreutils \
[depot_user]/src/nitpicker
build {
core
timer
init
server/lx_fs
lib/vfs/cbe
lib/vfs/cbe_crypto/aes_cbc
lib/vfs/cbe_crypto/memcopy
lib/vfs/cbe_trust_anchor
lib/vfs/import
lib/vfs/pipe
test/vfs_stress
test/libc
server/log_terminal
server/report_rom
server/fs_rom
app/cbe_init_trust_anchor
}
set config {
}
append_if $use_interactively config {
}
append_if [expr !$use_interactively] config {
}
append config {
2018-01-01 00:01
}
install_config $config
set shell_script "run/vfs_cbe.sh"
set repo "[repository_contains $shell_script]"
exec cp $repo/$shell_script bin/
append boot_modules {
lx_fs
cbe_init_trust_anchor
spark.lib.so
libsparkcrypto.lib.so
cbe_cxx.lib.so
vfs_cbe.lib.so
vfs_cbe_crypto_aes_cbc.lib.so
vfs_cbe_crypto_memcopy.lib.so
vfs_cbe_trust_anchor.lib.so
vfs_cbe.sh
vfs.lib.so
vfs_import.lib.so
vfs_pipe.lib.so
posix.lib.so
libc.lib.so
libcrypto.lib.so
log_terminal
fs_rom
report_rom
sequence
init
core
timer
ld.lib.so
}
append boot_modules {
encrypted_private_key superblock_hash
}
append boot_modules [cbe_image_file]
set fd [open [run_dir]/genode/focus w]
puts $fd " \" domain=\"default\"/>"
close $fd
build_boot_image $boot_modules
if {$use_interactively} {
run_genode_until forever
} else {
run_genode_until {.*--- Automated CBE testing finished.*} 1800
}