forked from johannesPettersson80/codesys-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_project_create.bat
More file actions
38 lines (33 loc) · 832 Bytes
/
Copy pathtest_project_create.bat
File metadata and controls
38 lines (33 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
echo CODESYS API Project Creation Test
echo ================================
echo.
REM Check Python is available
where python >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo Python is not installed or not in PATH.
echo Please install Python and try again.
exit /b 1
)
REM Install required packages if not already installed
echo Checking required packages...
python -c "import requests" >nul 2>&1
if %ERRORLEVEL% neq 0 (
echo Installing required packages...
pip install requests
)
REM Run the project creation test
echo.
echo Starting test...
echo.
python test_project_creation.py
if %ERRORLEVEL% equ 0 (
echo.
echo Test completed successfully!
) else (
echo.
echo Test failed with error code %ERRORLEVEL%
)
echo.
echo Press any key to exit...
pause >nul