#
# \brief Test for running python
# \author Norman Feske
# \date 2011-11-22
#
if {![have_spec x86]} {
puts "Run script is only supported on x86"; exit 0 }
#
# Build
#
build {
core init
test/python
}
create_boot_directory
#
# Generate config
#
set config {
}
install_config $config
#
# Boot modules
#
exec cp [genode_dir]/libports/src/test/python/hello.py bin/
# generic modules
set boot_modules {
core init
ld.lib.so libc.lib.so libc_log.lib.so libc_rom.lib.so libm.lib.so python.lib.so
test-python
hello.py
}
build_boot_image $boot_modules
#
# Execute test case
#
append qemu_args " -m 128 -nographic "
run_genode_until {.*child exited with exit value 0.*} 60
grep_output {test-python\] }
compare_output_to {
[init -> test-python]
[init -> test-python] -============================-
[init -> test-python] || ||
[init -> test-python] || Python Core 2.6.4 ||
[init -> test-python] || ||
[init -> test-python] || Genode 11.11 ||
[init -> test-python] || ||
[init -> test-python] -============================-
[init -> test-python]
[init -> test-python] 2011 by Genode Labs
[init -> test-python]
}
exec rm bin/hello.py
# vi: set ft=tcl :