From 43da08a1e3620cc296d27ef5cdf387693b063c68 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 16 Feb 2020 21:36:24 +0100 Subject: Fix style, minor code fixes, and add review comments. --- test/Makefile.am | 12 +++++++++++- test/eventsdstest.cc | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 test/eventsdstest.cc (limited to 'test') diff --git a/test/Makefile.am b/test/Makefile.am index 56d7fa3..d0f718d 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -7,7 +7,8 @@ TESTS = resource enginetest paintertest configfile audiocache \ audiocachefile audiocacheidmanager audiocacheeventhandler \ randomtest atomictest syncedsettingstest imagecachetest \ semaphoretest drumkitcreatortest bytesizeparsertest notifiertest \ - dgxmlparsertest domloadertest configparsertest midimapparsertest + dgxmlparsertest domloadertest configparsertest midimapparsertest \ + eventsdstest EXTRA_DIST = \ dgunit.h \ @@ -259,4 +260,13 @@ midimapparsertest_SOURCES = \ midimapparsertest.cc \ dgtest.cc +eventsdstest_CXXFLAGS = -DOUTPUT=\"eventsdstest\" \ + $(DEBUG_FLAGS) \ + -I$(top_srcdir)/src +eventsdstest_LDFLAGS = +eventsdstest_SOURCES = \ + $(top_srcdir)/src/events_ds.cc \ + eventsdstest.cc \ + dgtest.cc + endif diff --git a/test/eventsdstest.cc b/test/eventsdstest.cc new file mode 100644 index 0000000..2616053 --- /dev/null +++ b/test/eventsdstest.cc @@ -0,0 +1,49 @@ +/* -*- Mode: c++ -*- */ +/*************************************************************************** + * eventsdstest.cc + * + * Sun Feb 16 21:38:59 CET 2020 + * Copyright 2020 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + +/* + * This file is part of DrumGizmo. + * + * DrumGizmo is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * DrumGizmo is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with DrumGizmo; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ +#include "dgunit.h" + +#include "../src/events_ds.h" + +class EventsDSTest + : public DGUnit +{ +public: + EventsDSTest() + { + DGUNIT_TEST(EventsDSTest::todo); + } + +public: + void todo() + { + // TODO: Add some tests here + DGUNIT_ASSERT(false); + } +}; + +// Registers the fixture into the 'registry' +static EventsDSTest test; -- cgit v1.2.3