# # \brief Test for running python # \author Norman Feske # \author Johannes Schlatow # \date 2011-11-22 # if {![have_spec x86]} { puts "Run script is only supported on x86"; exit 0 } proc depot_user {} { return [get_cmd_arg --depot-user local] } create_boot_directory import_from_depot [depot_user]/pkg/python3 # # Build # build { core init timer drivers/rtc server/dynamic_rom } # # Generate config # set config { print(" \r\n\r"); print(" -============================-"); print(" || ||"); print(" || Python Core 3 ||"); print(" || ||"); print(" || Genode 18.05 ||"); print(" || ||"); print(" -============================-"); print(" \r"); print(" 2018 by Genode Labs www.genode-labs.com"); print(" \r\n\r"); print("Hello again") } install_config $config # # Boot modules # # generic modules append boot_modules { core init ld.lib.so timer rtc_drv dynamic_rom } build_boot_image $boot_modules # # Execute test case # append qemu_args " -nographic " run_genode_until {.*Hello again.*} 60 grep_output {python3\] } compare_output_to { [init -> python3] [init -> python3] -============================- [init -> python3] || || [init -> python3] || Python Core 3 || [init -> python3] || || [init -> python3] || Genode 18.05 || [init -> python3] || || [init -> python3] -============================- [init -> python3] [init -> python3] 2018 by Genode Labs www.genode-labs.com [init -> python3] } # vi: set ft=tcl :