Repository navigation
Testing and CI
Always from the repository root, after . ./env and make:
| Command | Runs |
|---|---|
make test |
src/: test_libopenabe, test_zml, test_abe, test_pke, test_ske, test_zsym, then cli/runTest.sh
|
make -C src test |
src/ unit tests including test_keystore (no test_zsym, no CLI) |
make -C examples test |
The four example programs |
cd cli && ./runBasicTest.sh input.txt |
CLI round trips for PK, CP and KP |
The unit tests use GoogleTest, so you can run a subset:
cd src
./test_abe --gtest_list_tests
./test_abe --gtest_filter='PolicyParser.*'A CLI test "fails correctly" when it exits with 32 (DECRYPTION_FAILED). The scripts expect that code for unauthorized keys.
Two workflows run on every push to master and on every pull request targeting it.
- Installs clang-format 18.1.8 with pipx.
- Runs it on every tracked C/C++ file outside
deps/, skipping those in.clang-format-ignore. - Fails, printing the diff, if anything would change. Fix it with
clang-format -i --style=file <files>.
It also runs weekly on a schedule, to catch breakage from runner image updates.
| Step | Linux (Ubuntu, GCC) | Windows (MSYS2 MinGW64) |
|---|---|---|
Build everything (make) |
✅ | ✅ |
| RELIC symbol isolation check | ✅ | — |
make test |
✅ | ✅ |
make -C examples test |
✅ | ✅ |
Python bindings (setup.py build_ext + test.py) |
✅ | — |
CLI PK round trip (cmp input/output) |
✅ | ✅ |
The RELIC symbol isolation check runs deps/relic/check_ec_symbols.sh and verifies that no global symbol is defined by both RELIC builds. If it fails, read RELIC Dual Build before doing anything else: it signals a silent-corruption bug, not a flaky test.
| Symptom | Likely cause |
|---|---|
| Formatting job shows a diff, but your editor formats the same way | Different clang-format version: install exactly 18.1.8 (Development Setup) |
| Build fails in a header after reordering includes | Headers are order-dependent; restore the original order |
| Only the Windows job fails at runtime with missing DLLs | Something bypassed env; on Windows DLLs come from PATH
|
| RELIC isolation check fails | New unprefixed RELIC symbol; see RELIC Dual Build |
| A test expects 32 but gets 0 | A key that should not decrypt did: treat it as a security bug |
OpenABE · AGPL-3.0 · Found a mistake in this wiki? Open an issue.
Using OpenABE
Reference
Contributing
Design notes
Help