Some test improvements

This commit is contained in:
Ribbon 2026-02-08 11:24:55 -03:00 committed by Jeremy Soller
parent bccd4a54ef
commit c71e7c691f
28 changed files with 131 additions and 83 deletions

View File

@ -1,3 +1,3 @@
# Configuration to run the "acid" tests
# Configuration for "acid" testing
include = ["../acid.toml"]

View File

@ -0,0 +1,3 @@
# Configuration for automated testing of essential test suites
include = ["../auto-test.toml"]

View File

@ -0,0 +1,14 @@
# Configuration for "os-test" testing
include = ["../os-test.toml"]
# Override the default settings here
# General settings
[general]
# Filesystem size in MiB
# filesystem_size = 1024
# Package settings
[packages]
# example = {}

View File

@ -1,3 +0,0 @@
# Configuration to run the "resist" tests
include = ["../resist.toml"]

View File

@ -1,11 +1,11 @@
# Configuration to run the "acid" tests
# Configuration for "acid" testing
include = ["base.toml"]
include = ["net.toml"]
# General settings
[general]
# Filesystem size in MiB
filesystem_size = 256
filesystem_size = 1024
# Package settings
[packages]
@ -17,10 +17,7 @@ ion = {}
path = "/usr/lib/init.d/10_acid"
data = """
export RUST_BACKTRACE full
acid
acid create_test
acid switch
acid tls
acid thread
cd /home/user/acid
cargo test
shutdown
"""

27
config/auto-test.toml Normal file
View File

@ -0,0 +1,27 @@
# Configuration for automated testing of essential test suites
include = ["net.toml"]
# General settings
[general]
# Filesystem size in MiB
filesystem_size = 1024
# Package settings
[packages]
acid = {}
coreutils = {}
ion = {}
os-test-bins = {}
relibc-tests-bins = {}
[[files]]
path = "/usr/lib/init.d/30_console"
data = """
export RUST_BACKTRACE full
cd /home/user/acid
cargo test
bash /root/relibc-tests/run.sh
os-test-runner
shutdown
"""

View File

@ -1,3 +1,3 @@
# Configuration to run the "acid" tests
# Configuration for "acid" testing
include = ["../acid.toml"]

View File

@ -0,0 +1,3 @@
# Configuration for automated testing of essential test suites
include = ["../auto-test.toml"]

14
config/i586/os-test.toml Normal file
View File

@ -0,0 +1,14 @@
# Configuration for "os-test" testing
include = ["../os-test.toml"]
# Override the default settings here
# General settings
[general]
# Filesystem size in MiB
# filesystem_size = 1024
# Package settings
[packages]
# example = {}

View File

@ -1,3 +0,0 @@
# Configuration to use the "resist" tests
include = ["../resist.toml"]

View File

@ -1,4 +1,4 @@
# Configuration for testing
# Configuration for "os-test" testing
include = ["server.toml"]
@ -16,6 +16,7 @@ os-test-bins = {} # Provides source and cross-compiled binaries
[[files]]
path = "/usr/lib/init.d/30_console"
data = """
export RUST_BACKTRACE full
os-test-runner
shutdown
"""

View File

@ -1,39 +0,0 @@
# Configuration to run the "resist" tests
include = ["net.toml"]
# General settings
[general]
# Filesystem size in MiB
filesystem_size = 256
# Package settings
[packages]
bash = {}
coreutils = {}
diffutils = {}
extrautils = {}
findutils = {}
gcc13 = {}
gnu-binutils = {}
gnu-make = {}
netdb = {}
resist = {}
# Override to not background dhcpd
[[files]]
path = "/usr/lib/init.d/10_net"
data = """
notify smolnetd
dhcpd
"""
[[files]]
path = "/usr/lib/init.d/20_resist"
data = """
export RUST_BACKTRACE full
resist /share/resist/redox/spec.toml
resist /share/resist/posix/base.toml
resist /share/resist/posix/shell.toml
shutdown
"""

View File

@ -0,0 +1,3 @@
# Configuration for "acid" testing
include = ["../acid.toml"]

View File

@ -0,0 +1,3 @@
# Configuration for automated testing of essential test suites
include = ["../auto-test.toml"]

View File

@ -0,0 +1,14 @@
# Configuration for "os-test" testing
include = ["../os-test.toml"]
# Override the default settings here
# General settings
[general]
# Filesystem size in MiB
# filesystem_size = 1024
# Package settings
[packages]
# example = {}

