diff --git a/README.md b/README.md index 1e00e33c0a..d903fa1ebe 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,10 @@ IncludeOS is free software, with "no warranties or restrictions of any kind". ## Build status -| | Build from bundle | Build from source | -|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------| -| Master | [![Build Status](https://jenkins.includeos.org/buildStatus/icon?job=shield_master_bundle)](https://jenkins.includeos.org/job/shield_master_bundle/) | Coming soon | -| Dev | [![Build Status](https://jenkins.includeos.org/buildStatus/icon?job=shield_dev_bundle)](https://jenkins.includeos.org/job/shield_dev_bundle/) | Coming soon | +| | Build from bundle | +|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Master | [![Build Status](https://jenkins.includeos.org/buildStatus/icon?job=shield_master_bundle)](https://jenkins.includeos.org/job/shield_master_bundle/) | +| Dev | [![Build Status](https://jenkins.includeos.org/buildStatus/icon?job=shield_dev_bundle)](https://jenkins.includeos.org/job/shield_dev_bundle/) | ### Key features diff --git a/test/fs/integration/fat16/test.py b/test/fs/integration/fat16/test.py index 30060ab439..8d3f932f13 100755 --- a/test/fs/integration/fat16/test.py +++ b/test/fs/integration/fat16/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") from subprocess import call diff --git a/test/fs/integration/fat32/test.py b/test/fs/integration/fat32/test.py index c30a2bce6e..31a4a54e86 100755 --- a/test/fs/integration/fat32/test.py +++ b/test/fs/integration/fat32/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") from subprocess import call diff --git a/test/fs/integration/memdisk/test.py b/test/fs/integration/memdisk/test.py index bd32a4a098..e4fb9cab14 100755 --- a/test/fs/integration/memdisk/test.py +++ b/test/fs/integration/memdisk/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") from subprocess import call diff --git a/test/fs/integration/virtio_block/test.py b/test/fs/integration/virtio_block/test.py index 754cf320e4..8aefe80641 100755 --- a/test/fs/integration/virtio_block/test.py +++ b/test/fs/integration/virtio_block/test.py @@ -3,7 +3,8 @@ import subprocess import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") subprocess.call(['./image.sh']) diff --git a/test/hw/integration/serial/test.py b/test/hw/integration/serial/test.py index a2fa1aaa69..ac8b3eb4c1 100755 --- a/test/hw/integration/serial/test.py +++ b/test/hw/integration/serial/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") from subprocess import call diff --git a/test/hw/integration/virtio_queue/Makefile b/test/hw/integration/virtio_queue/Makefile index 7e0728917a..f3a76cec78 100644 --- a/test/hw/integration/virtio_queue/Makefile +++ b/test/hw/integration/virtio_queue/Makefile @@ -11,6 +11,14 @@ FILES = service.cpp LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest -I$(PWD)/mod/GSL/include +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) -I$(abspath $(current_dir)/../../../../mod/GSL/include) +else +LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest -I$(INCLUDEOS_SRC)/mod/GSL/include +endif + # Your disk image DISK= diff --git a/test/kernel/integration/custom_init/Makefile b/test/kernel/integration/custom_init/Makefile index 2c3b4580be..dccb3eda87 100644 --- a/test/kernel/integration/custom_init/Makefile +++ b/test/kernel/integration/custom_init/Makefile @@ -9,7 +9,13 @@ SERVICE_NAME = Custom pre-service initialization # Your service parts FILES = service.cpp custom_init1.cpp custom_init2.cpp custom_init3.cpp -LOCAL_INCLUDES = -I$(INCLUDEOS_SRC)/test/lest/include/lest +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) +else +LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest +endif # Your disk image DISK= diff --git a/test/kernel/integration/custom_init/test.py b/test/kernel/integration/custom_init/test.py index c465886c5f..d0b7dc372f 100755 --- a/test/kernel/integration/custom_init/test.py +++ b/test/kernel/integration/custom_init/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/kernel/integration/memmap/Makefile b/test/kernel/integration/memmap/Makefile index d14c139617..2973b84b54 100644 --- a/test/kernel/integration/memmap/Makefile +++ b/test/kernel/integration/memmap/Makefile @@ -9,7 +9,13 @@ SERVICE_NAME = Memmap Test Service # Your service parts FILES = service.cpp -LOCAL_INCLUDES = -I$(INCLUDEOS_SRC)/test/lest/include/lest +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) +else +LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest +endif # Your disk image DISK= diff --git a/test/kernel/integration/memmap/test.py b/test/kernel/integration/memmap/test.py index c705fb138a..03f0d3974e 100755 --- a/test/kernel/integration/memmap/test.py +++ b/test/kernel/integration/memmap/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/kernel/integration/timers/test.py b/test/kernel/integration/timers/test.py index c465886c5f..d0b7dc372f 100755 --- a/test/kernel/integration/timers/test.py +++ b/test/kernel/integration/timers/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/mod/gsl/Makefile b/test/mod/gsl/Makefile index e5f5f3dd21..c08e328d7d 100644 --- a/test/mod/gsl/Makefile +++ b/test/mod/gsl/Makefile @@ -11,6 +11,14 @@ FILES = service.cpp LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/mod/GSL/include -I$(INCLUDEOS_SRC)/test/lest/include/lest +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) -I$(abspath $(current_dir)/../../../../mod/GSL/include) +else +LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest -I$(INCLUDEOS_SRC)/mod/GSL/include +endif + # Your disk image DISK= diff --git a/test/mod/gsl/test.py b/test/mod/gsl/test.py index c465886c5f..d0b7dc372f 100755 --- a/test/mod/gsl/test.py +++ b/test/mod/gsl/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/net/integration/bufstore/test.py b/test/net/integration/bufstore/test.py index 14ad6d8a27..3ae22802f6 100755 --- a/test/net/integration/bufstore/test.py +++ b/test/net/integration/bufstore/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/net/integration/dhcp/test.py b/test/net/integration/dhcp/test.py index 7ca23a22bf..3c0e9b01cf 100755 --- a/test/net/integration/dhcp/test.py +++ b/test/net/integration/dhcp/test.py @@ -4,7 +4,8 @@ import os import subprocess -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/net/integration/ethernet/Makefile b/test/net/integration/ethernet/Makefile index 7a76439a08..6e6228cc76 100644 --- a/test/net/integration/ethernet/Makefile +++ b/test/net/integration/ethernet/Makefile @@ -9,7 +9,13 @@ SERVICE_NAME=Ethernet Module Test # Your service parts FILES=service.cpp +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) +else LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest +endif # Your disk image DISK= diff --git a/test/net/integration/ethernet/test.py b/test/net/integration/ethernet/test.py index 14ad6d8a27..3ae22802f6 100755 --- a/test/net/integration/ethernet/test.py +++ b/test/net/integration/ethernet/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/net/integration/ipv4/Makefile b/test/net/integration/ipv4/Makefile index 5f0dde3779..cd1d9448ca 100644 --- a/test/net/integration/ipv4/Makefile +++ b/test/net/integration/ipv4/Makefile @@ -9,7 +9,13 @@ SERVICE_NAME=IPv4 Module Test # Your service parts FILES=service.cpp +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) +else LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest +endif # Your disk image DISK= diff --git a/test/net/integration/ipv4/test.py b/test/net/integration/ipv4/test.py index 14ad6d8a27..3ae22802f6 100755 --- a/test/net/integration/ipv4/test.py +++ b/test/net/integration/ipv4/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/net/integration/tcp/test.py b/test/net/integration/tcp/test.py index 3241c421bc..0bbf603a74 100755 --- a/test/net/integration/tcp/test.py +++ b/test/net/integration/tcp/test.py @@ -4,7 +4,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/net/integration/transmit/test.py b/test/net/integration/transmit/test.py index aaa42771a8..69db786a14 100755 --- a/test/net/integration/transmit/test.py +++ b/test/net/integration/transmit/test.py @@ -2,7 +2,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/net/integration/udp/test.py b/test/net/integration/udp/test.py index 3e09791fb4..8f58c19330 100755 --- a/test/net/integration/udp/test.py +++ b/test/net/integration/udp/test.py @@ -3,7 +3,9 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) +print 'includeos_src: {0}'.format(includeos_src) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/platform/integration/unik/Makefile b/test/platform/integration/unik/Makefile index e610533c1f..4ddfaf2b70 100644 --- a/test/platform/integration/unik/Makefile +++ b/test/platform/integration/unik/Makefile @@ -9,7 +9,13 @@ SERVICE_NAME = Test Unik platform initialization # Your service parts FILES = service.cpp -LOCAL_INCLUDES = -I$(INCLUDEOS_SRC)/test/lest/include/lest +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) +else +LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest +endif # Your disk image DISK= diff --git a/test/platform/integration/unik/test.py b/test/platform/integration/unik/test.py index ad5f874748..3cbe3544f8 100755 --- a/test/platform/integration/unik/test.py +++ b/test/platform/integration/unik/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/stl/integration/crt/test.py b/test/stl/integration/crt/test.py index 26631ec903..e03b0f41e4 100755 --- a/test/stl/integration/crt/test.py +++ b/test/stl/integration/crt/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/stl/integration/exceptions/Makefile b/test/stl/integration/exceptions/Makefile index b8d7b8828c..5385e9bfbe 100644 --- a/test/stl/integration/exceptions/Makefile +++ b/test/stl/integration/exceptions/Makefile @@ -12,7 +12,13 @@ FILES = service.cpp # Your disk image DISK= +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) +else LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest +endif # IncludeOS location ifndef INCLUDEOS_INSTALL diff --git a/test/stl/integration/exceptions/test.py b/test/stl/integration/exceptions/test.py index 26631ec903..e03b0f41e4 100755 --- a/test/stl/integration/exceptions/test.py +++ b/test/stl/integration/exceptions/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/stl/integration/stl/Makefile b/test/stl/integration/stl/Makefile index 7430d31c3f..ff851a1e55 100644 --- a/test/stl/integration/stl/Makefile +++ b/test/stl/integration/stl/Makefile @@ -9,7 +9,13 @@ SERVICE_NAME = IncludeOS basic STL test # Your service parts FILES = service.cpp +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) +else LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest +endif # Your disk image DISK= diff --git a/test/stl/integration/stl/test.py b/test/stl/integration/stl/test.py index 26631ec903..e03b0f41e4 100755 --- a/test/stl/integration/stl/test.py +++ b/test/stl/integration/stl/test.py @@ -3,7 +3,8 @@ import sys import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/stress/Makefile b/test/stress/Makefile index 8701183661..322470d3ab 100644 --- a/test/stress/Makefile +++ b/test/stress/Makefile @@ -9,7 +9,13 @@ SERVICE_NAME = IncludeOS stress test # Your service parts FILES = service.cpp +# IncludeOS_SRC location +ifndef INCLUDEOS_SRC +current_dir := $(shell pwd) +LOCAL_INCLUDES=-I$(abspath $(current_dir)/../../../lest/include/lest) +else LOCAL_INCLUDES=-I$(INCLUDEOS_SRC)/test/lest/include/lest +endif # Your disk image DISK= diff --git a/test/stress/run.sh b/test/stress/run.sh index 66dbfb6ad6..ba4d90f1fc 100755 --- a/test/stress/run.sh +++ b/test/stress/run.sh @@ -1,2 +1,2 @@ #! /bin/bash -source ${INCLUDEOS_HOME-$HOME/IncludeOS_install}/etc/run.sh stresstest.img +source ${INCLUDEOS_HOME-$HOME/IncludeOS_install}/etc/run.sh test_stresstest.img diff --git a/test/stress/test.py b/test/stress/test.py index e4af876f55..042c10e831 100755 --- a/test/stress/test.py +++ b/test/stress/test.py @@ -5,7 +5,8 @@ import subprocess import os -includeos_src = os.environ['INCLUDEOS_SRC'] +includeos_src = os.environ.get('INCLUDEOS_SRC', + os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) sys.path.insert(0,includeos_src + "/test") import vmrunner diff --git a/test/vmrunner.py b/test/vmrunner.py index 08858fa636..9dc7c9a0f2 100644 --- a/test/vmrunner.py +++ b/test/vmrunner.py @@ -337,7 +337,7 @@ def poll(self): print color.HEADER("IncludeOS vmrunner initializing tests") print color.INFO(nametag), "Validating test service" -validate_test.load_schema(os.environ["INCLUDEOS_SRC"] + "/test/vm.schema.json") +validate_test.load_schema(os.environ.get("INCLUDEOS_SRC", os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))).split('/test')[0]) + "/test/vm.schema.json") validate_test.has_required_stuff(".") default_spec = {"image" : "test.img"}