feat: Convert SAL to a Rust monorepo
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
- Migrate SAL project from single-crate to monorepo structure - Create independent packages for individual modules - Improve build efficiency and testing capabilities - Update documentation to reflect new structure - Successfully convert the git module to an independent package.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# run_rhai_tests.sh
|
||||
# Script to run all Rhai tests in the rhai_tests directory
|
||||
# Script to run all Rhai tests in both rhai_tests directory and package-specific test directories
|
||||
|
||||
# Set colors for output
|
||||
GREEN='\033[0;32m'
|
||||
@@ -23,8 +23,8 @@ log "${BLUE}=======================================${NC}"
|
||||
log "${BLUE} Running All Rhai Tests ${NC}"
|
||||
log "${BLUE}=======================================${NC}"
|
||||
|
||||
# Find all test runner scripts
|
||||
RUNNERS=$(find rhai_tests -name "run_all_tests.rhai")
|
||||
# Find all test runner scripts in both old and new locations
|
||||
RUNNERS=$(find rhai_tests -name "run_all_tests.rhai" 2>/dev/null; find */tests/rhai -name "run_all_tests.rhai" 2>/dev/null)
|
||||
|
||||
# Initialize counters
|
||||
TOTAL_MODULES=0
|
||||
@@ -33,8 +33,14 @@ FAILED_MODULES=0
|
||||
|
||||
# Run each test runner
|
||||
for runner in $RUNNERS; do
|
||||
# Extract module name from path
|
||||
module=$(echo $runner | cut -d'/' -f3)
|
||||
# Extract module name from path (handle both old and new path structures)
|
||||
if [[ $runner == rhai_tests/* ]]; then
|
||||
# Old structure: rhai_tests/module/run_all_tests.rhai
|
||||
module=$(echo $runner | cut -d'/' -f2)
|
||||
else
|
||||
# New structure: package/tests/rhai/run_all_tests.rhai
|
||||
module=$(echo $runner | cut -d'/' -f1)
|
||||
fi
|
||||
|
||||
log "\n${YELLOW}Running tests for module: ${module}${NC}"
|
||||
log "${YELLOW}-------------------------------------${NC}"
|
||||
|
Reference in New Issue
Block a user