Add simple Solo5 tests to depot autopilot

Add the following Solo5 tests to Autopilot: hello, fpu, globals, quiet,
blk. The remaining tests require a Rtc service or IP routing.

Ref #3027
This commit is contained in:
Emery Hemingway 2018-11-29 11:11:49 +01:00 committed by Norman Feske
parent 5c2599e24e
commit f2df40f58b
13 changed files with 119 additions and 15 deletions

View File

@ -91,6 +91,7 @@ set avail_test_pkgs {
test-sequence
test-signal
test-slab
test-solo5
test-stdcxx
test-synced_interface
test-tcp_bulk_lwip
@ -144,6 +145,7 @@ set skip_test_pkg(test-rm_fault_no_nox) [expr [have_spec linux] || !$skip_test_p
set skip_test_pkg(test-lx_block) [expr ![have_spec linux]]
set skip_test_pkg(test-tcp_bulk_lwip) [expr ![have_spec x86]]
set skip_test_pkg(test-tcp_bulk_lxip) [expr ![have_spec x86]]
set skip_test_pkg(test-solo5) [expr ![have_spec x86_64]]
#
# FIXME

View File

@ -1,4 +1,4 @@
SOLO5_PORT_DIR := $(call select_from_ports,solo5)
REQUIRES += 64bit
INC_DIR += $(SOLO5_PORT_DIR)/include/solo5
INC_DIR += $(call select_from_repositories,/include/solo5)
INC_DIR += $(call select_from_repositories,include/solo5)
INC_DIR += $(call select_from_ports,solo5)/include/solo5

View File

@ -2,13 +2,15 @@ REQUIRES += 64bit
SHARED_LIB = yes
include $(REP_DIR)/lib/import/import-solo5.mk
INC_DIR += $(SOLO5_PORT_DIR)/src/lib/solo5/bindings
INC_DIR += $(REP_DIR)/src/lib/solo5
CC_OPT += -D__SOLO5_BINDINGS__ -Drestrict=__restrict__
SRC_CC = bindings.cc
SOLO5_PORT_DIR := $(call select_from_ports,solo5)
INC_DIR += $(SOLO5_PORT_DIR)/src/lib/solo5/bindings
INC_DIR += $(SOLO5_PORT_DIR)/include/solo5
INC_DIR += $(REP_DIR)/include/solo5
vpath %.cc $(SOLO5_PORT_DIR)/src/lib/solo5/bindings/genode
vpath %.cc $(REP_DIR)/src/lib/solo5/bindings/genode

View File

@ -1,13 +1,15 @@
content: include lib/symbols/solo5 LICENSE
MIRROR_FROM_REP_DIR = lib/import/import-solo5.mk lib/symbols/solo5
content: $(MIRROR_FROM_REP_DIR) include/solo5 LICENSE
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/solo5)/src/lib/solo5
include:
include/solo5:
mkdir -p $@
cp -r $(PORT_DIR)/include $@
cp -r $(REP_DIR)/include $@
cp -r $(PORT_DIR)/include/solo5/* $@
cp -r $(REP_DIR)/include/solo5/* $@
lib/symbols/solo5:
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
LICENSE:

View File

@ -0,0 +1 @@
Test of the Solo5 unikernel middleware.

View File

@ -0,0 +1,6 @@
_/src/init
_/src/nic_loopback
_/src/ram_blk
_/src/sequence
_/src/solo5
_/src/test-solo5

View File

@ -0,0 +1 @@
-

View File

@ -0,0 +1,68 @@
<runtime ram="32M" caps="1000" binary="init">
<events>
<timeout meaning="failed" sec="60" />
<log meaning="succeeded">
[init] child "test" exited with exit value 0
</log>
<log meaning="failed">Error: </log>
</events>
<content>
<rom label="ld.lib.so"/>
<rom label="nic_loopback"/>
<rom label="ram_blk"/>
<rom label="sequence"/>
<rom label="sequence"/>
<rom label="solo5.lib.so"/>
<rom label="solo5-test_blk"/>
<rom label="solo5-test_fpu"/>
<rom label="solo5-test_globals"/>
<rom label="solo5-test_hello"/>
<rom label="solo5-test_quiet"/>
<rom label="test-solo5"/>
</content>
<config>
<parent-provides>
<service name="CPU"/>
<service name="LOG"/>
<service name="PD"/>
<service name="RM"/>
<service name="ROM"/>
<service name="Timer"/>
</parent-provides>
<default-route> <any-service> <parent/> <any-child/> </any-service> </default-route>
<start name="nic_loopback" caps="96">
<resource name="RAM" quantum="1M"/>
<provides> <service name="Nic"/> </provides>
</start>
<start name="ram_blk" caps="96">
<resource name="RAM" quantum="9M"/>
<provides> <service name="Block"/> </provides>
<config size="8M" block_size="4096"/>
</start>
<start name="test" caps="256">
<binary name="sequence"/>
<resource name="RAM" quantum="16M"/>
<config>
<start name="solo5-test_hello">
<config>
<solo5 cmdline="Hello_Solo5"/>
<nic/> <blk/>
</config>
</start>
<start name="solo5-test_fpu"/>
<start name="solo5-test_globals"/>
<start name="solo5-test_quiet"/>
<start name="solo5-test_blk">
<config> <blk/> </config>
</start>
</config>
</start>
</config>
</runtime>

View File

@ -11,9 +11,8 @@ content: $(SRC_DIR) $(MIRROR_FROM_REP_DIR)
$(SRC_DIR):
mkdir -p $@
cp -rH $(REP_DIR)/$@/* $@/
cp -r $(PORT_DIR_SOLO5)/$@/* $@/
cp -r $(PORT_DIR_SOLO5)/include/solo5/solo5.h $@/
cp -r $(PORT_DIR_SOLO5)/include/solo5/* $@/bindings
cp $(PORT_DIR_SOLO5)/$@/LICENSE .
echo 'LIBS=solo5' > $@/target.mk

View File

@ -4,3 +4,4 @@ block_session
nic_session
rtc_session
timer_session
solo5

View File

@ -0,0 +1,19 @@
MIRROR_FROM_REP_DIR := src/test/solo5
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/solo5)
content: $(MIRROR_FROM_REP_DIR) src/lib/solo5/tests src/lib/solo5/bindings LICENSE
src/lib/solo5/bindings: $(PORT_DIR)
mkdir -p $@
cp $(PORT_DIR)/$@/*.c $@
src/lib/solo5/tests: $(PORT_DIR)
mkdir -p $@
cp -r $(PORT_DIR)/$@/test_* $@
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
LICENSE:
cp $(PORT_DIR)/src/lib/solo5/LICENSE $@

View File

@ -0,0 +1 @@
-

View File

@ -0,0 +1,2 @@
base
solo5