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