summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2023-12-21 01:20:29 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2023-12-30 01:37:14 +0100
commit1abe42857baf0348ba60e83a4c42361e00c3be71 (patch)
tree3f62cdf12951053a4b98366a550c35f81f1e9544
parentb37e243a1e96bb99b42eff9295b448f0241a89b8 (diff)
Fix include paths for tests
They are now relative to the root directory of the project, instead of relative to the test file location.
-rw-r--r--test/dw/dw_anchors_test.cc9
-rw-r--r--test/dw/dw_border_test.cc11
-rw-r--r--test/dw/dw_example.cc9
-rw-r--r--test/dw/dw_find_test.cc9
-rw-r--r--test/dw/dw_float_test.cc8
-rw-r--r--test/dw/dw_image_background.cc11
-rw-r--r--test/dw/dw_images_scaled.cc11
-rw-r--r--test/dw/dw_images_scaled2.cc11
-rw-r--r--test/dw/dw_images_simple.cc11
-rw-r--r--test/dw/dw_imgbuf_mem_test.cc5
-rw-r--r--test/dw/dw_links.cc9
-rw-r--r--test/dw/dw_links2.cc9
-rw-r--r--test/dw/dw_lists.cc11
-rw-r--r--test/dw/dw_resource_test.cc11
-rw-r--r--test/dw/dw_simple_container_test.cc9
-rw-r--r--test/dw/dw_table.cc9
-rw-r--r--test/dw/dw_table_aligned.cc11
-rw-r--r--test/dw/dw_ui_test.cc13
-rw-r--r--test/dw/form.hh4
-rw-r--r--test/unit/containers.cc4
-rw-r--r--test/unit/cookies.c4
-rw-r--r--test/unit/identity.cc2
-rw-r--r--test/unit/notsosimplevector.cc2
-rw-r--r--test/unit/trie.cc2
24 files changed, 106 insertions, 89 deletions
diff --git a/test/dw/dw_anchors_test.cc b/test/dw/dw_anchors_test.cc
index d7201053..e88cecb6 100644
--- a/test/dw/dw_anchors_test.cc
+++ b/test/dw/dw_anchors_test.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,10 +24,10 @@
#include <FL/Fl_Window.H>
#include <FL/Fl.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
using namespace lout::container::typed;
using namespace dw;
diff --git a/test/dw/dw_border_test.cc b/test/dw/dw_border_test.cc
index ec5a09a5..fd04210b 100644
--- a/test/dw/dw_border_test.cc
+++ b/test/dw/dw_border_test.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +23,11 @@
#include <FL/Fl_Window.H>
#include <FL/Fl.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
-#include "../dw/listitem.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
+#include "dw/listitem.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_example.cc b/test/dw/dw_example.cc
index 259650cf..a8de0147 100644
--- a/test/dw/dw_example.cc
+++ b/test/dw/dw_example.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,10 +23,10 @@
#include <FL/Fl_Window.H>
#include <FL/Fl.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
int main(int argc, char **argv)
diff --git a/test/dw/dw_find_test.cc b/test/dw/dw_find_test.cc
index 5bddda10..6da75e8d 100644
--- a/test/dw/dw_find_test.cc
+++ b/test/dw/dw_find_test.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,10 +23,10 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
using namespace lout::container::typed;
using namespace dw;
diff --git a/test/dw/dw_float_test.cc b/test/dw/dw_float_test.cc
index 807002b2..431df00e 100644
--- a/test/dw/dw_float_test.cc
+++ b/test/dw/dw_float_test.cc
@@ -1,10 +1,10 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_image_background.cc b/test/dw/dw_image_background.cc
index 14cb7b97..ce1be2a0 100644
--- a/test/dw/dw_image_background.cc
+++ b/test/dw/dw_image_background.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2013 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +23,11 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
-#include "../dw/image.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
+#include "dw/image.hh"
using namespace lout::signal;
using namespace lout::misc;
diff --git a/test/dw/dw_images_scaled.cc b/test/dw/dw_images_scaled.cc
index e31abfaa..4b355eeb 100644
--- a/test/dw/dw_images_scaled.cc
+++ b/test/dw/dw_images_scaled.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +23,11 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
-#include "../dw/image.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
+#include "dw/image.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_images_scaled2.cc b/test/dw/dw_images_scaled2.cc
index 01a55bcf..3b27209a 100644
--- a/test/dw/dw_images_scaled2.cc
+++ b/test/dw/dw_images_scaled2.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +23,11 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
-#include "../dw/image.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
+#include "dw/image.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_images_simple.cc b/test/dw/dw_images_simple.cc
index 361ede68..e332a6c2 100644
--- a/test/dw/dw_images_simple.cc
+++ b/test/dw/dw_images_simple.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +23,11 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
-#include "../dw/image.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
+#include "dw/image.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_imgbuf_mem_test.cc b/test/dw/dw_imgbuf_mem_test.cc
index e2532ea7..7e083d31 100644
--- a/test/dw/dw_imgbuf_mem_test.cc
+++ b/test/dw/dw_imgbuf_mem_test.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -17,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
using namespace lout::signal;
using namespace dw::core;
diff --git a/test/dw/dw_links.cc b/test/dw/dw_links.cc
index 79ccbb54..9c419961 100644
--- a/test/dw/dw_links.cc
+++ b/test/dw/dw_links.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,10 +23,10 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_links2.cc b/test/dw/dw_links2.cc
index acb095f3..b1ef6ddb 100644
--- a/test/dw/dw_links2.cc
+++ b/test/dw/dw_links2.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,10 +24,10 @@
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_lists.cc b/test/dw/dw_lists.cc
index 2aa0abb7..17ebffd1 100644
--- a/test/dw/dw_lists.cc
+++ b/test/dw/dw_lists.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +23,11 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
-#include "../dw/listitem.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
+#include "dw/listitem.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_resource_test.cc b/test/dw/dw_resource_test.cc
index e8a8b227..6035c50f 100644
--- a/test/dw/dw_resource_test.cc
+++ b/test/dw/dw_resource_test.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +23,11 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/textblock.hh"
-#include "../dw/ui.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/textblock.hh"
+#include "dw/ui.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_simple_container_test.cc b/test/dw/dw_simple_container_test.cc
index 83d0a77f..441fe37e 100644
--- a/test/dw/dw_simple_container_test.cc
+++ b/test/dw/dw_simple_container_test.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2014 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +23,11 @@
#include <FL/Fl_Window.H>
#include <FL/Fl.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
#include "dw_simple_container.hh"
-#include "../dw/textblock.hh"
+#include "dw/textblock.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_table.cc b/test/dw/dw_table.cc
index 9bec1a09..bb596565 100644
--- a/test/dw/dw_table.cc
+++ b/test/dw/dw_table.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,10 +23,10 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/table.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/table.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_table_aligned.cc b/test/dw/dw_table_aligned.cc
index bef3d521..826ffebd 100644
--- a/test/dw/dw_table_aligned.cc
+++ b/test/dw/dw_table_aligned.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,11 +23,11 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/table.hh"
-#include "../dw/alignedtablecell.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/table.hh"
+#include "dw/alignedtablecell.hh"
using namespace dw;
using namespace dw::core;
diff --git a/test/dw/dw_ui_test.cc b/test/dw/dw_ui_test.cc
index f24cc9b9..ec3626cc 100644
--- a/test/dw/dw_ui_test.cc
+++ b/test/dw/dw_ui_test.cc
@@ -2,6 +2,7 @@
* Dillo Widget
*
* Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,12 +23,12 @@
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
-#include "../dw/core.hh"
-#include "../dw/fltkcore.hh"
-#include "../dw/fltkviewport.hh"
-#include "../dw/table.hh"
-#include "../dw/textblock.hh"
-#include "../dw/ui.hh"
+#include "dw/core.hh"
+#include "dw/fltkcore.hh"
+#include "dw/fltkviewport.hh"
+#include "dw/table.hh"
+#include "dw/textblock.hh"
+#include "dw/ui.hh"
#include "form.hh"
using namespace lout::object;
diff --git a/test/dw/form.hh b/test/dw/form.hh
index 6235c6cc..ab5b90d5 100644
--- a/test/dw/form.hh
+++ b/test/dw/form.hh
@@ -1,8 +1,8 @@
#ifndef __TEST_FORM_HH__
#define __TEST_FORM_HH__
-#include "../dw/core.hh"
-#include "../dw/ui.hh"
+#include "dw/core.hh"
+#include "dw/ui.hh"
namespace form {
diff --git a/test/unit/containers.cc b/test/unit/containers.cc
index af317d7e..52a20bf1 100644
--- a/test/unit/containers.cc
+++ b/test/unit/containers.cc
@@ -1,5 +1,5 @@
-#include "../lout/object.hh"
-#include "../lout/container.hh"
+#include "lout/object.hh"
+#include "lout/container.hh"
using namespace lout::object;
using namespace lout::container::typed;
diff --git a/test/unit/cookies.c b/test/unit/cookies.c
index eaa0f59d..923f5227 100644
--- a/test/unit/cookies.c
+++ b/test/unit/cookies.c
@@ -48,8 +48,8 @@
#define MSG_ERR(...) MSG_INNARDS("** ERROR **: ", __VA_ARGS__)
-#include "../dlib/dlib.h"
-#include "../dpip/dpip.h"
+#include "dlib/dlib.h"
+#include "dpip/dpip.h"
static uint_t failed = 0;
static uint_t passed = 0;
diff --git a/test/unit/identity.cc b/test/unit/identity.cc
index a1a136eb..b1941361 100644
--- a/test/unit/identity.cc
+++ b/test/unit/identity.cc
@@ -10,7 +10,7 @@
* assumed that B is a subclass of A.)
*/
-#include "../lout/identity.hh"
+#include "lout/identity.hh"
using namespace lout::identity;
diff --git a/test/unit/notsosimplevector.cc b/test/unit/notsosimplevector.cc
index d41288fb..aeb5c17b 100644
--- a/test/unit/notsosimplevector.cc
+++ b/test/unit/notsosimplevector.cc
@@ -1,4 +1,4 @@
-#include "../lout/misc.hh"
+#include "lout/misc.hh"
static void print (lout::misc::NotSoSimpleVector<int> *v)
{
diff --git a/test/unit/trie.cc b/test/unit/trie.cc
index 41b56c70..dfcf80fd 100644
--- a/test/unit/trie.cc
+++ b/test/unit/trie.cc
@@ -1,4 +1,4 @@
-#include "../dw/hyphenator.hh"
+#include "dw/hyphenator.hh"
int main (int argc, char *argv[])
{