The Shared Source CLI Testing Environment

Contents

Overview

The tests in the Shared Source CLI (SSCLI) are broken into two large buckets, with each bucket broken into several smaller groupings. The large buckets are:

PAL Test Suite

The PAL suite is designed to validate the quality of the PAL. This set of suites can be run before anything else in the SSCLI is running, therefore it has no dependencies on anything running other than the PAL itself.

You can find the driver script for the PAL Test Suite in pvtrun.pl. Once you have built the PAL, you can execute the tests by running this script, it will execute around 1200 tests from the palsuite directory.

The PAL tests harness is located in the test_harness directory. The test harness uses several environment variables that indicate where to find its test list, where to store results and where to find its helper driver xrun. Normally, these are all set in a wrapper script such as pvtun.pl, but they can also be set individually in the environment for manual execution.

There are additional tests that are not run by default from the driver script. See the readme.txt for more details on running the remaining suites.

SSCLI Quality Suites

The SSCLI Quality suites are the tests for everything other than the PAL. The test inventory is not a complete breadth test bed but is focused on some key areas of functionality.

Quality Suites Test Driver

The main test driver is RRUN. RRUN is based on a the idea that tests are distributed in a directory tree, with their configuration information located in the directory with the tests. Tests are required to be self-verifying (no baselines are used). RRUN traverses the directory tree starting with the working directory of the process that invoked RRUN and works down the directory structure collecting the test information. Then all tests that match a simple set of criteria are executed and the results reported.

The source comments at the top of the file should be consulted for the complete details of operation.

Running RRUN from tests, the entire test inventory will be run, using the default criteria. To run a subset (such as the tests listed below), just change the working directory to the one listed and then run RRUN.

Quality Suites and BVTs

The Base Verification Tests, or BVTs, are the quick set of tests run after a change is made to ensure things basically still work. (These are sometimes called smoke tests). These tests are located in tests/bvt.

The base IL tests are located in tests/il_bvt. These test provide core coverage of the IL instructions in the system.

The Verifier tests are those that test the verifier in the JIT. They are located in tests/security/verifier. In addition to these tests, there are many tests throughout the tree that require verification to be either off or on - these are marked with the tests attributes <VERIFIERMUSTBEOFF> and <VERIFIERMUSTBEOON> in the appropriate rsources file.

Tests for the base class libraries can be found in tests/bcl.

The tests/utilities directory contains support functions for other tests. The tests/dev directory contains tests written by the dev team to cover specific cases not covered by other tests.

Build and Logging

The test driver, rrun.pl now respects build type.  Executables are built into the obj, objd, objdf subdirectory depending on build type (see buildtools\building_sscli.html).

Build log files are now named rrun.log and rrun.err files.  These are named rrundf.log and rrundf.err on the fastchecked build and rrund.log and rrund.err on the checked build.

Test Strategy

Copyright (c) 2002 Microsoft Corporation