All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add configure option to disable the building of the API tests.
@ 2011-07-25 12:39 Conny Seidel
  2011-07-25 14:36 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Conny Seidel @ 2011-07-25 12:39 UTC (permalink / raw)
  To: avi; +Cc: kvm, Joerg.Roedel, Conny Seidel

When running the kvm unit tests on machines where some of the dependent
32bit devel libs aren't available, (libboost-pthread-mt, for example)
the build fails. The patch doesn't change the default behavior - it
simply adds the possibility to disable the API tests.

Usage:  ./configure --disable_api_tests

Signed-off-by: Conny Seidel <conny.seidel@amd.com>
---
 config-x86-common.mak |    2 ++
 configure             |    5 +++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/config-x86-common.mak b/config-x86-common.mak
index 033bae0..0b5ce71 100644
--- a/config-x86-common.mak
+++ b/config-x86-common.mak
@@ -36,8 +36,10 @@ tests-common = $(TEST_DIR)/vmexit.flat $(TEST_DIR)/tsc.flat \
                $(TEST_DIR)/kvmclock_test.flat  $(TEST_DIR)/eventinj.flat \
                $(TEST_DIR)/s3.flat
 
+ifndef NO_API
 tests-common += api/api-sample
 tests-common += api/dirty-log
+endif
 
 tests_and_config = $(TEST_DIR)/*.flat $(TEST_DIR)/unittests.cfg
 
diff --git a/configure b/configure
index efb8705..e7cf6dc 100755
--- a/configure
+++ b/configure
@@ -21,6 +21,7 @@ usage() {
 	    --ld=LD		   ld linker to use ($ld)
 	    --prefix=PREFIX        where to install things ($prefix)
 	    --kerneldir=DIR        kernel build directory for kvm.h ($kerneldir)
+	    --disable_api_tests    disables the build of the API tests
 EOF
     exit 1
 }
@@ -33,6 +34,9 @@ while [[ "$1" = -* ]]; do
 	opt="${opt%%=*}"
     fi
     case "$opt" in
+        --disable_api_tests)
+            api=true
+            ;;
 	--prefix)
 	    prefix="$arg"
 	    ;;
@@ -72,4 +76,5 @@ CC=$cross_prefix$cc
 LD=$cross_prefix$ld
 OBJCOPY=$cross_prefix$objcopy
 AR=$cross_prefix$ar
+NO_API=$api
 EOF
-- 
1.7.2.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add configure option to disable the building of the API tests.
  2011-07-25 12:39 [PATCH] Add configure option to disable the building of the API tests Conny Seidel
@ 2011-07-25 14:36 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2011-07-25 14:36 UTC (permalink / raw)
  To: Conny Seidel; +Cc: kvm, Joerg.Roedel

On 07/25/2011 03:39 PM, Conny Seidel wrote:
> When running the kvm unit tests on machines where some of the dependent
> 32bit devel libs aren't available, (libboost-pthread-mt, for example)
> the build fails. The patch doesn't change the default behavior - it
> simply adds the possibility to disable the API tests.

Please make ./configure autodetect the absence of the libraries and 
disable the tests automatically.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-25 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-25 12:39 [PATCH] Add configure option to disable the building of the API tests Conny Seidel
2011-07-25 14:36 ` Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.