lsync test

Test Objectives

This is a standalone test, no APIs are affected by this test but the diskcacheAPI is used for cache comparison

The test does the following:

  1. Untar the lsync tar ball in the local directory, or if a directory is specified, cd to that directory.
  2. cd to the directory created by the untar process
  3. Updates lsync.rsc with the ::MOUNT_PT variable from diskcacheAPI.
  4. Invokes lsync.tcl to generate a cache file lsync.cache.
  5. Compares current diskcacheAPI frame cache to lsync.cache; the test passes if the directories are the same.

Setup

Test Execution

On the diskcacheAPI host

Make sure there are no jobs running that would generate frame files as output.

cd <your directory containing script >

Usage:

Option Description
<tarball file path or directory containing lsync files> supply a tarball path or a directory containing lsync files and objects

e.g. with tarball path


            lsync.test /ldas_outgoing/nightly_tarballs/lsync-SunOS-sun4u-1.2.39.tar.gz >& lsynctest.log &
            
or with a specified directory

            lsync.test lsync-SunOS-sun4u-1.2.36 >& lsynctest.log &
            

Test Validation: