hcl/cmd
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
..
hcldec cmd/hclspecsuite: basic runner functionality for successful cases 2018-08-10 08:49:43 -07:00
hclfmt hclfmt: Have this tool call itself by the correct name 2018-01-27 11:03:05 -08:00
hclspecsuite hcl/spectests: run the spec testsuite as part of "go test" 2018-08-12 18:22:10 -07:00