We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a556e55 commit 71b4f30Copy full SHA for 71b4f30
Makefile
@@ -32,13 +32,24 @@ zip:
32
tar -czvf solaris_amd64.tar.gz solaris_amd64
33
34
### `make test run=TestResourceCore debug=1`
35
-cmd := TF_ACC=1 TF_ORACLE_ENV=test go test ./provider -v -timeout 120m
+basecmd := TF_ORACLE_ENV=test go test ./provider -v -timeout 120m
36
+
37
+### Run all tests by default. Omit acceptance tests if unit tests are specified (e.g. `make test mode=unit`)
38
+cmd := TF_ACC=1 $(basecmd)
39
+ifdef mode
40
+ ifeq ($(mode),unit)
41
+ cmd := $(basecmd)
42
+ endif
43
+endif
44
45
ifdef run
46
cmd := $(cmd) -run $(run)
47
endif
48
49
ifdef debug
50
cmd := DEBUG=true TF_LOG=DEBUG OCI_GO_SDK_DEBUG=1 $(cmd)
51
52
53
test: ;$(cmd)
54
55
test_print:
0 commit comments