sal/run_rhai_tests.log
Mahmoud Emad 32217b6545
Some checks failed
Rhai Tests / Run Rhai Tests (push) Waiting to run
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
docs: Add documentation for Process module tests
- Added documentation for the new Process module tests, including
  details on test structure, execution, and individual test
  descriptions.
- Created new documentation files for Process module tests.
- Updated the main Rhai documentation index to include the new
  Process module tests.
2025-05-08 15:54:39 +03:00

132 lines
3.9 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

=======================================
 Running All Rhai Tests 
=======================================
Running tests for module: git
-------------------------------------
Found 1 Rhai script to execute:
Executing: src/rhai_tests/git/run_all_tests.rhai
=== Running Git Module Tests ===
--- Running Basic Git Operations Tests ---
Created test directory: rhai_test_git
Testing GitTree constructor...
✓ GitTree created successfully
Testing GitTree.list() with empty directory...
✓ GitTree.list(): Found 0 repositories (expected 0)
Testing GitTree.find() with empty directory...
✓ GitTree.find(): Found 0 repositories (expected 0)
Cleaning up...
✓ Cleanup: Directory rhai_test_git removed
--- Basic Git Operations Tests completed successfully ---
--- Running Git Repository Operations Tests ---
Created test directory: rhai_test_git_ops
Creating GitTree...
✓ GitTree created successfully
Cleaning up...
✓ Cleanup: Directory rhai_test_git_ops removed
--- Git Repository Operations Tests completed successfully ---
=== Test Summary ===
Passed: 2
Failed: 0
Total: 2
✅ All tests passed!
Script executed successfully
Result: 0
All scripts executed
✓ Module git tests passed
Running tests for module: os
-------------------------------------
Found 1 Rhai script to execute:
Executing: src/rhai_tests/os/run_all_tests.rhai
=== Running OS Module Tests ===
--- Running File Operations Tests ---
Testing mkdir...
✓ mkdir: Successfully created directory 'rhai_test_fs'
✓ mkdir (nested): Successfully created directory 'rhai_test_fs/subdir'
✓ file_write: Successfully wrote to file 'rhai_test_fs/test.txt'
✓ file_read: Content matches
✓ file_size: 48 bytes
✓ delete: Directory cleaned up
--- File Operations Tests completed successfully ---
--- Running Download Operations Tests ---
Created test directory: rhai_test_download
✓ which: curl found at /usr/bin/curl
✓ cmd_ensure_exists: Command 'curl' exists
Downloading https://raw.githubusercontent.com/rust-lang/rust/master/LICENSE-MIT...
Downloading https://raw.githubusercontent.com/rust-lang/rust/master/LICENSE-MIT to rhai_test_download/license.txt
Download complete! File size: 1.04 KB
✓ download_file: rhai_test_download/license.txt
✓ Downloaded file content verified
✓ Cleanup: Directory rhai_test_download removed
--- Download Operations Tests completed successfully ---
--- Running Package Operations Tests ---
Current platform: Ubuntu
✓ package_set_debug: Debug mode enabled
--- Package Operations Tests completed successfully ---
=== Test Summary ===
Passed: 3
Failed: 0
Total: 3
✅ All tests passed!
Script executed successfully
Result: 0
All scripts executed
✓ Module os tests passed
Running tests for module: process
-------------------------------------
Found 1 Rhai script to execute:
Executing: src/rhai_tests/process/run_all_tests.rhai
=== Running Process Module Tests ===
--- Running Command Execution Tests ---
Testing run() with a simple command...
Hello, World!
✓ run().execute(): Command executed successfully
Testing which() function...
✓ which(): Found bash at /usr/bin/bash
--- Command Execution Tests completed successfully ---
--- Running Process Management Tests ---
Testing process_list() function...
✓ process_list(): Found 344 processes
Testing process properties...
✓ Process properties: PID=1, Name=systemd
--- Process Management Tests completed successfully ---
=== Test Summary ===
Passed: 2
Failed: 0
Total: 2
✅ All tests passed!
Script executed successfully
Result: 0
All scripts executed
✓ Module process tests passed
=======================================
 Test Summary 
=======================================
Total modules tested: 3
Passed: 3
Failed: 0
All tests passed!