| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
- lib/Automake/ConfVars.pm: add the am_install_var function.
- lib/Automake/Variables.pm: add shadow_unconditionally, am_primary_prefixes
and append_exeext.
|
|
|
|
|
|
|
|
|
|
| |
All tests now use the Test::Simple library. We keep the distinction between
pl (pure perl) and plt (perl + Test::Simple) in case someone wants to write a
perl tests without this lib.
- t/pm/*: All tests now use the plt extension and the Test::Simple library.
- t/pm/CondStack.pl: Remove it as it was not well built and the test results
were false.
|
|
|
|
|
| |
This fixes the warning we had in bcbc407fb where the STDOUT handle was closed
and reopened.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This tests the make_paragraphs method from the Automake::File library. This
uses the newly added .plt file extension as we use the Test::Simple library.
- t/pm/File.pl: Add it.
FIXME: Their is a bug with the test that says:
Filehandle STDOUT reopened as $fh only for input at
/usr/share/perl/5.26/Test2/IPC/Driver/Files.pm line 144 during global
destruction.
It only happens when Automake modules are included. I suspect this comes from
the Automake::General module but this needs to be investigated.
|
|
|
|
|
| |
This is a temporary extension as we will transition all tests to use
Test::Simple.
|
|
|
|
|
|
| |
We now call preprocess_file before make_paragraphs. This is useful to test
the lib as we can now feed a file handle (Automake::XFile) directly to
make_paragraphs (and not simply a filename).
|
|
|
|
|
| |
Their was an include cycle between File.pm and Variable.pm. This is now
fixed.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This function now takes a list of paragraph as argument instead of building it
in its code. This is the first step in the modification of this function to
be able to test it with files that don't "physically" exist in the actual file
system.
* lib/Automake/File.pm: Start the modification of file_contents_internal for
unit testing
|
|
|
|
| |
* t/pm/SilentRules.pl: New tests for the SilentRules module.
|
|
|
|
|
|
|
|
|
|
| |
These functions are language specific functions. To achieve this, we had to
add a new module "TmpModule". The functions in this module should be
relocated when we find a better place.
* lib/Automake/LangHandling.pm: Add handle_emacs_lisp, handle_java,
handle_python to this module.
* lib/Automake/LangHandling: Add this module to avoid include cycles.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This module handles the configure.ac files on the Automake side. It required
to modify a bit the scan_autoconf_[file|traces] functions so we can pass them
the environment var for autoconf as arguments from the main file (otherwise it
wouldn't work).
* lib/Automake/HandleConfigure.pm: Module for handling configure.ac for automake.
* lib/Automake/Utils.pm: Add some necessary functions for the new
HandleConfigure module.
|
| |
|
|
|
|
|
| |
The library provides functions for checking that the required files in a given
standard (GNU org GNITS) are present.
|
|
|
|
|
|
|
| |
The tests that could help me spot this bug was skipped on my machine.
The RULE_AUTOMAKE constant is used in this file so we need the to import the
Automake::RuleDef module.
|
|
|
|
|
|
|
|
|
|
| |
backanme: get the back path to the Makefile directory.
locate_am: locate the *.am file for which a *.in file exists
get_number_of_threads: returns the number of threads on which Automake should
run.
* lib/Automake/Utils.pm: Add the backname, locate_am, get_number_of_threads
functions to the Automake::Utils module.
|
|
|
|
| |
* lib/pm/Texi.pm: New module for handling texinfo files.
|
|
|
|
|
| |
Since we don't have to worry anymore about the tests "fataling" out we can
put the then separated tests into the appropriate files.
|
|
|
|
|
|
| |
Use eval to fix fail XFAIL perl test and catch fatal errors.
* t/pm: No more XFAIL perl tests
|
|
|
|
|
|
| |
This test is placed in the perl_fake_XFAIL_TESTS meaning it is expected to
FAIL but is the correct behavior of the test. It should generate a fatal
error with the following message: 'unknown channel test-fatal'.
|
|
|
|
|
| |
Now the modules don't inherit Exporter anymore. We just get the import method
from it since it is the only method that interests us.
|
|
|
|
|
| |
* lib/Automake/Requires.pm: Add mising header
* lib/Automake/SilentRules.pm: Add missing header
|
|
|
|
|
| |
* automake.in: Rearrange function prototypes.
* lib: Remove useless exports.
|
|
|
|
| |
The module didn't return 1.
|
|
|
|
|
|
|
|
|
|
|
| |
In an effort to move out as much as possible from the main script, we create
these modules to host the methods.
* LangHandling: This module host all the functions for handling
languages (functions that define obj directories of the language, rewrite
the file extention...).
* SilentRules: Declares functions for handling silent rules.
* Requires: Functions for requiring configuration files.
|
|
|
|
| |
Move ̀is_make_dir', ̀push_dist_common' and `canonicalize' to this module.
|
|
|
|
|
|
|
|
| |
We move the variable to the bottom of the file where it is used because we
have no real reason to declare it where it was. The added comment has also
been removed since it doesn't make sense and isn't useful for the
comprehension of this variable. The variable will stay in this file unless we
have a real reason to move it out of this file.
|
|
|
|
|
|
|
| |
This module takes care of outputing errors for Makefile.am and Configure.ac
files.
* lib/Automake/Errors.pm: New file for printing errors about am and ac files.
|
|
|
|
| |
To be squashed if this gets merged.
|
|
|
|
|
|
|
| |
This module is used in Automake::Variable::define to append values to
variables.
* VarAppend: New module with helper functions for appending to variables.
|
|
|
|
|
|
|
| |
The use directives are now rearranged to be more easily read (alphabetical
order) and we removed some include cycles in the process.
* Location.pm: This module now serves the INTERNAL constant.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These global variables are now in lib/Automake/Utils.pm:
- $config_aux_dir
- $am_config_aux_dir
- $config_aux_dir_set_in_configure_ac
- $seen_maint_mode
- $relative_dir
- $seen_canonical
- %am_file_cache
* Utils.pm: New variables from Global.pm now sit in this module
* t/pm/Utils.pl: New test for &locate_aux_dir
|
|
|
|
| |
Split the define method into smaller units easier to maintain and test.
|
|
|
|
|
|
| |
The docs was mainly pod but the newly added methods were not documented that
way. This commit standardize that. Of course the private methods stay
documented with simple comments.
|
|
|
|
|
|
|
| |
This tests that the &cond_stack_* methods assure the good balance of the
conditional stack.
* CondStack.pl: New test for the CondStack module.
|
|
|
|
|
| |
Change the license header from GPLv3+ to GPLv2+ since Automake has not yet
transitioned.
|
|
|
|
|
|
| |
The variables are coherent with the methods served by this module.
The module still needs some documentation.
|
|
|
|
| |
This global variable is better to be served from this module.
|
|
|
|
|
|
|
|
| |
Checks if the output string is a flattened version of the input string. It
should remove trailing and leading whitespaces, multiple whitespaces (and
replace it with single ones) and line breaks in a given string.
* t/pm/Utils.pl: add check_flatten to the test-suite.
|
|
|
|
|
|
|
|
|
| |
At the moment, we only test the subst subroutine as it is the most
trivially testable in the file.
* Utils.pl: Added to test the newly added Automake::Utils module
* list-of-tests.mk: Added the above test-file to be run in the
test-suite
|
|
|
|
|
|
|
|
|
|
|
| |
Some methods added to this module were not working properly because they
depend on others which stayed in automake.in
* ConfVars.pm: Added this module to put the methods in question.
* CondStack.pm: Module that takes care of the conditional stack.
* Utils.pm: Added some needed utility functions for the above to run properly.
* File.pm: Methods that looks at files' content.
* local.mk: Added the new modules.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some subs in bin/automake are still moveable to this file but require to move
other subs before.
* verbose_var: adds a prefix to a variable name.
* verbose_private_var: same as verbose_var but for private vars. This method
is now private in this module since it is only used once in the.
define_verbose_var which has been moved here took.
* define_verbose_var: defines verbose variables for silent rules in the
generated makefile.
* define_verbose_tagvar: calls define_verbose_var with $name as argument
* define_variable: define a new Makefile variable.
* define_pretty_variable: same as above but for printing in an input file.
* define_files_variables: define a variable containing a list of files
composed of a specified basename and extension.
* define_configure_variable: define a variable and substitute its name by a
configure-style text.
|
|
|
|
|
|
| |
* subst: Method to get a configure-style substitute from a text
* file_contents_internal: Return the contents of a file from automake/lib/am.
This is a long method that will need some reworking later.
|
|
|
|
|
|
|
|
| |
This module contains utility methods to be used in bin/automake.
* lib/Automake/Utils.pm: New utility module.
* var_SUFFIXES_trigger: Moved to the Automake::Utils module.
* locate_aux_dir: Moved to the Automake::Utils module.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the first step in modularizing Automake for the Summer of Code project
"Modularize Automake to improve its test-suite". The goal here is to move out
as much as possible from bin/automake.in in order for it to eventually only
call methods from the different modules.
* lib/Automake/Global.pm: The Automake::Global package will now hold variable
and constant declarations in order to move subroutines that use them out of
the main package.
* bin/automake.in: The $gen_copyright var/constant was left here because it
uses a variable passed directly by the Makefile here. This needs to be
looked at later. Te rest of the declarations was moved.
|
|
|
|
|
|
|
| |
* contrib/test-driver.scm: When 'coverage' option is enabled, run tests
in the debug vm and trace coverage data.
(%options): Add 'coverage'.
(show-help): Display option.
|
|
|
|
|
|
|
|
|
| |
'primitive-load' is used instead of 'load-from-path' since the script is
given as a relative file name. For unknown reason, using 'load' fails
with GNU Mcron test suite when running 'make distcheck'.
* contrib/test-driver.scm: Get the actual script name directly from the
command line. Handle the case where that argument is missing.
|
|
|
|
|
|
|
| |
Having a main procedure involves passing the '-e main' command-line
argument to 'guile' which makes the test driver a bit less easy to use.
* contrib/test-driver.scm (main): Delete. Move body to the top-level.
|
|
|
|
|
|
|
|
|
|
| |
This a follow-up to commit 6bab5b26a1241b0e0edd058d2a921989f9a1747c.
Use 'before-save-hook' instead of 'write-file-functions' to match what
is done in other scripts.
* contrib/test-driver.scm: Update hook usage and use 'UTC0' timezone
instead of 'UTC'.
|