From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9UVz-0003Sq-Pu for qemu-devel@nongnu.org; Tue, 22 Jul 2014 03:29:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9UVs-0007Ql-9O for qemu-devel@nongnu.org; Tue, 22 Jul 2014 03:29:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9UVr-0007Qf-WC for qemu-devel@nongnu.org; Tue, 22 Jul 2014 03:29:28 -0400 From: Gerd Hoffmann Date: Tue, 22 Jul 2014 09:28:55 +0200 Message-Id: <1406014135-1192-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] tests: set QEMU_AUDIO_DRV=none for pci sound cards List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Vassili Karpov (malc)" , Gerd Hoffmann This way the tests run without sound hardware being present on the build machine. Even with sound hardware it IMO isn't very useful to use it in regression testing. Once the sound card tests are advanced enougth that they try to actually play sound we probably want the guests sound output written to a file (via QEMU_AUDIO_DRV=wav) rather than played on the build machines sound hardware. Signed-off-by: Gerd Hoffmann --- tests/ac97-test.c | 3 +++ tests/es1370-test.c | 3 +++ tests/intel-hda-test.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tests/ac97-test.c b/tests/ac97-test.c index af30ea1..ba3be1a 100644 --- a/tests/ac97-test.c +++ b/tests/ac97-test.c @@ -8,6 +8,7 @@ */ #include +#include #include #include "libqtest.h" #include "qemu/osdep.h" @@ -21,6 +22,8 @@ int main(int argc, char **argv) { int ret; + setenv("QEMU_AUDIO_DRV", "none", true); + g_test_init(&argc, &argv, NULL); qtest_add_func("/ac97/nop", nop); diff --git a/tests/es1370-test.c b/tests/es1370-test.c index cc23fb5..d539ba3 100644 --- a/tests/es1370-test.c +++ b/tests/es1370-test.c @@ -8,6 +8,7 @@ */ #include +#include #include #include "libqtest.h" #include "qemu/osdep.h" @@ -21,6 +22,8 @@ int main(int argc, char **argv) { int ret; + setenv("QEMU_AUDIO_DRV", "none", true); + g_test_init(&argc, &argv, NULL); qtest_add_func("/es1370/nop", nop); diff --git a/tests/intel-hda-test.c b/tests/intel-hda-test.c index d89b407..32dc58f 100644 --- a/tests/intel-hda-test.c +++ b/tests/intel-hda-test.c @@ -8,6 +8,7 @@ */ #include +#include #include #include "libqtest.h" #include "qemu/osdep.h" @@ -35,6 +36,8 @@ int main(int argc, char **argv) { int ret; + setenv("QEMU_AUDIO_DRV", "none", true); + g_test_init(&argc, &argv, NULL); qtest_add_func("/intel-hda/ich6", ich6_test); qtest_add_func("/intel-hda/ich9", ich9_test); -- 1.8.3.1