Previous Topic: Deploy to CVSNext Topic: Running Test Cases and Suites


Make Mar Utility

You can use the Make Mar command-line utility to show the contents of MAR info files (stand-alone or in an archive) or to create model archive files from MAR info files.

This utility is located in the LISA_HOME\bin directory.

 

Options

Each option has a short version and a long version. The short version begins with a single dash. The long version begins with two dashes.

-h, --help

Displays help text.

-s file-name, --show=file-name

Shows the contents of a MAR info file.

If the file name refers to a MAR info file, then it is written out. If the file name refers to an archive, then both the audit and info entries are written out.

-c, --create

Creates one or more model archives from MAR info files.

To specify the MAR info file name to build the archive, use the --marinfo argument.

To specify the name of the archive to create, use the --archive argument.

If the --source-dir argument is used, then the --marinfo argument is taken as a name pattern to look for in the full directory tree. In this case, the --target-dir argument must be used to note where to place the created archives. This command also implies auto-naming of the created archives.

-m mar-info-name, --marinfo=mar-info-name

The parameter that specifies the name of the MAR info file to read (if the --source-dir argument is not used) or the MAR info file name pattern to look for (if the --source-dir argument is used). In the latter case, if not specified, it defaults to .mari.

-s directory, --source-dir=directory

Specifies the directory where the tool searches for MAR info files to make archives from. The full directory tree is searched for files that match the pattern that the --marinfo argument specifies.

-t output-directory, --target-dir=output-directory

Specifies the directory where archives are written.

When this argument is used, the created archives are automatically named based on the MAR info file name with a numeric suffix as appropriate to ensure that no files are overwritten.

-a archive-file, --archive=archive-file

Specifies the name of the archive file to create.

When this argument is used, the --marinfo argument must specify a single existing MAR info file. The --source-dir and --target-dir arguments are not allowed.

--version

Prints the version number.

 

Examples

The following example shows the contents of a MAR info file.

MakeMar --show=C:\Lisa\examples\MARInfos\AllTestsSuite.mari 

The following example creates a model archive named rawSoap.mar.

MakeMar --create --marinfo=C:\Lisa\examples\MARInfos\rawSoap.mari --archive=rawSoap.mar 

The following example creates a model archive for every MAR info file in the examples\MARInfos directory. The destination directory examples\MARs must exist before you run this command.

MakeMar --create --source-dir=examples\MARInfos --target-dir=examples\MARs