summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-02-16 21:36:24 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2020-02-23 13:45:25 +0100
commit43da08a1e3620cc296d27ef5cdf387693b063c68 (patch)
tree74f75cafd661c0748f3c5856697cec12acdb39e1 /test
parentcdc96aae4393f0cba0e274efcccc95bc25c5bbdd (diff)
Fix style, minor code fixes, and add review comments.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am12
-rw-r--r--test/eventsdstest.cc49
2 files changed, 60 insertions, 1 deletions
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;