Skip to content

Commit af6b0b0

Browse files
committed
Merge branch 'main' into rtinianov_demoIdeas
2 parents 8bdd155 + 033836a commit af6b0b0

File tree

40 files changed

+1037
-145
lines changed

40 files changed

+1037
-145
lines changed

Makefile

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ clean:
3131
clean-generate: clean generate
3232

3333
.PHONY: test
34-
test: gomods
34+
test: unit_test standard_tests
35+
36+
.PHONY: unit_test
37+
unit_test: gomods
3538
gomods -s proto_vendor -go test ./...
3639

3740
CRE_BRANCH ?= main
@@ -62,3 +65,25 @@ update-capabilities:
6265
echo ""; \
6366
echo "✅ All SDK updates completed successfully."; \
6467
fi
68+
69+
70+
# Override if you wish to test against a branch.
71+
# Alternatively, you can override the directory in chainlink-common to point to this repository
72+
COMMON_VERSION ?= [email protected]
73+
MODULE := github.com/smartcontractkit/chainlink-common
74+
75+
# Override on Windows if you aren't using a Unix-like shell:
76+
# make standard_tests MKDIR_P=mkdir
77+
MKDIR_P ?= mkdir -p
78+
79+
.PHONY: standard_tests
80+
standard_tests:
81+
@echo "Downloading standard test version $(COMMON_VERSION)"
82+
@$(MKDIR_P) .tools
83+
@go mod download -json $(MODULE)@$(COMMON_VERSION) >/dev/null
84+
@mod_dir=$$(go list -m -f '{{.Dir}}' $(MODULE)@$(COMMON_VERSION)); \
85+
abs_dir=$$(cd .tools && pwd); \
86+
echo "Building standard tests"; \
87+
( cd $$mod_dir/pkg/workflows/wasm/host && go test -c -o $$abs_dir/host.test . ); \
88+
echo "Running standard tests"; \
89+
$$abs_dir/host.test -test.v -test.run ^TestStandard -path=standard_tests

0 commit comments

Comments
 (0)