Skip to content

Commit

Permalink
Merge pull request #320 from amherag/fix/golden-files
Browse files Browse the repository at this point in the history
Removing processes and files related to golden files.
  • Loading branch information
amherag committed Feb 20, 2021
2 parents 418d0ff + 4317566 commit f65bdf7
Show file tree
Hide file tree
Showing 191 changed files with 2 additions and 38,932 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.DEFAULT_GOAL := help
.PHONY: build-parser build build-full test test-full update-golden-files
.PHONY: build-parser build build-full test test-full
.PHONY: install-gfx-deps install-gfx-deps-LINUX install-gfx-deps-MSYS install-gfx-deps-MINGW install-gfx-deps-MACOS install-deps install install-full
.PHONY: vendor

Expand Down Expand Up @@ -149,13 +149,7 @@ test-full: build ## Run CX test suite with all build tags
$(GO_OPTS) go test -race -tags="base cxfx" github.com/skycoin/cx/cxgo/
$(GOBIN)/cx ./lib/args.cx ./tests/main.cx ++wdir=./tests ++disable-tests=gui,issue

update-golden-files: build ## Update golden files used in CX test suite
ls -1 tests/ | grep '.cx$$' | while read -r NAME; do echo "Processing $$NAME"; cx -t -co tests/testdata/tokens/$${NAME}.txt tests/$$NAME || true ; done

check-golden-files: update-golden-files ## Ensure golden files are up to date
if [ "$(shell git diff tests/testdata | wc -l | tr -d ' ')" != "0" ] ; then echo 'Changes detected. Golden files not up to date' ; exit 2 ; fi

check: check-golden-files test ## Perform self-tests
check: test ## Perform self-tests

format: ## Formats the code. Must have goimports installed (use make install-linters).
goimports -w -local github.com/skycoin/cx ./cx
Expand Down
20 changes: 0 additions & 20 deletions tests/testdata/tokens/issue-101.cx.txt

This file was deleted.

29 changes: 0 additions & 29 deletions tests/testdata/tokens/issue-102.cx.txt

This file was deleted.

74 changes: 0 additions & 74 deletions tests/testdata/tokens/issue-103.cx.txt

This file was deleted.

34 changes: 0 additions & 34 deletions tests/testdata/tokens/issue-104.cx.txt

This file was deleted.

33 changes: 0 additions & 33 deletions tests/testdata/tokens/issue-105.cx.txt

This file was deleted.

32 changes: 0 additions & 32 deletions tests/testdata/tokens/issue-106.cx.txt

This file was deleted.

57 changes: 0 additions & 57 deletions tests/testdata/tokens/issue-106a.cx.txt

This file was deleted.

85 changes: 0 additions & 85 deletions tests/testdata/tokens/issue-108.cx.txt

This file was deleted.

0 comments on commit f65bdf7

Please sign in to comment.