This patch transfers one aspect of Configure.pl's functionality --
the user-friendly messages it print to STDOUT at the beginning and
end of the configuration process -- out of that script and places it
in a new package: lib/Parrot/Configure/Messages.pm.
Parrot::Configure::Options exports two subroutines on demand:
print_introduction
print_conclusion
By placing this functionality in subroutines exported by a class, we
can write tests for it using Perl's standard testing apparatus.
Accordingly, a test file is supplied as part of this patch:
t/configure/01-messages.t
This is the second in a series of patches which a number of Parrot
hackers and I will be submitting a series of patches which refactor
Configure.pl and the various Parrot::Configure::* classes. This
refactoring will be focused primarily on increasing the testability
-- and, by extension, the long-term maintainability -- of Parrot's
configuration code.
Assuming no bug reports are received, we will apply this patch to
trunk in approximately 3 days. Thank you very much.
kid51