| |
@@ -47,4 +47,4 @@
|
| |
# Define commands for testing
|
| |
%gotestflags %{gocompilerflags}
|
| |
%gotestextldflags %__global_ldflags %{?__golang_extldflags}
|
| |
- %gotest() %{?gomodulesmode} go test %{gotestflags} -ldflags "${LDFLAGS:-}%{?currentgoldflags} -extldflags '%{gotestextldflags}'" %{?**};
|
| |
+ %gotest(c:o:) %{?gomodulesmode} go test %{gotestflags} -ldflags "${LDFLAGS:-}%{?currentgoldflags} -extldflags '%{gotestextldflags}'" %{?**};
|
| |
so in spec files we can do:
%gotest -c -o _bin/my-tests path/to/package
The background is that in osbuild-composer we'd like to ship the
test binaries in a -tests RPM package.