2019-10-15 21:24:16 +00:00
|
|
|
PROJECT_ROOT_DIR := $(CURDIR)
|
|
|
|
SRC := $(shell git ls-files *.go */*.go)
|
|
|
|
|
2020-10-16 05:06:27 +00:00
|
|
|
.PHONY: bin test test-go test-core test-skipped submodule
|
2019-10-15 21:24:16 +00:00
|
|
|
|
|
|
|
test: test-go test-core
|
|
|
|
|
|
|
|
submodule:
|
|
|
|
git submodule update --init
|
|
|
|
|
|
|
|
editorconfig: $(SRC)
|
2020-10-16 05:06:27 +00:00
|
|
|
go build \
|
|
|
|
-ldflags "-X main.version=1.99.99" \
|
|
|
|
github.com/editorconfig/editorconfig-core-go/v2/cmd/editorconfig
|
2019-10-15 21:24:16 +00:00
|
|
|
|
|
|
|
test-go:
|
|
|
|
go test -v ./...
|
|
|
|
|
|
|
|
test-core: editorconfig
|
2020-10-16 05:06:27 +00:00
|
|
|
cd core-test; \
|
|
|
|
cmake ..
|
|
|
|
cd core-test; \
|
|
|
|
ctest \
|
|
|
|
-E "^octothorpe_in_value$$" \
|
|
|
|
--output-on-failure \
|
|
|
|
.
|
|
|
|
|
|
|
|
test-skipped: editorconfig
|
|
|
|
cd core-test; \
|
|
|
|
cmake ..
|
|
|
|
cd core-test; \
|
|
|
|
ctest \
|
|
|
|
-R "^octothorpe_in_value$$" \
|
|
|
|
--show-only \
|
|
|
|
.
|