functest

Name

functest  --  fetch a package and add it to the FUNCTESTS variable

Synopsis

functest {package} [rev=revision] [root=url] [dest=directory]

Description

functest fetches package, using fetch(3), and adds it to the FUNCTESTS variable used by the rules file. package should be the name of a package containing a makefile that includes the rules file.

Adding a package to the FUNCTESTS variable means that it will be added to the set of the product's function tests. It will be built and executed when calling the runfunctests target.

Options

dest=directory

The destination directory of the package to fetch.

rev=revision

The revision of the package to fetch.

root=url

The repository root of the package to fetch.

Example

Add the function test tests/arp-ping revision R1_2_3 to the product:

    functest tests/arp-ping rev=R1_2_3
    

See Also

fetch(3), sub(3)