mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-01 09:08:42 +08:00
os-test-bins: add runner script and dependencies
This commit is contained in:
parent
44c77960af
commit
dc3026c3e9
@ -17,4 +17,31 @@ make OS=Redox CC="${CC_WRAPPER} ${GNU_TARGET}-gcc" \
|
||||
LDFLAGS= EXTRA_LDFLAGS= \
|
||||
CC_FOR_BUILD="${CC_WRAPPER} cc" CFLAGS_FOR_BUILD= CPPFLAGS_FOR_BUILD= \
|
||||
LDFLAGS_FOR_BUILD= -j ${COOKBOOK_MAKE_JOBS} all
|
||||
|
||||
# Create runner script
|
||||
mkdir -p "${COOKBOOK_STAGE}/usr/bin"
|
||||
cat > "${COOKBOOK_STAGE}/usr/bin/os-test-runner" <<EOF
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
cd /usr/share/os-test
|
||||
|
||||
echo "Ensuring outputs are newer than sources"
|
||||
find out -type f -exec touch '{}' ';'
|
||||
|
||||
echo "Ensuring all executables are newer than sources and outputs"
|
||||
find . -type f -perm /111 -exec touch '{}' ';'
|
||||
|
||||
make test
|
||||
EOF
|
||||
chmod +x "${COOKBOOK_STAGE}/usr/bin/os-test-runner"
|
||||
"""
|
||||
|
||||
[package]
|
||||
dependencies = [
|
||||
"gcc13",
|
||||
"gnu-binutils",
|
||||
"gnu-grep",
|
||||
"gnu-make",
|
||||
"libarchive",
|
||||
"sed",
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user