Skip to content

Commit

Permalink
[ci] fix unit tests (#760)
Browse files Browse the repository at this point in the history
* fix unit test line

* fix morpheusvm

* use new script to find unit tests

* ensure program examples are tested
  • Loading branch information
patrick-ogrady authored Mar 6, 2024
1 parent a2b2053 commit f1c1871
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/morpheusvm/scripts/tests.unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ fi

# Provision of the list of tests requires word splitting, so disable the shellcheck
# shellcheck disable=SC2046
go test -race -timeout="10m" -coverprofile="coverage.out" -covermode="atomic" $(go list ./... | grep -v tests)
go test -race -timeout="10m" -coverprofile="coverage.out" -covermode="atomic" $(find . -name "*.go" | grep -v "./cmd" | grep -v "./tests" | xargs -n1 dirname | sort -u | xargs)
2 changes: 1 addition & 1 deletion examples/tokenvm/scripts/tests.unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ fi

# Provision of the list of tests requires word splitting, so disable the shellcheck
# shellcheck disable=SC2046
go test -race -timeout="10m" -coverprofile="coverage.out" -covermode="atomic" $(go list ./... | grep -v tests)
go test -race -timeout="10m" -coverprofile="coverage.out" -covermode="atomic" $(find . -name "*.go" | grep -v "./cmd" | grep -v "./tests" | xargs -n1 dirname | sort -u | xargs)
2 changes: 1 addition & 1 deletion scripts/tests.unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ source "$HYPERSDK_PATH"/scripts/constants.sh

# Provision of the list of tests requires word splitting, so disable the shellcheck
# shellcheck disable=SC2046
go test -race -timeout="3m" -coverprofile="coverage.out" -covermode="atomic" $(go list ./... | grep -v tests)
go test -race -timeout="3m" -coverprofile="coverage.out" -covermode="atomic" $(find . -name "*.go" | grep -v "./x/programs/cmd" | grep -v "./examples/morpheusvm" | grep -v "./examples/tokenvm" | xargs -n1 dirname | sort -u | xargs)

0 comments on commit f1c1871

Please sign in to comment.