From aced42af1261b8a4cd4e69e99799ebd105141075 Mon Sep 17 00:00:00 2001 From: Ron Williams Date: Fri, 20 Jun 2025 19:14:26 -0700 Subject: [PATCH] Add POSIX test suite, improve gcc recipe --- recipes/dev/gcc13/recipe.toml | 5 +---- recipes/tests/openposixtestsuite/recipe.toml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 recipes/tests/openposixtestsuite/recipe.toml diff --git a/recipes/dev/gcc13/recipe.toml b/recipes/dev/gcc13/recipe.toml index b6942555..96281c0f 100644 --- a/recipes/dev/gcc13/recipe.toml +++ b/recipes/dev/gcc13/recipe.toml @@ -41,8 +41,5 @@ COOKBOOK_CONFIGURE_FLAGS=( "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" all-gcc "${COOKBOOK_MAKE}" install-gcc DESTDIR="${COOKBOOK_STAGE}" ln -s "gcc" "${COOKBOOK_STAGE}/bin/cc" -pushd "${COOKBOOK_STAGE}" -# The symbolic link will be correct on Redox -ln -s "/libexec/gcc/${GNU_TARGET}/13.2.0/cc1" "./bin/cc1" -popd +ln -s "/libexec/gcc/${GNU_TARGET}/13.2.0/cc1" "${COOKBOOK_STAGE}/bin/cc1" """ diff --git a/recipes/tests/openposixtestsuite/recipe.toml b/recipes/tests/openposixtestsuite/recipe.toml new file mode 100644 index 00000000..7f817630 --- /dev/null +++ b/recipes/tests/openposixtestsuite/recipe.toml @@ -0,0 +1,12 @@ +[source] +git = "https://gitlab.redox-os.org/rw_van/openposixtestsuite.git" +branch = "redox" + +[build] +template = "custom" +script = """ +rsync -av --delete "${COOKBOOK_SOURCE}/" ./ +# "${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" build-tests +mkdir -pv "${COOKBOOK_STAGE}/share/openposixtests" +rsync -av --delete . "${COOKBOOK_STAGE}/share/openposixtestsuite" +"""