
On Tue, Jan 28, 2014 at 02:13:19PM +0100, Christophe Fergeau wrote:
It's currently only testing removal of disabled timer/watches --- tests/Makefile.am | 6 +- tests/test-events.c | 172 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+), 2 deletions(-) create mode 100644 tests/test-events.c
diff --git a/tests/Makefile.am b/tests/Makefile.am index 3ad0819..56887ce 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,13 +4,15 @@ AM_CFLAGS = \ $(COVERAGE_CFLAGS) \ -I$(top_srcdir) \ $(GOBJECT2_CFLAGS) \ + $(LIBVIRT_CFLAGS) \ $(LIBXML2_CFLAGS) \ $(WARN_CFLAGS)
LDADD = \ - $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la + $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \ + $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la
-test_programs = test-gconfig +test_programs = test-gconfig test-events
dist_test_data = \ xml/gconfig-domain.xml \ diff --git a/tests/test-events.c b/tests/test-events.c new file mode 100644 index 0000000..ce80719 --- /dev/null +++ b/tests/test-events.c @@ -0,0 +1,172 @@ +/* + * test-events.c: unit tests for libvirt/glib mainloop integration + * + * Copyright (C) 2014 Red Hat, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * The Software is provided "as is", without warranty of any kind, express + * or implied, including but not limited to the warranties of + * merchantability, fitness for a particular purpose and noninfringement. + * In no event shall the authors or copyright holders be liable for any + * claim, damages or other liability, whether in an action of contract, + * tort or otherwise, arising from, out of or in connection with the + * software or the use or other dealings in the Software. + * + * Author: Christophe Fergeau <cfergeau@redhat.com> + */
Again, incorrect license The test looks good though Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|