aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / e2e_tests / run_e2e_tests.sh
| 1 | #!/usr/bin/env bash |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | set -euo pipefail |
| 18 | |
| 19 | # AIEN Sovereign Core E2E Test Suite Runner |
| 20 | # Executes all 4 tiers: Feature Coverage, Boundaries, Interactions, Real-World Workflows |
| 21 | |
| 22 | SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| 23 | WORKSPACE_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)" |
| 24 | |
| 25 | echo "=================================================================" |
| 26 | echo "AIEN Sovereign Core: TinyLlama Real-Model Execution E2E Test Suite" |
| 27 | echo "=================================================================" |
| 28 | echo "Workspace: ${WORKSPACE_ROOT}" |
| 29 | echo "Manifest: ${SCRIPT_DIR}/Cargo.toml" |
| 30 | echo "Target: ${WORKSPACE_ROOT}/target" |
| 31 | echo "" |
| 32 | |
| 33 | echo ">>> Phase 1: Checking Build & Dependency Compilation..." |
| 34 | cargo check --manifest-path "${SCRIPT_DIR}/Cargo.toml" --target-dir "${WORKSPACE_ROOT}/target" |
| 35 | |
| 36 | echo "" |
| 37 | echo ">>> Phase 2: Executing Tier 1 (Feature Coverage: 90 tests)..." |
| 38 | cargo test --manifest-path "${SCRIPT_DIR}/Cargo.toml" --target-dir "${WORKSPACE_ROOT}/target" --test test_tier1_feature_coverage -- --nocapture |
| 39 | |
| 40 | echo "" |
| 41 | echo ">>> Phase 3: Executing Tier 2 (Boundary & Corner Cases: 90 tests)..." |
| 42 | cargo test --manifest-path "${SCRIPT_DIR}/Cargo.toml" --target-dir "${WORKSPACE_ROOT}/target" --test test_tier2_boundaries -- --nocapture |
| 43 | |
| 44 | echo "" |
| 45 | echo ">>> Phase 4: Executing Tier 3 (Cross-Feature Interactions: 18 tests)..." |
| 46 | cargo test --manifest-path "${SCRIPT_DIR}/Cargo.toml" --target-dir "${WORKSPACE_ROOT}/target" --test test_tier3_cross_feature -- --nocapture |
| 47 | |
| 48 | echo "" |
| 49 | echo ">>> Phase 5: Executing Tier 4 (Real-World Application Scenarios: 9 tests)..." |
| 50 | cargo test --manifest-path "${SCRIPT_DIR}/Cargo.toml" --target-dir "${WORKSPACE_ROOT}/target" --test test_tier4_real_world -- --nocapture |
| 51 | |
| 52 | echo "" |
| 53 | echo "=================================================================" |
| 54 | echo "All 207 E2E tests passed successfully across all 4 tiers." |
| 55 | echo "Status: TEST_READY certified." |
| 56 | echo "=================================================================" |