mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
golang: Don't run launch test if appliance has not been built.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// +build appliance
|
||||
|
||||
/* libguestfs Go tests
|
||||
* Copyright (C) 2013 Red Hat Inc.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user