2018-02-18 11:17:58 +00:00
|
|
|
if {[have_spec linux]} {
|
|
|
|
puts "The [run_name] scenario requires QEMU networking."
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2020-07-27 12:57:04 +00:00
|
|
|
create_boot_directory
|
2018-02-18 11:17:58 +00:00
|
|
|
|
2020-07-27 12:57:04 +00:00
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/pkg/[drivers_nic_pkg] \
|
|
|
|
[depot_user]/src/init \
|
|
|
|
[depot_user]/src/libc \
|
|
|
|
[depot_user]/src/posix \
|
|
|
|
[depot_user]/src/vfs \
|
|
|
|
[depot_user]/src/vfs_lwip \
|
|
|
|
[depot_user]/src/zlib
|
2019-04-26 10:47:33 +00:00
|
|
|
|
2020-07-27 12:57:04 +00:00
|
|
|
build { test/libc_getaddrinfo }
|
2018-02-18 11:17:58 +00:00
|
|
|
|
2020-07-27 12:57:04 +00:00
|
|
|
install_config {
|
2018-02-18 11:17:58 +00:00
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="ROM"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2020-07-27 12:57:04 +00:00
|
|
|
<default caps="128"/>
|
2018-02-18 11:17:58 +00:00
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Timer"/> </provides>
|
|
|
|
</start>
|
2020-07-27 12:57:04 +00:00
|
|
|
|
2020-08-27 12:44:37 +00:00
|
|
|
<start name="drivers" caps="1000" managing_system="yes">
|
|
|
|
<resource name="RAM" quantum="32M"/>
|
2020-07-27 12:57:04 +00:00
|
|
|
<binary name="init"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <parent label="drivers.config"/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
<provides> <service name="Nic"/> </provides>
|
2018-02-18 11:17:58 +00:00
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="test-libc_getaddrinfo" caps="256">
|
2016-09-18 17:46:54 +00:00
|
|
|
<resource name="RAM" quantum="16M"/>
|
2018-02-18 11:17:58 +00:00
|
|
|
<config>
|
|
|
|
<vfs>
|
|
|
|
<dir name="dev"> <log/> </dir>
|
2016-09-18 17:46:54 +00:00
|
|
|
<dir name="socket"> <lwip dhcp="yes"/> </dir>
|
2018-02-18 11:17:58 +00:00
|
|
|
</vfs>
|
|
|
|
<libc stdout="/dev/log" socket="/socket"/>
|
2020-07-27 12:57:04 +00:00
|
|
|
<arg value="test-libc_getaddrinfo"/>
|
2018-02-18 11:17:58 +00:00
|
|
|
<arg value="genode.org"/>
|
|
|
|
<arg value="hypervisor.org"/>
|
|
|
|
<arg value="example.com"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2020-07-27 12:57:04 +00:00
|
|
|
build_boot_image { test-libc_getaddrinfo }
|
2018-02-18 11:17:58 +00:00
|
|
|
|
2020-04-02 19:20:50 +00:00
|
|
|
append qemu_args " -nographic "
|
|
|
|
append_qemu_nic_args
|
2018-02-18 11:17:58 +00:00
|
|
|
|
|
|
|
run_genode_until "child .* exited with exit value 0.*\n" 20
|