lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master b0ed5cc 07/30: Create required files in the b


From: Greg Chicares
Subject: [lmi-commits] [lmi] master b0ed5cc 07/30: Create required files in the build directory with autotools
Date: Wed, 24 Mar 2021 15:31:07 -0400 (EDT)

branch: master
commit b0ed5cc81ef3884afeacdef941586cb43bf455b7
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Create required files in the build directory with autotools
    
    The existing tests rely on existence of these files in the current
    directory and they can't (easily) be run from the source directory with
    automake, so create the required files in the build directory instead.
    
    A better solution might be to make the directory with these files
    configurable, e.g. via an environment variable, but for now this is
    enough to allow "make check" to work.
---
 configure.ac | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/configure.ac b/configure.ac
index 025469d..566dc14 100644
--- a/configure.ac
+++ b/configure.ac
@@ -592,5 +592,21 @@ if test "x$GXX" == "xyes"; then
 fi
 
 dnl === Generate output files ===
+
+dnl These files are used by various tests and must be present in the build
+dnl directory. The configurable settings file contains just the bare minimum
+dnl required, but what little is there, is really needed for the tests to pass.
+AC_CONFIG_COMMANDS([configurable_settings.xml], [
+cat >configurable_settings.xml <<EOF
+<?xml version="1.0"?>
+<configurable_settings version="2">
+  <print_directory>.</print_directory>
+  <spreadsheet_file_extension>.tsv</spreadsheet_file_extension>
+</configurable_settings>
+EOF
+])
+AC_CONFIG_COMMANDS([sample.policy], [touch sample.policy])
+AC_CONFIG_LINKS([sample.cns:sample.cns sample.ill:sample.ill])
+
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT



reply via email to

[Prev in Thread] Current Thread [Next in Thread]