Files
wolfssl/wrapper/Ada/tests/src/tests.adb
T
Juliusz Sosinowicz 40d3befa61 Extend Ada bindings
Add Ada bindings for SHA-256, RSA sign/verify, and AES-CBC from
wolfCrypt. Use XMALLOC/XFREE for dynamic allocation and add GNATprove
ownership annotations to enable static leak detection.

Refactor the Ada wrapper into a base package (wolfssl.ads) and a child
package (wolfssl-full_runtime) to separate code that depends on
Interfaces.C.Strings and GNAT.Sockets from zero-footprint-compatible
code.

Add standalone examples for SHA-256 hashing, RSA signature verification,
and AES encryption under wrapper/Ada/examples/.

Add AUnit test suites for SHA-256, RSA, and AES bindings under
wrapper/Ada/tests/ with Valgrind suppressions and Alire integration.

Move TLS client/server examples into wrapper/Ada/examples/src/ and
update build files (default.gpr, examples.gpr, include.am) accordingly.

Update CI (ada.yml) to build default.gpr, run AUnit tests, run the
client-server examples, and run GNATprove.

Co-authored-by: Joakim Strandberg <joakim@mequinox.se>
2026-02-09 13:44:35 +01:00

15 lines
451 B
Ada

with AUnit.Reporter.Text;
with AUnit.Run;
with Tests_Root_Suite;
procedure Tests is
Reporter : AUnit.Reporter.Text.Text_Reporter;
-- Instantiate the generic AUnit runner with a *library-level* suite function.
-- This avoids Ada accessibility issues (no local objects' 'Access escaping)
-- and keeps the harness minimal.
procedure Runner is new AUnit.Run.Test_Runner (Tests_Root_Suite.Suite);
begin
Runner (Reporter);
end Tests;