From 5e756a5de8263d94edc71737f5c38a0d0c1d86cf Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Fri, 9 Jun 2023 12:22:58 -0600 Subject: [PATCH] relibc-tests: convert to toml --- recipes/relibc-tests/recipe.sh | 13 ------------- recipes/relibc-tests/recipe.toml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 13 deletions(-) delete mode 100644 recipes/relibc-tests/recipe.sh create mode 100644 recipes/relibc-tests/recipe.toml diff --git a/recipes/relibc-tests/recipe.sh b/recipes/relibc-tests/recipe.sh deleted file mode 100644 index dc39853b3..000000000 --- a/recipes/relibc-tests/recipe.sh +++ /dev/null @@ -1,13 +0,0 @@ -GIT=https://gitlab.redox-os.org/redox-os/relibc.git - -function recipe_build { - "$REDOX_MAKE" NATIVE_RELIBC=1 -C tests -j"$($NPROC)" - skip=1 -} - -function recipe_stage { - dest="$(realpath $1)" - mkdir -pv "$dest/share/relibc" - cp -rv "tests" "$dest/share/relibc/tests" - skip=1 -} diff --git a/recipes/relibc-tests/recipe.toml b/recipes/relibc-tests/recipe.toml new file mode 100644 index 000000000..023ac741e --- /dev/null +++ b/recipes/relibc-tests/recipe.toml @@ -0,0 +1,16 @@ +[source] +git = "https://gitlab.redox-os.org/redox-os/relibc.git" +branch = "master" + +[build] +template = "custom" +script = """ +rsync -av --delete "${COOKBOOK_SOURCE}/" ./ +pushd tests +export CARGO_TEST="${COOKBOOK_CARGO}" +export NATIVE_RELIBC=1 +"${COOKBOOK_MAKE}" -j "${COOKBOOK_MAKE_JOBS}" all bins_verify/relibc-tests +popd +mkdir -pv "${COOKBOOK_STAGE}/share/relibc" +cp -rv "tests" "${COOKBOOK_STAGE}/share/relibc/tests" +""" -- GitLab