hcl/cmd/hclspecsuite
Martin Atkins ef5c50bb09 hcl/spectests: run the spec testsuite as part of "go test"
Although the spec testsuite and associated harness is designed to be
usable by other implementations of HCL not written in Go, it's convenient
to run it as part of our own "go test" test suite here so there isn't
an additional thing to run on each change.

To achieve this, the new package hcl/spectests will build both hcldec and
hclspecsuite from latest source and then run the latter to execute the
test suite, capturing the output and converting it (sloppily) into
testing.T method calls to produce something vaguely reasonable.

Other than the small amount of "parsing" to make it look in the output
like a normal Go test, there's nothing special going on here and so it's
still valid to run the spec suite manually with a build of hcldec from
this codebase, which should produce the same result.
2018-08-12 18:22:10 -07:00
..
diagnostics.go cmd/hclspecsuite: Check for expected diagnostics 2018-08-12 10:08:27 -07:00
log.go hcl/spectests: run the spec testsuite as part of "go test" 2018-08-12 18:22:10 -07:00
main.go hcl/spectests: run the spec testsuite as part of "go test" 2018-08-12 18:22:10 -07:00
README.md specsuite: Start of the harness for the specification test suite 2018-08-09 19:29:32 -07:00
runner.go hcl/spectests: run the spec testsuite as part of "go test" 2018-08-12 18:22:10 -07:00
test_file.go cmd/hclspecsuite: Check for traversals when requested 2018-08-12 09:31:28 -07:00
traversals.go cmd/hclspecsuite: Check for traversals when requested 2018-08-12 09:31:28 -07:00

hclspecsuite

hclspecsuite is the test harness for the HCL specification test suite.