mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
Import SDL3CPlusPlus C++ game engine with: - SDL3 + bgfx rendering backend - Vulkan/Metal/DirectX shader support - MaterialX material system - Scene framework with ECS architecture - Comprehensive test suite (TDD approach) - Conan package management - CMake build system This provides the native C++ foundation for the Universal Platform's Game and 3D capability modules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
38 lines
989 B
Bash
38 lines
989 B
Bash
#!/bin/bash
|
|
# Test script for validation improvements
|
|
|
|
cd /home/rewrich/Documents/GitHub/SDL3CPlusPlus/build/Release
|
|
|
|
echo "=== Testing application startup with validation ==="
|
|
echo ""
|
|
|
|
# Test 1: Check --help output
|
|
echo "Test 1: Running with --help"
|
|
timeout 2 ./sdl3_app --help 2>&1 || echo "(timed out or exited with code $?)"
|
|
echo ""
|
|
|
|
# Test 2: Try with config file
|
|
echo "Test 2: Running with config file (5 second timeout)"
|
|
timeout 5 ./sdl3_app --json-file-in ./config/seed_runtime.json 2>&1 &
|
|
PID=$!
|
|
sleep 2
|
|
|
|
# Check if process is still running
|
|
if ps -p $PID > /dev/null 2>&1; then
|
|
echo "Process started successfully (PID: $PID)"
|
|
kill -9 $PID 2>/dev/null
|
|
wait $PID 2>/dev/null
|
|
else
|
|
echo "Process exited early"
|
|
wait $PID 2>/dev/null
|
|
echo "Exit code: $?"
|
|
fi
|
|
echo ""
|
|
|
|
# Test 3: Check for error in a non-existent config
|
|
echo "Test 3: Testing with non-existent config"
|
|
./sdl3_app --json-file-in ./config/nonexistent.json 2>&1
|
|
echo ""
|
|
|
|
echo "=== Tests complete ==="
|