Dcmangle Test

Test Objectives

APIs affected by this test

Setup

Test Execution

cd <your scripts directory>

Usage: dcmangle.tcl [options] &

There are many options for dcmangle.tcl but here I just list the basic ones.

Option Description
<-starttime> when to start dcmangle e.g. "9/13/04 08:21:08"
<-endtime> when to end dcmangle e.g. "9/14/04 11:21:08"

e.g.


            dcmangle.tcl &

To terminate dcmangle.tcl manually, enter

touch /tmp/dcmangle/sHuTdOwN

Test Validation:

dcmangle.tcl writes to a default temp directory /tmp/dcmangle. It stores a copy of the original LDASdiskcache.rsc file as LDASdiskcache.rsc.orig and a copy of the frame cache file .frame.cache2 in directory /tmp/dcmangle. It then creates a new copy of LDASdiskcache.rsc with a mount point removed every 300 secs (default interval) and then put back. When test has been terminate, check for the different in cache content

            cd /tmp/dcmangle
            /ldas/bin/cacheDump > t1
            /ldas/bin/cacheDump .frame.cache2 > t2
            diff t1 t2 
should show only the files in /archive or new frame files as difference. e.g.

        < /archive/postS3/L1/LHO/H-RDS_R_L1-7791,H,RDS_R_L1,1,32 1095084698 29 {779111040 779111968}
        3634d3572
        < /archive/postS3/L3/LHO/H-RDS_R_L3-7791,H,RDS_R_L3,1,32 1095091699 29 {779111040 779111968}
        3989,3990c3927,3928
        < /ldas_outgoing/frames/S3_RDS/LHO,H,RDS_R_L1,1,16 1095096292 104 {751800016 751801680}
        < /ldas_outgoing/frames/S3_RDS/LLO,L,RDS_R_L1,1,16 1095096315 88 {751800016 751801424}
        ---
        > /ldas_outgoing/frames/S3_RDS/LHO,H,RDS_R_L1,1,16 1095044387 193 {751800016 751803104}
        > /ldas_outgoing/frames/S3_RDS/LLO,L,RDS_R_L1,1,16 1095044383 88 {751800016 751801424}