From 3bbbcf412f30af2ef1dce9bd55cd5579a876e0a7 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Tue, 30 Sep 2025 05:21:53 -0300 Subject: [PATCH] Add a filesystem config for testing --- config/aarch64/tests.toml | 14 +++++++ config/i686/tests.toml | 14 +++++++ config/riscv64gc/tests.toml | 14 +++++++ config/tests.toml | 78 +++++++++++++++++++++++++++++++++++++ config/x86_64/tests.toml | 14 +++++++ 5 files changed, 134 insertions(+) create mode 100644 config/aarch64/tests.toml create mode 100644 config/i686/tests.toml create mode 100644 config/riscv64gc/tests.toml create mode 100644 config/tests.toml create mode 100644 config/x86_64/tests.toml diff --git a/config/aarch64/tests.toml b/config/aarch64/tests.toml new file mode 100644 index 000000000..9af06ab91 --- /dev/null +++ b/config/aarch64/tests.toml @@ -0,0 +1,14 @@ +# Configuration for testing + +include = ["../tests.toml"] + +# Override the default settings here + +# General settings +[general] +# Filesystem size in MiB +# filesystem_size = 10000 + +# Package settings +[packages] +# example = {} diff --git a/config/i686/tests.toml b/config/i686/tests.toml new file mode 100644 index 000000000..9af06ab91 --- /dev/null +++ b/config/i686/tests.toml @@ -0,0 +1,14 @@ +# Configuration for testing + +include = ["../tests.toml"] + +# Override the default settings here + +# General settings +[general] +# Filesystem size in MiB +# filesystem_size = 10000 + +# Package settings +[packages] +# example = {} diff --git a/config/riscv64gc/tests.toml b/config/riscv64gc/tests.toml new file mode 100644 index 000000000..9af06ab91 --- /dev/null +++ b/config/riscv64gc/tests.toml @@ -0,0 +1,14 @@ +# Configuration for testing + +include = ["../tests.toml"] + +# Override the default settings here + +# General settings +[general] +# Filesystem size in MiB +# filesystem_size = 10000 + +# Package settings +[packages] +# example = {} diff --git a/config/tests.toml b/config/tests.toml new file mode 100644 index 000000000..94c8e06ff --- /dev/null +++ b/config/tests.toml @@ -0,0 +1,78 @@ +# Configuration for testing + +include = ["server.toml"] + +# General settings +[general] +# Filesystem size in MiB +filesystem_size = 10000 +# Do not prompt if settings are not defined +prompt = false + +# Package settings +[packages] +acid = {} +resist = {} +relibc-tests = {} +os-test = {} +openposixtestsuite = {} +redox-posix-tests = {} +vttest = {} +benchmarks = {} + +[[files]] +path = "/home/user/test.rs" +data = """ +fn main() { + println!("Hello, Redox!"); +} +""" + +[[files]] +path = "/home/user/test.c" +data = """ +#include + +int main(void) { + printf("Hello, Redox!\\n"); +} +""" + +[[files]] +path = "/home/user/test.cpp" +data = """ +#include + +int main() +{ + std::cout << "Hello, Redox!" << std::endl; +} +""" + +[[files]] +path = "/home/user/test.py" +data = """ +print("Hello, Redox!") +""" + +[[files]] +path = "/home/user/test.lua" +data = """ +print("Hello, Redox!") +""" + +[[files]] +path = "/home/user/test.js" +data = """ +console.log("Hello Redox"); +""" + +[[files]] +path = "/home/user/test.java" +data = """ +public class Java { + public static void main(String[] args) { + System.out.println("Hello Redox"); + } +} +""" diff --git a/config/x86_64/tests.toml b/config/x86_64/tests.toml new file mode 100644 index 000000000..9af06ab91 --- /dev/null +++ b/config/x86_64/tests.toml @@ -0,0 +1,14 @@ +# Configuration for testing + +include = ["../tests.toml"] + +# Override the default settings here + +# General settings +[general] +# Filesystem size in MiB +# filesystem_size = 10000 + +# Package settings +[packages] +# example = {}