Files
b4d2f26319
CI / Core C++ Tests (push) Has been cancelled
CI / Android Build (push) Has been cancelled
CI / NDK ABI Build (arm64-v8a) (push) Has been cancelled
CI / NDK ABI Build (armeabi-v7a) (push) Has been cancelled
CI / NDK ABI Build (x86_64) (push) Has been cancelled
feat: Initial commit — libswipetype v0.1.0-dev
Complete swipe typing engine with:
- swipetype-core: C++17 gesture recognition (DTW, adaptive scoring)
- swipetype-android: JNI bridge + Android AAR packaging
- sample-app: Functional IME demo with space bar zone detection
- 48 unit tests (GTest), CI/CD workflows (GitHub Actions)
- Full documentation suite (architecture, API, contributing, security)

Co-authored-by: inventory69 <inventory69@users.noreply.github.com>
Co-authored-by: Hyphonical <Hyphonical@users.noreply.github.com>
2026-02-26 23:02:03 +01:00

43 lines
1002 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(dirname "$SCRIPT_DIR")"
echo "=== libswipetype Test Runner ==="
echo ""
# ---- Core C++ Tests ----
echo ">>> Building and running swipetype-core tests..."
cd "$ROOT_DIR/swipetype-core"
cmake -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DGLIDE_BUILD_TESTS=ON \
2>&1 | tail -5
cmake --build build --parallel "$(nproc)" 2>&1 | tail -5
echo ">>> Running C++ unit tests..."
cd build
ctest --output-on-failure --verbose
cd "$ROOT_DIR"
echo ""
echo ">>> Core tests complete."
echo ""
# ---- Android Tests (if Gradle available) ----
if command -v ./gradlew &> /dev/null || [ -f "$ROOT_DIR/gradlew" ]; then
echo ">>> Running Android unit tests..."
cd "$ROOT_DIR"
chmod +x gradlew
./gradlew test --stacktrace 2>&1 | tail -20
echo ">>> Android tests complete."
else
echo ">>> Skipping Android tests (no gradlew found)."
fi
echo ""
echo "=== All tests finished ==="