summaryrefslogtreecommitdiff
path: root/test/ports/azrtos_test_txm_gnu_cortex_m4.bat
blob: 1d611c374a63155c01fe1c7aebf91979212c1818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off

ECHO INFO: Starting test...

DEL test.log > NUL

%AZRTOS_ARM_DS_DBG% --cdb-entry "Arm FVP::MPS2_Cortex_M4::Bare Metal Debug::Bare Metal Debug::Debug Cortex-M4" --image sample_threadx.out --script %AZRTOS_TEST_DIR%\azrtos_test_txm_gnu_cortex_m4.ds
IF %ERRORLEVEL% NEQ 0 (
    ECHO ERROR: test execution failed.
    EXIT /B 1
)

COMP /A /L /M test.log %AZRTOS_TEST_DIR%\azrtos_test_txm_gnu_cortex_m4.log.expected
IF %ERRORLEVEL% NEQ 0 (
    ECHO ERROR: unexpected test results. 
    EXIT /B 1
)

ECHO INFO: Test done.
EXIT /B 0