# HG changeset patch
# User Pantxo Diribarne <pantxo.diribarne@gmail.com>
# Date 1549743794 -3600
#      Sat Feb 09 21:23:14 2019 +0100
# Branch stable
# Node ID bfec23e657299dc608cb60bdb7e288bfb43ecf87
# Parent  496e7abe1662632e95241d4b93c98418ebc298af
Properly integrate hgload tests in the build system (bug #53468)

* test/bug-53468: New directory with its module.mk.
* test/figure_files: Move contents to bug-53468 and remove directory
* test/hgload.tst: Rename bug-53468.tst and move to bug-53468.

diff --git a/test/bug-53468/bug-53468.tst b/test/bug-53468/bug-53468.tst
new file mode 100644
--- /dev/null
+++ b/test/bug-53468/bug-53468.tst
@@ -0,0 +1,29 @@
+## Copyright (C) 2018 Pantxo Diribarne
+##
+## This file is part of Octave.
+##
+## Octave is free software: you can redistribute it and/or modify it
+## under the terms of the GNU General Public License as published by
+## the Free Software Foundation, either version 3 of the License, or
+## (at your option) any later version.
+##
+## Octave 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 General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with Octave; see the file COPYING.  If not, see
+## <https://www.gnu.org/licenses/>.
+
+## Load an Octave 4.0.3 figure file
+%!test
+%! hgload ("ofig403.ofig");
+
+## Load an Octave 4.2.1 figure file
+%!test
+%! hgload ("ofig421.ofig");
+
+## Load an Octave 5.1 figure file
+%!test
+%! hgload ("ofig51.ofig");
diff --git a/test/bug-53468/module.mk b/test/bug-53468/module.mk
new file mode 100644
--- /dev/null
+++ b/test/bug-53468/module.mk
@@ -0,0 +1,8 @@
+bug_53468_TEST_FILES = \
+  %reldir%/bug-53468.tst \
+  %reldir%/ofig403.ofig \
+  %reldir%/ofig421.ofig \
+  %reldir%/ofig51.ofig
+
+TEST_FILES += $(bug_53468_TEST_FILES)
+
diff --git a/test/bug-53468/ofig403.ofig b/test/bug-53468/ofig403.ofig
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..9187bb444ffa2455c135848e94ced05f85d9248c
GIT binary patch
diff --git a/test/bug-53468/ofig421.ofig b/test/bug-53468/ofig421.ofig
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..86651f173252f171662bc5b992e6879a29b6f1da
GIT binary patch
diff --git a/test/bug-53468/ofig51.ofig b/test/bug-53468/ofig51.ofig
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0d423e7e44ef501d1eb504926cd85a4c57c4cf0d
GIT binary patch
diff --git a/test/figure_files/ofig403.ofig b/test/figure_files/ofig403.ofig
deleted file mode 100644
index 9187bb444ffa2455c135848e94ced05f85d9248c..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
diff --git a/test/figure_files/ofig421.ofig b/test/figure_files/ofig421.ofig
deleted file mode 100644
index 86651f173252f171662bc5b992e6879a29b6f1da..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
diff --git a/test/figure_files/ofig51.ofig b/test/figure_files/ofig51.ofig
deleted file mode 100644
index 0d423e7e44ef501d1eb504926cd85a4c57c4cf0d..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
GIT binary patch
diff --git a/test/hgload.tst b/test/hgload.tst
deleted file mode 100644
--- a/test/hgload.tst
+++ /dev/null
@@ -1,29 +0,0 @@
-## Copyright (C) 2018 Pantxo Diribarne
-##
-## This file is part of Octave.
-##
-## Octave is free software: you can redistribute it and/or modify it
-## under the terms of the GNU General Public License as published by
-## the Free Software Foundation, either version 3 of the License, or
-## (at your option) any later version.
-##
-## Octave 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 General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with Octave; see the file COPYING.  If not, see
-## <https://www.gnu.org/licenses/>.
-
-## Load an Octave 4.0.3 figure file
-%!test
-%! hgload (fullfile ("figure_files", "ofig403.ofig"));
-
-## Load an Octave 4.2.1 figure file
-%!test
-%! hgload (fullfile ("figure_files", "ofig421.ofig"));
-
-## Load an Octave 5.1 figure file
-%!test
-%! hgload (fullfile ("figure_files", "ofig51.ofig"));
diff --git a/test/module.mk b/test/module.mk
--- a/test/module.mk
+++ b/test/module.mk
@@ -75,6 +75,7 @@
 include %reldir%/bug-52075/module.mk
 include %reldir%/bug-52722/module.mk
 include %reldir%/bug-53027/module.mk
+include %reldir%/bug-53468/module.mk
 include %reldir%/bug-54995/module.mk
 include %reldir%/class-concat/module.mk
 include %reldir%/classdef/module.mk
