Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2…
Browse files Browse the repository at this point in the history
…019-03-08' into staging

- qtest fixes
- Some generic clean-ups by Philippe
- macOS CI testing via cirrus-ci.com

# gpg: Signature made Fri 08 Mar 2019 08:58:47 GMT
# gpg:                using RSA key 2ED9D774FE702DB5
# gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full]
# gpg:                 aka "Thomas Huth <thuth@redhat.com>" [full]
# gpg:                 aka "Thomas Huth <huth@tuxfamily.org>" [full]
# gpg:                 aka "Thomas Huth <th.huth@posteo.de>" [unknown]
# Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5

* remotes/huth-gitlab/tags/pull-request-2019-03-08:
  cirrus.yml: Add macOS continuous integration task
  tests/bios-tables: Improve portability by searching bash in the $PATH
  vhost-user-test: fix leaks
  tests: Do not use "\n" in g_test_message() strings
  hw/devices: Remove unused TC6393XB_RAM definition
  hw: Remove unused 'hw/devices.h' include
  tests: Move qdict-test-data.txt to tests/data/qobject/

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

# Conflicts:
#	tests/vhost-user-test.c
  • Loading branch information
pm215 committed Mar 8, 2019
2 parents 62cfabb + 4966c5b commit 234afe7
Show file tree
Hide file tree
Showing 38 changed files with 44 additions and 56 deletions.
15 changes: 13 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
env:
CIRRUS_CLONE_DEPTH: 1

freebsd_12_task:
freebsd_instance:
image: freebsd-12-0-release-amd64
cpu: 8
memory: 8G
env:
CIRRUS_CLONE_DEPTH: 1
install_script: pkg install -y
bison curl cyrus-sasl git glib gmake gnutls
nettle perl5 pixman pkgconf png usbredir
Expand All @@ -14,3 +15,13 @@ freebsd_12_task:
- ../configure || { cat config.log; exit 1; }
- gmake -j8
- gmake -j8 V=1 check

macos_task:
osx_instance:
image: mojave-base
install_script:
- brew install pkg-config python glib pixman make sdl2
script:
- ./configure --python=/usr/local/bin/python3 || { cat config.log; exit 1; }
- gmake -j$(sysctl -n hw.ncpu)
- gmake check -j$(sysctl -n hw.ncpu)
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,7 @@ F: tests/check-qnull.c
F: tests/check-qnum.c
F: tests/check-qobject.c
F: tests/check-qstring.c
F: qdict-test-data.txt
F: tests/data/qobject/qdict.txt
T: git https://repo.or.cz/qemu/armbru.git qapi-next

QEMU Guest Agent
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -7737,7 +7737,7 @@ DIRS="$DIRS tests/fp tests/qgraph"
DIRS="$DIRS docs docs/interop fsdev scsi"
DIRS="$DIRS pc-bios/optionrom pc-bios/spapr-rtas pc-bios/s390-ccw"
DIRS="$DIRS roms/seabios roms/vgabios"
LINKS="Makefile tests/tcg/Makefile qdict-test-data.txt"
LINKS="Makefile tests/tcg/Makefile"
LINKS="$LINKS tests/tcg/cris/Makefile tests/tcg/cris/.gdbinit"
LINKS="$LINKS tests/tcg/lm32/Makefile tests/tcg/xtensa/Makefile po/Makefile"
LINKS="$LINKS tests/fp/Makefile"
Expand Down
1 change: 0 additions & 1 deletion hw/alpha/typhoon.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "qapi/error.h"
#include "cpu.h"
#include "hw/hw.h"
#include "hw/devices.h"
#include "sysemu/sysemu.h"
#include "alpha_sys.h"
#include "exec/address-spaces.h"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/allwinner-a10.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "qemu-common.h"
#include "cpu.h"
#include "hw/sysbus.h"
#include "hw/devices.h"
#include "hw/arm/allwinner-a10.h"
#include "hw/misc/unimp.h"

