os/mm/mmtestenv/mmtesttools/Scripts/DABS/readme.txt
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
The .bat and .txt files in directories Batchfiles and CommandFiles has
sl@0
     2
been automatically generated by the Perl script
sl@0
     3
DABS_test_data.pl. That script uses a files called test_data.txt to
sl@0
     4
read which batch files copies over test data from the MMC card to the
sl@0
     5
C:-drive and delete the data from the C:-drive when test has
sl@0
     6
finished. 
sl@0
     7
sl@0
     8
test_data.txt was generated by executing "grep -i -l copy *.bat
sl@0
     9
>test_data.txt" in a Cygwin bash shell. The grep utility found on
sl@0
    10
\\londata21\tools works just as well. 
sl@0
    11
sl@0
    12
The .txt files contain the command autoexec.bat will execute on HW to
sl@0
    13
copy over the data. Eg MMFSbcUnitTests_del_data.txt contains the line:
sl@0
    14
sl@0
    15
call e:\MMFSbcUnitTests_del_data.bat
sl@0
    16
sl@0
    17
The .bat files contains the actual copy and delete commands.
sl@0
    18
sl@0
    19
These files are necessary because the DABS system uses one file to
sl@0
    20
build up the autoexec.bat file. A line in that file can look like:
sl@0
    21
sl@0
    22
testframework, logs\testresults\mm\TSU_MMF_SBCCODEC.htm, ,
sl@0
    23
\TSU_MMF_SBCCODEC.script, 600, UREL,
sl@0
    24
MMFSbcUnitTests_copy_test_data.txt,
sl@0
    25
MMFSbcUnitTests_del_test_data.txt 
sl@0
    26
sl@0
    27
where the two last arguments is the pretest and posttest command
sl@0
    28
files. Unfortunately the command file can only contain one line as
sl@0
    29
the DABS system only reads the first line in that file. Bonkers
sl@0
    30
but there you go.
sl@0
    31
sl@0
    32
The above test line will produce an autoexec.bat looking like this:
sl@0
    33
sl@0
    34
call e:\MMFSbcUnitTests_copy_test_data.bat
sl@0
    35
RUNTESTS testframeworkTSU_MMF_SBCCODEC.script.txt -t 10
sl@0
    36
call e:\MMFSbcUnitTests_del_test_data.bat