golang: Don't run launch test if appliance has not been built.

This commit is contained in:
Hilko Bengen
2013-12-12 23:59:53 +01:00
parent 30936f499e
commit d57d8f22de
2 changed files with 8 additions and 1 deletions

View File

@@ -37,6 +37,11 @@ EXTRA_DIST = \
if HAVE_GOLANG
GOFLAGS =
if ENABLE_APPLIANCE
GOFLAGS += -tags appliance
endif
golangpkgdir = $(GOROOT)/pkg/$(GOOS)_$(GOARCH)/$(pkg)
golangsrcdir = $(GOROOT)/src/pkg/$(pkg)
@@ -48,7 +53,7 @@ pkg/$(GOOS)_$(GOARCH)/$(pkg).a: src/$(pkg)/guestfs.go
golangsrc_DATA = $(source_files)
TESTS_ENVIRONMENT = pkg=$(pkg) $(top_builddir)/run $(VG) # --test
TESTS_ENVIRONMENT = pkg=$(pkg) GOFLAGS="$(GOFLAGS)" $(top_builddir)/run $(VG) # --test
TESTS = run-bindtests run-tests

View File

@@ -1,3 +1,5 @@
// +build appliance
/* libguestfs Go tests
* Copyright (C) 2013 Red Hat Inc.
*