mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-03 04:26:45 +00:00
Improve synchronization in lwip.run
The lynx HTTP GET test was started before the HTTP server was up and therefore failed on Qemu/PBXA9. Issue #3874
This commit is contained in:
parent
658030ef49
commit
f09b0dc224
@ -37,10 +37,8 @@ import_from_depot [depot_user]/src/[base_src] \
|
|||||||
[depot_user]/src/vfs_lwip \
|
[depot_user]/src/vfs_lwip \
|
||||||
[depot_user]/src/vfs
|
[depot_user]/src/vfs
|
||||||
|
|
||||||
build { test/lwip/http_srv }
|
|
||||||
|
|
||||||
install_config {
|
install_config {
|
||||||
<config verbose="yes">
|
<config verbose="yes" prio_levels="2">
|
||||||
<parent-provides>
|
<parent-provides>
|
||||||
<service name="ROM"/>
|
<service name="ROM"/>
|
||||||
<service name="IRQ"/>
|
<service name="IRQ"/>
|
||||||
@ -61,7 +59,7 @@ install_config {
|
|||||||
<provides> <service name="Timer"/> </provides>
|
<provides> <service name="Timer"/> </provides>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
<start name="drivers" caps="1000" managing_system="yes">
|
<start name="drivers" caps="1000" managing_system="yes" priority="-1">
|
||||||
<resource name="RAM" quantum="32M"/>
|
<resource name="RAM" quantum="32M"/>
|
||||||
<binary name="init"/>
|
<binary name="init"/>
|
||||||
<route>
|
<route>
|
||||||
@ -72,7 +70,7 @@ install_config {
|
|||||||
<provides> <service name="Nic"/> </provides>
|
<provides> <service name="Nic"/> </provides>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
<start name="test-lwip_httpsrv" caps="120">
|
<start name="test-lwip_httpsrv" caps="120" priority="-1">
|
||||||
<resource name="RAM" quantum="4M"/>
|
<resource name="RAM" quantum="4M"/>
|
||||||
<config>
|
<config>
|
||||||
<vfs>
|
<vfs>
|
||||||
@ -85,6 +83,8 @@ install_config {
|
|||||||
</config>
|
</config>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build { test/lwip/http_srv }
|
||||||
|
|
||||||
build_boot_image { test-lwip_httpsrv }
|
build_boot_image { test-lwip_httpsrv }
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -93,7 +93,7 @@ build_boot_image { test-lwip_httpsrv }
|
|||||||
append qemu_args " -nographic "
|
append qemu_args " -nographic "
|
||||||
append_qemu_nic_args "hostfwd=tcp::5555-:80"
|
append_qemu_nic_args "hostfwd=tcp::5555-:80"
|
||||||
|
|
||||||
run_genode_until {.*lwIP Nic interface up.*\n} 30
|
run_genode_until {.*Start the server loop.*\n} 30
|
||||||
|
|
||||||
if {[have_include "power_on/qemu"]} {
|
if {[have_include "power_on/qemu"]} {
|
||||||
set uri "http://localhost:5555/"
|
set uri "http://localhost:5555/"
|
||||||
|
Loading…
Reference in New Issue
Block a user