Expand Down
1 change: 0 additions & 1 deletion hw/arm/collie.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "hw/hw.h"
#include "hw/sysbus.h"
#include "hw/boards.h"
#include "hw/devices.h"
#include "strongarm.h"
#include "hw/arm/arm.h"
#include "hw/block/flash.h"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/cubieboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "qemu-common.h"
#include "cpu.h"
#include "hw/sysbus.h"
#include "hw/devices.h"
#include "hw/boards.h"
#include "hw/arm/allwinner-a10.h"

Expand Down
1 change: 0 additions & 1 deletion hw/arm/highbank.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "qapi/error.h"
#include "hw/sysbus.h"
#include "hw/arm/arm.h"
#include "hw/devices.h"
#include "hw/loader.h"
#include "net/net.h"
#include "sysemu/kvm.h"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/mps2-tz.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
#include "hw/arm/armsse.h"
#include "hw/dma/pl080.h"
#include "hw/ssi/pl022.h"
#include "hw/devices.h"
#include "net/net.h"
#include "hw/core/split-irq.h"

Expand Down
1 change: 0 additions & 1 deletion hw/arm/musicpal.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "cpu.h"
#include "hw/sysbus.h"
#include "hw/arm/arm.h"
#include "hw/devices.h"
#include "net/net.h"
#include "sysemu/sysemu.h"
#include "hw/boards.h"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/nrf51_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "hw/arm/arm.h"
#include "hw/sysbus.h"
#include "hw/boards.h"
#include "hw/devices.h"
#include "hw/misc/unimp.h"
#include "exec/address-spaces.h"
#include "sysemu/sysemu.h"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/spitz.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "hw/ssi/ssi.h"
#include "hw/block/flash.h"
#include "qemu/timer.h"
#include "hw/devices.h"
#include "hw/arm/sharpsl.h"
#include "ui/console.h"
#include "hw/audio/wm8750.h"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include "hw/vfio/vfio-calxeda-xgmac.h"
#include "hw/vfio/vfio-amd-xgbe.h"
#include "hw/display/ramfb.h"
#include "hw/devices.h"
#include "net/net.h"
#include "sysemu/device_tree.h"
#include "sysemu/numa.h"
Expand Down
1 change: 0 additions & 1 deletion hw/arm/z2.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "hw/hw.h"
#include "hw/arm/pxa.h"
#include "hw/arm/arm.h"
#include "hw/devices.h"
#include "hw/i2c/i2c.h"
#include "hw/ssi/ssi.h"
#include "hw/boards.h"
Expand Down
1 change: 0 additions & 1 deletion hw/display/sm501.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "hw/hw.h"
#include "hw/char/serial.h"
#include "ui/console.h"
#include "hw/devices.h"
#include "hw/sysbus.h"
#include "hw/pci/pci.h"
#include "hw/i2c/i2c.h"
Expand Down
1 change: 0 additions & 1 deletion hw/hppa/dino.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "qapi/error.h"
#include "cpu.h"
#include "hw/hw.h"
#include "hw/devices.h"
#include "sysemu/sysemu.h"
#include "hw/pci/pci.h"
#include "hw/pci/pci_bus.h"
Expand Down
1 change: 0 additions & 1 deletion hw/intc/allwinner-a10-pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/devices.h"
#include "sysemu/sysemu.h"
#include "hw/intc/allwinner-a10-pic.h"
#include "qemu/log.h"
Expand Down
1 change: 0 additions & 1 deletion hw/lm32/lm32_boards.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "hw/sysbus.h"
#include "hw/hw.h"
#include "hw/block/flash.h"
#include "hw/devices.h"
#include "hw/boards.h"
#include "hw/loader.h"
#include "elf.h"
Expand Down
1 change: 0 additions & 1 deletion hw/lm32/milkymist.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "hw/block/flash.h"
#include "sysemu/sysemu.h"
#include "sysemu/qtest.h"
#include "hw/devices.h"
#include "hw/boards.h"
#include "hw/loader.h"
#include "elf.h"
Expand Down
1 change: 0 additions & 1 deletion hw/microblaze/petalogix_ml605_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include "net/net.h"
#include "hw/block/flash.h"
#include "sysemu/sysemu.h"
#include "hw/devices.h"
#include "hw/boards.h"
#include "hw/char/serial.h"
#include "exec/address-spaces.h"
Expand Down
1 change: 0 additions & 1 deletion hw/microblaze/petalogix_s3adsp1800_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include "net/net.h"
#include "hw/block/flash.h"
#include "sysemu/sysemu.h"
#include "hw/devices.h"
#include "hw/boards.h"
#include "hw/misc/unimp.h"
#include "exec/address-spaces.h"
Expand Down
1 change: 0 additions & 1 deletion hw/net/dp8393x.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "qemu/osdep.h"
#include "hw/sysbus.h"
#include "hw/devices.h"
#include "net/net.h"
#include "qapi/error.h"
#include "qemu/timer.h"
Expand Down
1 change: 0 additions & 1 deletion hw/ppc/virtex_ml507.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "hw/block/flash.h"
#include "sysemu/sysemu.h"
#include "sysemu/qtest.h"
#include "hw/devices.h"
#include "hw/boards.h"
#include "sysemu/device_tree.h"
#include "hw/loader.h"
Expand Down
1 change: 0 additions & 1 deletion hw/sh4/r2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "hw/sysbus.h"
#include "hw/hw.h"
#include "hw/sh4/sh.h"
#include "hw/devices.h"
#include "sysemu/sysemu.h"
#include "hw/boards.h"
#include "hw/pci/pci.h"
Expand Down
1 change: 0 additions & 1 deletion hw/tricore/tricore_testboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "qemu-common.h"
#include "cpu.h"
#include "hw/hw.h"
#include "hw/devices.h"
#include "net/net.h"
#include "sysemu/sysemu.h"
#include "hw/boards.h"
Expand Down
1 change: 0 additions & 1 deletion hw/usb/tusb6010.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "hw/usb.h"
#include "hw/arm/omap.h"
#include "hw/irq.h"
#include "hw/devices.h"
#include "hw/sysbus.h"

