41 lines
781 B
Batchfile
41 lines
781 B
Batchfile
@echo off
|
|
echo Testing start_dev.bat functionality
|
|
echo.
|
|
|
|
:: Check if virtual environment exists
|
|
if exist "backend\venv\Scripts\activate.bat" (
|
|
echo Virtual environment found
|
|
call backend\venv\Scripts\activate.bat
|
|
echo Virtual environment activated
|
|
) else (
|
|
echo Virtual environment not found
|
|
)
|
|
|
|
:: Check if main.py exists
|
|
if exist "backend\main.py" (
|
|
echo main.py found
|
|
) else (
|
|
echo main.py not found
|
|
)
|
|
|
|
:: Test basic Python execution
|
|
echo Testing Python execution...
|
|
python --version
|
|
if %errorlevel% equ 0 (
|
|
echo Python is working
|
|
) else (
|
|
echo Python test failed
|
|
)
|
|
|
|
:: Test Node.js
|
|
echo Testing Node.js...
|
|
node --version
|
|
if %errorlevel% equ 0 (
|
|
echo Node.js is working
|
|
) else (
|
|
echo Node.js test failed
|
|
)
|
|
|
|
echo.
|
|
echo Test completed
|
|
pause |