View File

@ -1,3 +1,3 @@
# Configuration to use the "acid" tests
# Configuration for "acid" testing
include = ["../acid.toml"]

View File

@ -0,0 +1,3 @@
# Configuration for automated testing of essential test suites
include = ["../auto-test.toml"]

View File

@ -1,4 +1,4 @@
# Configuration for testing
# Configuration for "os-test" testing
include = ["../os-test.toml"]

View File

@ -1,3 +0,0 @@
# Configuration to run the "resist" tests
include = ["../resist.toml"]

View File

@ -1,8 +1,9 @@
[source]
git = "https://github.com/leachim6/hello-world"
shallow_clone = true
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}"/usr/share/hello-world-examples
cp -rv "${COOKBOOK_SOURCE}"/[#,a-z] "${COOKBOOK_STAGE}"/usr/share/hello-world-examples
mkdir -pv "${COOKBOOK_STAGE}"/home/user/hello-world-examples
cp -rv "${COOKBOOK_SOURCE}"/[#,a-z] "${COOKBOOK_STAGE}"/home/user/hello-world-examples
"""

View File

@ -0,0 +1,4 @@
[source]
same_as = "../acid"
[build]
template = "cargo"

View File

@ -1,5 +1,13 @@
# Due to necessary write permission for compilation the filesystem path of source code installation is an exception
# where the package manager can't switch between system-wide and user paths
[source]
git = "https://gitlab.redox-os.org/redox-os/acid.git"
shallow_clone = true
[build]
template = "cargo"
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/home/user/acid"
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/acid"
"""
[package]
dependencies = ["rust"]

View File

@ -1,3 +1,5 @@
# Due to necessary write permission for compilation the filesystem path of source code installation is an exception
# where the package manager can't switch between system-wide and user paths
[build]
template = "custom"
script = """

View File

@ -1,3 +1,5 @@
# Due to necessary write permission for compilation the filesystem path of source code installation is an exception
# where the package manager can't switch between system-wide and user paths
[source]
git = "https://gitlab.redox-os.org/redox-os/openposixtestsuite.git"
branch = "redox"
@ -5,8 +7,8 @@ branch = "redox"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/share/openposixtestsuite"
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/share/openposixtestsuite"
mkdir -pv "${COOKBOOK_STAGE}/home/user/openposixtestsuite"
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/openposixtestsuite"
"""
[package]

View File

@ -1,3 +1,5 @@
# Due to necessary write permission for compilation the filesystem path of source code installation is an exception
# where the package manager can't switch between system-wide and user paths
# TODO remove gnu-grep when extrautils grep supports grep -E
[source]
git = "https://gitlab.com/sortix/os-test"
@ -5,8 +7,8 @@ git = "https://gitlab.com/sortix/os-test"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/share/os-test"
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/share/os-test"
mkdir -pv "${COOKBOOK_STAGE}/home/user/os-test"
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/os-test"
"""
[package]

View File

@ -5,8 +5,8 @@ git = "https://gitlab.redox-os.org/redox-os/redox-posix-tests.git"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/share/redox-posix-tests"
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/share/redox-posix-tests"
mkdir -pv "${COOKBOOK_STAGE}/home/user/redox-posix-tests"
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/redox-posix-tests"
"""
[package]

View File

@ -1,9 +1,14 @@
# Due to necessary write permission for compilation the filesystem path of source code installation is an exception
# where the package manager can't switch between system-wide and user paths
[source]
same_as = "../../core/relibc"
[build]
template = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/share/relibc"
cp -rv "${COOKBOOK_SOURCE}/tests" "${COOKBOOK_STAGE}/share/relibc-tests"
mkdir -pv "${COOKBOOK_STAGE}/home/user/relibc-tests"
cp -rv "${COOKBOOK_SOURCE}/tests" "${COOKBOOK_STAGE}/home/user/relibc-tests"
"""
[package]
dependencies = ["gcc13"]

View File

@ -1,10 +0,0 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/resist.git"
[build]
template = "custom"
script = """
cookbook_cargo
mkdir -pv "${COOKBOOK_STAGE}/share/resist"
cp -rv "${COOKBOOK_SOURCE}/"{posix,redox} "${COOKBOOK_STAGE}/share/resist"
"""