Build constraints must be added to every file. We only want to build
this package when the `integration` tag is set.
Without this, every build prints this warning:
# github.com/osbuild/osbuild-composer/cmd/osbuild-image-tests
runtime.main_main·f: function main is undeclared in the main package
20 lines
550 B
Go
20 lines
550 B
Go
// +build integration,!travis
|
|
|
|
package main
|
|
|
|
import "os/exec"
|
|
|
|
func getOsbuildCommand(store string) *exec.Cmd {
|
|
return exec.Command(
|
|
"osbuild",
|
|
"--store", store,
|
|
"--json",
|
|
"-",
|
|
)
|
|
}
|
|
|
|
var imageInfoPath = "/usr/libexec/osbuild-composer/image-info"
|
|
var privateKeyPath = "/usr/share/tests/osbuild-composer/keyring/id_rsa"
|
|
var testCasesDirectoryPath = "/usr/share/tests/osbuild-composer/cases"
|
|
var userDataPath = "/usr/share/tests/osbuild-composer/cloud-init/user-data"
|
|
var metaDataPath = "/usr/share/tests/osbuild-composer/cloud-init/meta-data"
|