2023-06-19 14:21:18 +02:00
|
|
|
#!/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 \
|
2023-07-12 01:37:35 +02:00
|
|
|
--package "$1" \
|
|
|
|
--no-default-features -F "$2"
|
2023-06-19 14:21:18 +02:00
|
|
|
cargo +nightly test \
|
|
|
|
-Zbuild-std \
|
|
|
|
--target $(uname -m)-unknown-linux-musl \
|
2023-07-12 01:37:35 +02:00
|
|
|
--package "$1" \
|
|
|
|
--no-default-features -F "$2"
|
2023-06-19 14:21:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
test_musl "libcontainer" "v1"
|
|
|
|
test_musl "libcontainer" "v2"
|
|
|
|
test_musl "libcontainer" "v1 v2"
|
|
|
|
|