From f7110882b35234df7db5de297442ff598d94bb95 Mon Sep 17 00:00:00 2001 From: Thiery Ouattara Date: Wed, 11 Oct 2023 07:31:40 +0000 Subject: [PATCH] Enable running integration tests on darwin_arm64 --- scripts/integration.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/integration.sh b/scripts/integration.sh index b4bf91f44..6ed5dfc5b 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -13,8 +13,16 @@ pip --version || (echo "We need 'pip' intalled to run integration tests"; exit 1 make fmt make test go build -o terraform-provider-outscale_v0.5.32 -mkdir -p $BUILD_DIR/terraform.d/plugins/registry.terraform.io/outscale/outscale/0.5.32/linux_amd64/ -cp terraform-provider-outscale_v0.5.32 $BUILD_DIR/terraform.d/plugins/registry.terraform.io/outscale/outscale/0.5.32/linux_amd64/ +if [[ "$OSTYPE" == "linux-gnu"* ]]; then + mkdir -p $BUILD_DIR/terraform.d/plugins/registry.terraform.io/outscale/outscale/0.5.32/linux_amd64/ + cp terraform-provider-outscale_v0.5.32 $BUILD_DIR/terraform.d/plugins/registry.terraform.io/outscale/outscale/0.5.32/linux_amd64/ +elif [[ "$OSTYPE" == "darwin"* ]]; then + mkdir -p $BUILD_DIR/terraform.d/plugins/registry.terraform.io/outscale/outscale/0.5.32/darwin_arm64/ + cp terraform-provider-outscale_v0.5.32 $BUILD_DIR/terraform.d/plugins/registry.terraform.io/outscale/outscale/0.5.32/darwin_arm64/ +else + echo "OS $OSTYPE is not supported yet for testing" + exit 1 +fi cd $BUILD_DIR pip install -r requirements.txt