Skip to content

Commit a17e814

Browse files
oech3sylvestre
andauthored
run-gnu-tests-smack-ci.sh: Use release-small profile for faster build (#10144)
Co-authored-by: Sylvestre Ledru <sylvestre.ledru@gmail.com>
1 parent d737450 commit a17e814

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

util/run-gnu-tests-smack-ci.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# spell-checker:ignore rootfs zstd unzstd cpio newc nographic smackfs devtmpfs tmpfs poweroff libm libgcc libpthread libdl librt sysfs rwxat setuidgid
55
set -e
66

7+
: ${PROFILE:=release-small}
78
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
89
REPO_DIR="$(dirname "$SCRIPT_DIR")"
910
GNU_DIR="${1:-$REPO_DIR/../gnu}"
@@ -77,7 +78,7 @@ chmod +x "$QEMU_DIR/rootfs/init"
7778

7879
# Build utilities for SMACK/ROOTFS tests
7980
echo "Building utilities for SMACK/ROOTFS tests..."
80-
cargo build --release --manifest-path="$REPO_DIR/Cargo.toml" --package uu_id --features uu_id/smack --package uu_ls --features uu_ls/smack --package uu_mkdir --features uu_mkdir/smack --package uu_mkfifo --features uu_mkfifo/smack --package uu_mknod --features uu_mknod/smack --package uu_df
81+
cargo build --profile="${PROFILE}" --manifest-path="$REPO_DIR/Cargo.toml" --package uu_id --features uu_id/smack --package uu_ls --features uu_ls/smack --package uu_mkdir --features uu_mkdir/smack --package uu_mkfifo --features uu_mkfifo/smack --package uu_mknod --features uu_mknod/smack --package uu_df
8182

8283
# Find SMACK tests and tests requiring rootfs in mtab (only available in QEMU environment)
8384
QEMU_TESTS=$(grep -l -E 'require_smack_|rootfs in mtab' -r "$GNU_DIR/tests/" 2>/dev/null | sort -u || true)
@@ -111,7 +112,7 @@ for TEST_PATH in $QEMU_TESTS; do
111112
# Copy built utilities for SMACK/ROOTFS tests
112113
for U in id ls mkdir mkfifo mknod df; do
113114
rm -f "$WORK/bin/$U"
114-
cp "$REPO_DIR/target/release/$U" "$WORK/bin/$U"
115+
cp "$REPO_DIR/target/${PROFILE}/$U" "$WORK/bin/$U"
115116
done
116117

117118
# Set test script path and user

0 commit comments

Comments
 (0)