redox/recipes/tests/acid/recipe.toml
2026-05-07 08:04:09 -03:00

26 lines
690 B
TOML

# 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 = "custom"
script = """
mkdir -pv "${COOKBOOK_STAGE}/home/user/acid"
cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/acid"
# Create runner script
mkdir -p "${COOKBOOK_STAGE}/usr/bin"
cat > "${COOKBOOK_STAGE}/usr/bin/acid-runner" <<EOF
#!/usr/bin/env bash
set -e
cd /home/user/acid
cargo test
EOF
chmod +x "${COOKBOOK_STAGE}/usr/bin/acid-runner"
"""
[package]
dependencies = ["rust"]