# # Check used commands # set dd [check_installed dd] # # Build # set build_components { core init drivers/timer server/ram_blk server/rump_cgd server/rump_fs test/libc_vfs } build $build_components # # Prepare image # set disk_image "cgd.raw" puts "preparing bin/$disk_image..." if {![file exists $disk_image]} { catch { exec $dd if=/dev/zero of=bin/$disk_image bs=1M count=16 } } set cgd_key [exec [genode_dir]/tool/rump -c bin/$disk_image] if {[catch { exec [genode_dir]/tool/rump -c -d "/dev/rcgd0a" -f -F ext2fs -k "$cgd_key" bin/$disk_image }]} { puts stderr "could not format crypto device." exit 1 } create_boot_directory # # Generate config # append config { } append config " " append config { key} append config " $cgd_key" append config { } install_config $config # # Boot modules # # generic modules set boot_modules { core init timer ram_blk rump_cgd rump_fs test-libc_vfs ld.lib.so libc.lib.so rump.lib.so rump_cgd.lib.so rump_fs.lib.so } append boot_modules "$disk_image" build_boot_image $boot_modules append qemu_args " -m 256 -nographic" run_genode_until {.*child "test-libc_vfs" exited with exit value 0.*} 60 exec rm -f bin/$disk_image puts "\nTest succeeded\n" # vi: set ft=tcl :