debian-forge-composer/cmd
Alexander Todorov bd46389059 tests: use go's test framework in osbuild-dnf-json-tests
This allows us to take advantage of the `testing` package. It also gives
the resulting test binary common command line arguments (same as `go
test`).

Tests need to be compiled with `go test -c`, which injects a `Main()`
that calls the Test* functions.

This is not supported by the golang rpm macros. Thus, build this binary
by calling `go test -c` directly, but taking care to pass the same
linker flags as the `%gobuild` macro.

Mark the test binary with the `integration` build constraint, so that
`go test ./...` doesn't pick them up. That's only for unit tests.

The idea is to move all other test binaries to this scheme as well.

Spec file changes by Lars Karlitski <lars@karlitski.net>
2020-03-10 20:29:19 +01:00
..
osbuild-composer distro: panic less often 2020-03-03 11:53:06 +01:00
osbuild-dnf-json-tests tests: use go's test framework in osbuild-dnf-json-tests 2020-03-10 20:29:19 +01:00
osbuild-image-tests test/cases: test manifests rather than pipelines 2020-03-08 21:05:01 +01:00
osbuild-pipeline osbuild-pipeline: add rpmmd flag and output 2020-03-10 17:26:37 +01:00
osbuild-rcm-tests rcm tests: document the test cases 2020-03-09 18:08:43 +01:00
osbuild-tests Download AMI image inside integration tests 2020-03-09 13:25:09 +01:00
osbuild-upload-aws Refactor Azure upload code to a separate package 2019-11-27 12:14:07 +01:00
osbuild-upload-azure Introduce Azure upload test 2019-11-29 12:19:40 +01:00
osbuild-weldr-tests client: Use http.Client instead of a string for the socket 2020-03-09 18:02:54 +01:00
osbuild-worker lint: fix unhandled errors 2020-03-02 14:28:55 +01:00