Home/Modules/tests

tests

system module tests

<img align="right" src="https://github.com/mearvk/SLeeLa/blob/master/images/debian/debian-logo.png" width="75" height="75" alt="SLeeLa">

<img src="https://github.com/mearvk/SLeeLa/blob/master/images/sleela/sleela-logo-004.jpg" alt="SLeeLa">

SLeeLa Native and Integration Tests

Tests are organized around completion gates: memory safety, reflection metadata, Nordshrift binding resolution, lowering/artifact compatibility, networking, HTTP, server lifecycle, VoIP, drivers, package verification and cross-platform behavior.

Native test build dependencies

The default native smoke-test build compiles the networking/security check against OpenSSL's SHA-256 implementation and links the platform socket layer.

Install the OpenSSL development package before running make -C tests all:

The Makefile obtains non-default OpenSSL include and library paths from pkg-config. If OpenSSL is installed in a custom prefix, set OPENSSL_CFLAGS and OPENSSL_LIBS explicitly. The Windows build uses Winsock through -lws2_32; build from the matching MSYS2 MinGW/UCRT64 shell.

JDK 28 Java Conformance

jdk28_functional_equivalence.py audits every lib/java/**/*.sleela declaration against the official JDK 28 API index.

It has two gates:

  1. API identity / envelope contract โ€” verifies that each declaration identifies a documented JDK 28 type and exposes the required SLeeLa Java bridge operations.
  2. Functional equivalence โ€” requires the SLeeLa declaration to represent the Java cousin's actual API surface. A generated source envelope alone does not satisfy this gate.

This distinction is intentional: a type-name envelope is not evidence that the Java class is functionally implemented. CI therefore reports the current gap instead of treating invoke() as a substitute for the Java API.

Run locally:

python3 tests/jdk28_functional_equivalence.py
python3 tests/jdk28_functional_equivalence.py --functional

SLeeLa

<p align="center"><img src="images/sleela/sleela-wordmark.svg" alt="SLeeLa โ€” The Now. The Ingredient." width="560"></p> <p align="center"><img src="https://github.com/mearvk/SLeeLa/blob/master/images/sleela-programming-language-002.jpg" alt="SLeeLa Marketing Logo" width="560"></p>

Files 78