This is my build and test "framework". It represents a generalised version of my (currently) preferred arrangement of the building and testing of an Ada project.
"Makefile", "ada_2012.gpr" and "tests/" are intended to be reused as-is.
"Makefile.project" is intended for fixed, project specific parameters.
"Makefile.project_rules" is intended for project specific build rules.
Configuration parameters should be written (as "make" variables) to ".config", which will be included by "Makefile".
".hgignore" is intended as a starting point for a project specific ignore file.
"the_project.gpr" is intended as a starting point for a GNAT project file for the project.
Ada source files should be kept under "src/".
The repository comes with a ready-to-use test case:
1) 'unused_units' - warns about units which aren't compiled.
- GNU Make
- GNU Parallel (or
- Mercurial (
OS_VERSION=unix make test
Builds and tests the demonstration executable.
OS_VERSION=unix make build
Builds the demonstration executable.
The copyright to the software belongs to JSA Research & Innovation. The software is distributed under the Beer Ware License (revision 42):
email@example.com wrote this. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.