[Libosinfo] [osinfo-db-tools PATCH 1/7] makefile: Add needed machinery for tests
Fabiano Fidêncio
fidencio at redhat.com
Fri Apr 5 11:33:13 UTC 2019
https://gitlab.com/libosinfo/osinfo-db-tools/issues/2
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
.gitignore | 1 +
Makefile.am | 2 +-
configure.ac | 1 +
tests/Makefile.am | 16 ++++++++++++++++
4 files changed, 19 insertions(+), 1 deletion(-)
create mode 100644 tests/Makefile.am
diff --git a/.gitignore b/.gitignore
index 8b375de..8981135 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,6 +31,7 @@ m4
stamp-h1
*.spec
build/
+tests/*.log
tools/osinfo-db-validate
tools/osinfo-db-validate.exe
tools/osinfo-db-validate.1
diff --git a/Makefile.am b/Makefile.am
index 37e6b60..8c81f5a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,5 @@
-SUBDIRS = tools docs po
+SUBDIRS = tools docs po tests
EXTRA_DIST = \
osinfo-db-tools.spec \
diff --git a/configure.ac b/configure.ac
index 753a5c7..d87f86c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,6 +60,7 @@ AC_CONFIG_FILES([
mingw-osinfo-db-tools.spec
tools/Makefile
docs/Makefile
+ tests/Makefile
po/Makefile.in
])
AC_OUTPUT
diff --git a/tests/Makefile.am b/tests/Makefile.am
new file mode 100644
index 0000000..5108cb3
--- /dev/null
+++ b/tests/Makefile.am
@@ -0,0 +1,16 @@
+EXTRA_DIST = data
+
+test_helpers = \
+ $(NULL)
+
+test_programs = \
+ $(NULL)
+
+EXTRA_DIST += \
+ $(test_helpers) \
+ $(test_programs) \
+ $(NULL)
+
+TESTS = \
+ $(test_programs) \
+ $(NULL)
--
2.21.0
More information about the Libosinfo
mailing list