Skip to content

Commit

Permalink
move local-test.sh to scripts/, add a Makefile rule for it
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Mar 7, 2024
1 parent 14fb7bb commit 6959a62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/others_testacc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
wget https://github.com/outscale/osc-ricochet-2/releases/download/v0.2.0/osc-ricochet-2_v0.2.0_x86_64-unknown-linux-musl.tar.gz
tar -xvf osc-ricochet-2_v0.2.0_x86_64-unknown-linux-musl.tar.gz
./ricochet-2 ./ricochet.json &
./local-test.sh
make test-locally
- name: Build go test
run: make test
Expand Down
5 changes: 5 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ test-compile:
fi
go test -c $(TEST) $(TESTARGS)

.PHONY: test-locally
test-locally:
"$(CURDIR)/scripts/local-test.sh" TestAccOthers_Volume_io1Type
"$(CURDIR)/scripts/local-test.sh" TestAccVM_withFlexibleGpuLink_basic

.PHONY: test-examples
test-examples:
@sh -c "'$(CURDIR)/scripts/test-examples.sh'"
Expand Down
5 changes: 2 additions & 3 deletions local-test.sh → scripts/local-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
export TEST_QUOTA="true"
export IS_IO1_TEST_QUOTA="true"
export OSC_ENDPOINT_API="http://127.0.0.1:3000"
#OUTSCALE_ACCESSKEYID`, `OUTSCALE_SECRETKEYID`, `OUTSCALE_REGION`, `OUTSCALE_ACCOUNT` and `OUTSCALE_IMAGEID
export OUTSCALE_SECRETKEYID="0000001111112222223333334444445555555666"
export OUTSCALE_ACCESSKEYID="11112211111110000000"
export OSC_ACCESS_KEY="11112211111110000000"
export OUTSCALE_REGION="eu-west-2"
export OUTSCALE_IMAGEID="ami-ffffff00"
export OUTSCALE_ACCOUNT="00000000"
export OUTSCALE_KEYPAIR="my_craft"

set -e
TF_LOG=DEBUG make testacc TESTARGS='-run=TestAccOthers_Volume_io1Type'
TF_LOG=DEBUG make testacc TESTARGS='-run=TestAccVM_withFlexibleGpuLink_basic'
TF_LOG=DEBUG make testacc TESTARGS="-run=$1"

0 comments on commit 6959a62

Please sign in to comment.