This directory contains utility scripts for building, testing, and demonstrating KAI functionality.
Main build script with options for different build types:
./build.sh # Debug build
./build.sh release # Release build
./build.sh clean # Clean buildComplete clean rebuild of the entire project.
Installs LLVM dependencies required for KAI compilation.
Comprehensive test runner that executes all test suites:
- Core system tests
- Language tests (Pi, Rho, Tau)
- Network tests
- Console tests
- run_rho_tests.sh - Execute all Rho language tests
- run_rho_demo.sh - Interactive Rho language demonstration
- test_tau.sh - Tau language test suite
- run_chat_tests.sh - Chat system validation
- build_and_test_network.sh - Build and test network functionality
- run_connection_tests.sh - Network connection validation
- run_tau_connection_tests.sh - Tau network interface tests
- p2p_test.sh - Peer-to-peer networking tests
- p2p_test_dynamic.sh - Dynamic P2P configuration tests
- run_console_demo.sh - Console application demonstration
- run_fixed_tests.sh - Specific fixed test cases
Contains specialized networking scripts:
- run_peers.sh - Start multiple peer instances
- automated_demo.sh - Automated network demonstration
Python script for code complexity analysis with configuration in complexity_config.json.
Analyzes test execution history and generates reports.
Utility for cleaning up AI-generated comments and references.
Calculator functionality testing script.
Located in project root:
- demo_console_communication.sh - Interactive console networking demo using tmux
./Scripts/clean_and_build.sh
./Scripts/run_all_tests.sh# Test Rho language changes
./Scripts/run_rho_tests.sh
./Scripts/run_rho_demo.sh
# Test networking changes
./Scripts/build_and_test_network.sh
./Scripts/p2p_test.sh# Console networking demo
./Scripts/run_console_demo.sh
# Language feature demo
./Scripts/run_rho_demo.shMost scripts require:
- CMake 3.10+
- C++17 compatible compiler
- ENet networking library
- tmux (for interactive demos)
Network scripts may require:
- Multiple terminal sessions
- Available network ports (14600-14699 range)
- Firewall permissions for local networking
When creating new scripts:
- Make them executable:
chmod +x script_name.sh - Add usage comments at the top
- Include error handling and cleanup
- Test on multiple platforms
- Update this README with the new script description