403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/project-slim/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/project-slim/tests/run_tests.sh
#!/bin/bash

# Simple Test Runner Script for Slim Framework API
# This script provides quick access to run tests

echo "๐Ÿงช SLIM API - QUICK TEST RUNNER"
echo "================================"
echo ""

cd "$(dirname "$0")"

echo "๐Ÿ“ Current directory: $(pwd)"
echo "๐Ÿ“‹ Available tests:"
echo ""

# List available test files
for file in test_*.php; do
    if [ -f "$file" ]; then
        echo "  โ€ข $file"
    fi
done

echo ""
echo "๐Ÿš€ QUICK ACTIONS:"
echo "1. Run validation tests (recommended)"
echo "2. Run multi-error validation test"
echo "3. Run all tests"
echo "4. Interactive test runner"
echo ""

read -p "๐Ÿ‘‰ Choose option (1-4): " choice

case $choice in
    1)
        echo ""
        echo "โ–ถ๏ธ  Running validation tests..."
        echo "================================"
        php test_validation_direct.php
        ;;
    2)
        echo ""
        echo "โ–ถ๏ธ  Running multi-error validation test..."
        echo "=========================================="
        php test_multi_validation_errors.php
        ;;
    3)
        echo ""
        echo "โ–ถ๏ธ  Running all tests..."
        echo "======================="
        for file in test_*.php; do
            if [ -f "$file" ]; then
                echo ""
                echo "--- Running $file ---"
                php "$file"
                echo ""
            fi
        done
        ;;
    4)
        echo ""
        echo "โ–ถ๏ธ  Starting interactive test runner..."
        echo "======================================"
        php run_tests.php
        ;;
    *)
        echo "โŒ Invalid choice"
        ;;
esac

echo ""
echo "โœ… Test execution completed!"

Youez - 2016 - github.com/yon3zu
LinuXploit