Received: from eggs.gnu.org ([2001:4830:134:3::10]:40728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO5DQ-0007EZ-Tn for qemu-devel@nongnu.org; Fri, 15 Jul 2016 11:39:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO5DM-0008Az-Tn for qemu-devel@nongnu.org; Fri, 15 Jul 2016 11:39:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO5DM-0008As-OP for qemu-devel@nongnu.org; Fri, 15 Jul 2016 11:39:44 -0400 From: Thomas Huth Date: Fri, 15 Jul 2016 17:39:37 +0200 Message-Id: <1468597179-8337-1-git-send-email-thuth@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] Add a test for serial output (and sort tests by architecture in the Makefile) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Paolo Bonzini Cc: david@gibson.dropbear.id.au, Eric Blake , Markus Armbruster , Peter Maydell , Richard Henderson , Peter Crosthwaite , Eduardo Habkost Since some of the machines that we support in QEMU sometimes get broken by other changes, and it then takes a while 'till somebody notices the breakage, it would be nice to get some more automatic test coverage for various machines during "make check". The second patch adds such a test for the machines where we've got a firmware image for and thus can test for some magic strings in the serial output of the firmware. The first patch is just a clean-up for the Makefile to avoid that new tests get added with "=" instead of "+=" (and thus completely overwrite the correspond variable by accident). v2: - Some more clean-ups for the Makefile (i.e. some additional empty lines) - Check return value of read() to make sure that there is no error Thomas Huth (2): tests: Resort check-qtest entries in Makefile.include tests: Check serial output of firmware boot of some machines tests/Makefile.include | 46 ++++++++++++++------ tests/boot-serial-test.c | 111 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+), 13 deletions(-) create mode 100644 tests/boot-serial-test.c -- 1.8.3.1