#define TYPE_TUSB6010 "tusb6010"
Expand Down
1 change: 0 additions & 1 deletion include/hw/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ void retu_key_event(void *retu, int state);

/* tc6393xb.c */
typedef struct TC6393xbState TC6393xbState;
#define TC6393XB_RAM 0x110000 /* amount of ram for Video and USB */
TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,
uint32_t base, qemu_irq irq);
void tc6393xb_gpio_out_set(TC6393xbState *s, int line,
Expand Down
2 changes: 1 addition & 1 deletion tests/check-qdict.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static void qdict_stress_test(void)
FILE *test_file;
QDict *qdict;
QString *value;
const char *test_file_path = "qdict-test-data.txt";
const char *test_file_path = "tests/data/qobject/qdict.txt";

test_file = fopen(test_file_path, "r");
g_assert(test_file != NULL);
Expand Down
2 changes: 1 addition & 1 deletion tests/data/acpi/rebuild-expected-aml.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash

#
# Rebuild expected AML files for acpi unit-test
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/ivshmem-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static inline unsigned in_reg(IVState *s, enum Reg reg)
unsigned res;

res = qpci_io_readl(s->dev, s->reg_bar, reg);
g_test_message("*%s -> %x\n", name, res);
g_test_message("*%s -> %x", name, res);

return res;
}
Expand All @@ -83,7 +83,7 @@ static inline void out_reg(IVState *s, enum Reg reg, unsigned v)
{
const char *name = reg2str(reg);

g_test_message("%x -> *%s\n", v, name);
g_test_message("%x -> *%s", v, name);
qpci_io_writel(s->dev, s->reg_bar, reg, v);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/m48t59-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ static void bcd_check_time(void)
t = (long)mktime(datep);
s = (long)mktime(&start);
if (t < s) {
g_test_message("RTC is %ld second(s) behind wall-clock\n", (s - t));
g_test_message("RTC is %ld second(s) behind wall-clock", (s - t));
} else {
g_test_message("RTC is %ld second(s) ahead of wall-clock\n", (t - s));
g_test_message("RTC is %ld second(s) ahead of wall-clock", (t - s));
}

g_assert_cmpint(ABS(t - s), <=, wiggle);
Expand Down
4 changes: 2 additions & 2 deletions tests/migration-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ int main(int argc, char **argv)

tmpfs = mkdtemp(template);
if (!tmpfs) {
g_test_message("mkdtemp on path (%s): %s\n", template, strerror(errno));
g_test_message("mkdtemp on path (%s): %s", template, strerror(errno));
}
g_assert(tmpfs);

Expand All @@ -1087,7 +1087,7 @@ int main(int argc, char **argv)

ret = rmdir(tmpfs);
if (ret != 0) {
g_test_message("unable to rmdir: path (%s): %s\n",
g_test_message("unable to rmdir: path (%s): %s",
tmpfs, strerror(errno));
}

Expand Down
4 changes: 2 additions & 2 deletions tests/rtc-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ static void check_time(int wiggle)
t = (long)mktime(datep);
s = (long)mktime(&start);
if (t < s) {
g_test_message("RTC is %ld second(s) behind wall-clock\n", (s - t));
g_test_message("RTC is %ld second(s) behind wall-clock", (s - t));
} else {
g_test_message("RTC is %ld second(s) ahead of wall-clock\n", (t - s));
g_test_message("RTC is %ld second(s) ahead of wall-clock", (t - s));
}

g_assert_cmpint(ABS(t - s), <=, wiggle);
Expand Down
6 changes: 3 additions & 3 deletions tests/rtl8139-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ static QPCIDevice *get_device(void)
static unsigned __attribute__((unused)) in_##name(void) \
{ \
unsigned res = qpci_io_read##len(dev, dev_bar, (val)); \
g_test_message("*%s -> %x\n", #name, res); \
g_test_message("*%s -> %x", #name, res); \
return res; \
} \
static void out_##name(unsigned v) \
{ \
g_test_message("%x -> *%s\n", v, #name); \
g_test_message("%x -> *%s", v, #name); \
qpci_io_write##len(dev, dev_bar, (val), v); \
}

Expand Down Expand Up @@ -176,7 +176,7 @@ static void test_timer(void)
}
}

g_test_message("Everythink is ok!\n");
g_test_message("Everythink is ok!");
}


Expand Down
8 changes: 4 additions & 4 deletions tests/test-aio-multithread.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static void test_multi_co_schedule(int seconds)
}

join_aio_contexts();
g_test_message("scheduled %d, queued %d, retry %d, total %d\n",
g_test_message("scheduled %d, queued %d, retry %d, total %d",
count_other, count_here, count_retry,
count_here + count_other + count_retry);
}
Expand Down Expand Up @@ -242,7 +242,7 @@ static void test_multi_co_mutex(int threads, int seconds)
}

join_aio_contexts();
g_test_message("%d iterations/second\n", counter / seconds);
g_test_message("%d iterations/second", counter / seconds);
g_assert_cmpint(counter, ==, atomic_counter);
}

Expand Down Expand Up @@ -361,7 +361,7 @@ static void test_multi_fair_mutex(int threads, int seconds)
}

join_aio_contexts();
g_test_message("%d iterations/second\n", counter / seconds);
g_test_message("%d iterations/second", counter / seconds);
g_assert_cmpint(counter, ==, atomic_counter);
}

Expand Down Expand Up @@ -417,7 +417,7 @@ static void test_multi_mutex(int threads, int seconds)
}

join_aio_contexts();
g_test_message("%d iterations/second\n", counter / seconds);
g_test_message("%d iterations/second", counter / seconds);
g_assert_cmpint(counter, ==, atomic_counter);
}

Expand Down
Loading

0 comments on commit 234afe7

Please sign in to comment.