This repository contains the core GAP system sources.
Any use of AI tools for preparing code, documentation, tests, commit messages,
pull requests, issue comments, or reviews for this repository must be
disclosed. Include a brief note saying which AI tool was used and what kind of
assistance it provided. Add the AI tool as a Git co-author on all commits
created by that tool (e.g. via an Co-authored-by: line).
Important top-level paths:
src/: GAP kernel sources in C/C++.lib/: GAP library code.tst/: test suites, includingtestinstall,teststandard,testextra, andtestbugfix.doc/: manual sources and generated documentation assets.pkg/: bundled GAP packages.hpcgap/: HPC-GAP sources and support files.cnf/,configure.ac,autogen.sh,Makefile.rules,README.buildsys.md: build system inputs and documentation.dev/: developer utilities and CI/release scripts.
Do not edit generated build outputs such as configure directly. For build
system changes, update the source inputs such as configure.ac, files in
cnf/, or related makefiles, then regenerate derived files with
./autogen.sh as needed. If you are working on the build system itself, read
README.buildsys.md.
Run all commands from the repository root.
For a fresh git checkout, generate configure first:
./autogen.sh
./configure
makeIf configure already exists and you just need to rebuild, use:
./configure
makeIf you need a package bundle for development or testing, bootstrap it with one of:
make bootstrap-pkg-minimal
make bootstrap-pkg-fullmake htmlQuick core test suite:
make checkCommon direct test entry points:
./gap tst/testinstall.g
./gap tst/teststandard.g
./gap tst/testextra.g
./gap tst/testbugfix.gTo run a specific test file, pass it to ./gap, for example:
./gap -q tst/testinstall/magma.tst -c 'QUIT;'Use tst/testspecial/ for tests that exercise the interactive REPL,
break loops, or other output that depends on GAP's terminal handling.
./tst/testspecial/run_gap.sh ./gap tst/testspecial/<name>.g [outfile]runs a single special test, captures combined output, prevents GAP from attaching to the terminal, and rewrites local paths in the transcript.- From
tst/testspecial/,GAPDIR=../.. ./run_all.shruns the full special test suite. - From
tst/testspecial/,./regenerate_tests.shregenerates all expected.outfiles.
When writing commit messages, use the title format component: Brief summary.
In the body, give a brief prose summary of the purpose of the change. Do not
specifically call out added tests, comments, documentation, and similar
supporting edits unless that is the main purpose of the change. Do not include
the test plan unless it differs from the instructions in this file. If the
change fixes one or more issues, add Fixes #... at the end of the commit
message body, not in the title.
Pull requests should follow the same style: a short summary up top, concise prose describing the change, issue references when applicable, and an explicit AI-disclosure note if AI tools were used.
Pull requests should normally target master. Changes intended only for the
current stable release series may target stable-4.X when appropriate.
This project keeps a changelog in CHANGES.md but that is automatically
updated by scripts, based on pull request titles. So you don't need to
update it.