diff --git a/scripts/test_musl.sh b/scripts/test_musl.sh new file mode 100755 index 000000000..7e1dcfdd4 --- /dev/null +++ b/scripts/test_musl.sh @@ -0,0 +1,21 @@ +#!/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 libcontainer \ + --no-default-features -F v2 + cargo +nightly test \ + -Zbuild-std \ + --target $(uname -m)-unknown-linux-musl \ + --package libcontainer \ + --no-default-features -F v2 +} + +test_musl "libcontainer" "v1" +test_musl "libcontainer" "v2" +test_musl "libcontainer" "v1 v2" +