Verify your installed CoAkka SDK

Run a short check with a public release. Choose Runtime for request and reply, or HTTP Runtime for protocols, uploads and the service lifecycle.

CoAkka Runtime Test

Download the Core 3.3 runner for your OS and CPU. Match the archive SHA-256 against the release checksums before extracting. The runner bundles Core 3.3. Open a terminal in the extracted directory containing bin and native.

macOS ARM64
macOS ARM64
DYLD_LIBRARY_PATH="$PWD/native/macos-aarch64" \
  ./bin/coakka-runtime-native-evidence smoke --requests 128
Linux ARM64
Linux ARM64
LD_LIBRARY_PATH="$PWD/native/linux-aarch64" \
  ./bin/coakka-runtime-native-evidence smoke --requests 128
Linux x86-64
Linux x86-64
LD_LIBRARY_PATH="$PWD/native/linux-x86_64" \
  ./bin/coakka-runtime-native-evidence smoke --requests 128
Windows PowerShell
Windows PowerShell
$runtimeDirectory = (Get-ChildItem -Directory .\native).FullName
$previousPath = $env:PATH
try {
    $env:PATH = "$runtimeDirectory;$previousPath"
    & .\bin\coakka-runtime-native-evidence.exe smoke --requests 128
    if ($LASTEXITCODE -ne 0) { throw "CoAkka Runtime smoke test failed" }
} finally {
    $env:PATH = $previousPath
}

Expect JSON with status: pass, runtime.version: 3.3, ABI 1, result.completed: 128 and result.deadletters: 0. This verifies request and reply through the Core bundled with the runner.

CoAkka HTTP Runtime Test

Download the SDK 2.3.0 for your host, verify its checksum and extract it. Install Git, CMake and a C/C++ compiler. Get the test sources from Publish if your checkout does not contain coakka-http-runtime/runtime-test.

Check out the test directory
git clone --depth 1 --filter=blob:none --sparse https://github.com/phuong-tran/coakka-publish.git
cd coakka-publish
git sparse-checkout set coakka-http-runtime/runtime-test

From the Publish checkout root, replace /absolute/path/to/extracted-sdk with the path to your extracted SDK. These commands use a POSIX shell.

Build and run the base tests
cmake -S coakka-http-runtime/runtime-test -B build/http-tests \
  -DCMAKE_PREFIX_PATH=/absolute/path/to/extracted-sdk \
  -DCMAKE_BUILD_TYPE=Release
cmake --build build/http-tests --config Release --parallel
ctest --test-dir build/http-tests -C Release --output-on-failure

CTest must list actual tests, report Passed for each one and finish with 100% tests passed. On Mac, if the linker cannot read the macOS SDK, select the compiler and SDK from the same Xcode installation and use a fresh build directory.

See the test scope and SDK selection rules.

Check a specific HTTP scenario

Use the extended loopback suite with SDK 2.3.0, Python 3.11+ and a curl that lists HTTP2 and HTTP3 under Features. Use a test certificate. The commands below are for macOS, Linux or WSL. On native Windows, see the PowerShell path instructions.

Run the blocks in one shell from the Publish root. Set the two paths in the first block.

Select the SDK, curl and Python
sdk=/absolute/path/to/extracted-sdk
curl_h3=/absolute/path/to/curl
test_source="$PWD/coakka-http-runtime/runtime-test"
test_build="$PWD/build/http-contract"
test_tls="$test_build/tls"
mkdir -p "$test_tls"

"$curl_h3" --version
python3 -m venv "$test_build/peers"
test_python="$test_build/peers/bin/python"
"$test_python" -m pip install 'h2==4.3.0' 'aioquic==1.3.0'
Create a loopback certificate
openssl req -x509 -newkey rsa:2048 -nodes -days 1 -subj /CN=localhost \
  -addext 'subjectAltName=DNS:localhost,IP:127.0.0.1' \
  -out "$test_tls/server.pem" -keyout "$test_tls/server.key"
cert="$test_tls/server.pem"
key="$test_tls/server.key"
ca="$cert"
Build and run the complete suite
cmake -S "$test_source" -B "$test_build" \
  -DCMAKE_PREFIX_PATH="$sdk" -DCOAKKA_HTTP_TEST_SDK_VERSION=2.3.0 \
  -DCOAKKA_HTTP_TEST_CONTRACT_MATRIX=ON -DCOAKKA_HTTP_TEST_CURL="$curl_h3" \
  -DPython3_EXECUTABLE="$test_python" \
  -DCOAKKA_HTTP_TEST_CERTIFICATE="$cert" -DCOAKKA_HTTP_TEST_PRIVATE_KEY="$key" \
  -DCOAKKA_HTTP_TEST_CA_CERTIFICATE="$ca"
cmake --build "$test_build" --config Release
ctest --test-dir "$test_build" -C Release --show-only=json-v1 > test-inventory.json
ctest --test-dir "$test_build" -C Release --no-tests=error --output-on-failure

To rerun a specific family, use -R with the following expressions. Find the full names in test-inventory.json.

Select test cases
ctest --test-dir "$test_build" -C Release -R '^http_host_protocol_' --no-tests=error --output-on-failure
ctest --test-dir "$test_build" -C Release -R '^http_host_upload_' --no-tests=error --output-on-failure
ctest --test-dir "$test_build" -C Release -R '^http_host_lifecycle_' --no-tests=error --output-on-failure

Save test evidence

Each result describes the exact package, host and cases exercised. To verify a specific connector, also run its Study example.