67 lines
6.4 KiB
Batchfile
67 lines
6.4 KiB
Batchfile
|
|
@REM *********************** Motorola-s19 - GOOD TEST CASES ****************************************************************************************************************************************************
|
|
|
|
|
|
@REM ======================= Motorola-s19 - suffuciant parameters and valid file - different input and output file =============================================================================================
|
|
@REM CRC_CCITT -file_in=test_in.s19 -file_out=test_crc.s19 -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
@REM ======================= Motorola-s19 - suffuciant parameters and valid file - identical input and output file =============================================================================================
|
|
@REM CRC_CCITT -file_in=test_in_out.s19 -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
@REM ======================= Motorola-s19 - suffuciant parameters and valid file - identical input and output file - single address range ======================================================================
|
|
@REM CRC_CCITT -file_in=test_in_out.s19 -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02
|
|
|
|
@REM ======================= Motorola-s19 - suffuciant parameters and valid file - different input and output file - crc address outside of input file address range ==========================================
|
|
@REM CRC_CCITT -file_in=test_in.s19 -file_out=test_crc.s19 -order=LSB_FIRST -size=WORD -crc_address=0x5B00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
|
|
@REM *********************** Motorola-s19 - ERRONEOUS TEST CASES ***********************************************************************************************************************************************
|
|
|
|
|
|
@REM ======================= Motorola-s19 - wrong file =========================================================================================================================================================
|
|
@REM CRC_CCITT -file_in=undefined.s19 -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD
|
|
|
|
@REM ======================= Motorola-s19 - insufficiant parameters ============================================================================================================================================
|
|
@REM CRC_CCITT -file_in=test_in.s19 -crc_address=0x5C00 -start_address1=0x5C02
|
|
|
|
@REM ======================= Motorola-s19 - address contains wrong sign ========================================================================================================================================
|
|
@REM CRC_CCITT -file_in=Wrong_Address_Sign.s19 -file_out=test_crc.s19 -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
@REM ======================= Motorola-s19 - data contains wrong sign ===========================================================================================================================================
|
|
@REM CRC_CCITT -file_in=Wrong_Data_Sign.s19 -file_out=test_crc.s19 -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
@REM ======================= Motorola-s19 - wrong length =======================================================================================================================================================
|
|
@REM CRC_CCITT -file_in=Wrong_Length.s19 -file_out=test_crc.s19 -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
@REM ======================= Motorola-s19 - wrong checksum =====================================================================================================================================================
|
|
@REM CRC_CCITT -file_in=Wrong_SRecord_Checksum.s19 -file_out=test_crc.s19 -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
@REM ======================= Motorola-s19 - wrong s19 record ===================================================================================================================================================
|
|
@REM CRC_CCITT -file_in=Wrong_SRecord_Id.s19 -file_out=test_crc.s19 -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
|
|
|
|
|
|
|
|
@REM *********************** TI-txt - GOOD TEST CASES **********************************************************************************************************************************************************
|
|
|
|
@REM ======================= TI-txt - suffuciant parameters and valid file - different input and output file ===================================================================================================
|
|
@REM CRC_CCITT -file_in=test_in.txt -file_out=test_crc.txt -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
@REM ======================= TI-txt - suffuciant parameters and valid file - identical input and output file ===================================================================================================
|
|
@REM CRC_CCITT -file_in=test_in_out.txt -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
@REM ======================= TI-txt - suffuciant parameters and valid file - different input and output file - crc address outside of input file address range ================================================
|
|
@REM CRC_CCITT -file_in=test_in.txt -file_out=test_crc.txt -order=LSB_FIRST -size=WORD -crc_address=0x5B00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
|
|
|
|
@REM *********************** TI-txt - ERRONEOUS TEST CASES *****************************************************************************************************************************************************
|
|
|
|
|
|
@REM ======================= TI-txt - invalid input file - corrupted ===========================================================================================================================================
|
|
@REM CRC_CCITT -file_in=Corrupted_File.txt -file_out=test_crc.txt -order=LSB_FIRST -size=WORD -crc_address=0x5C00 -start_address1=0x5C02 -length1=0x51FD -start_address2=0x010000 -length2=0x02FFFF
|
|
|
|
|
|
@PAUSE
|