mirror of
https://github.com/containers/youki
synced 2024-11-23 17:32:15 +01:00
5cb6e6f62b
The musl test did not parameter correctly. Remove the hardcode package and features. Signed-off-by: yihuaf <yihuaf@unkies.org>
22 lines
524 B
Bash
Executable File
22 lines
524 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
test_musl() {
|
|
echo "[musl test] testing $1 with features $2"
|
|
cargo +nightly build \
|
|
-Zbuild-std \
|
|
--target $(uname -m)-unknown-linux-musl \
|
|
--package "$1" \
|
|
--no-default-features -F "$2"
|
|
cargo +nightly test \
|
|
-Zbuild-std \
|
|
--target $(uname -m)-unknown-linux-musl \
|
|
--package "$1" \
|
|
--no-default-features -F "$2"
|
|
}
|
|
|
|
test_musl "libcontainer" "v1"
|
|
test_musl "libcontainer" "v2"
|
|
test_musl "libcontainer" "v1 v2"
|
|
|