Action:
|
Initiates and runs the current functionality tests in the examples test suite.
|
|
Filename:
|
examples/smoke_scm/acis_test_scm.cxx
|
|
Syntax:
|
(acis:test type | date | test-name)
|
|
Arg Types:
|
type
|
string
|
|
date
|
string
|
|
test-name
|
string
|
|
Returns:
|
boolean
|
|
Description:
|
This Scheme extension executes one or more of the available example tests. The Scheme extensions in the example test suite can be used to test API functionality, and are sometimes known as "smoke tests." The source code for these Scheme extensions illustrates the way APIs can be used in
C++ applications.
|
|
|
The optional arguments allow you to specify one of three types of testing: run a predefined set of examples by level of functionality (type); or display a previously run set of examples by date (date); or run a specific test by name.
|
|
|
The string
type defines the level of functionality to be tested. The valid strings are:
|
|
|
"fast"
|
Runs a minimum level of tests
|
|
"smoke"
|
Runs an intermediate level of tests
|
|
"all"
|
Runs all of the tests in the example test suite
|
|
|
Passing in a
date returns the tests run on or before the specified date.
date must be a numeric string of the format
"yyyymmdd", where
yyyy is the year,
mm is the month, and
dd is the day.
|
|
|
The string
test-name allows you to specify an individual test or level of functionality to be tested. A quoted question mark ("?") generates a list of valid strings for this argument. Also, running any of the
"fast",
"smoke", or
"all" tests displays the name of the individual tests as each one is executed.
|
|
|
This Scheme extension is for test purposes only. Entities created here are temporary and cannot be retained.
|
|
Limitations:
|
The functionality tests are currently only available for blending, skinning/lofting, and sweeping.
|
|
Example:
|
; acis:test
|
|
; Initiate and run the functionality tests.
|
|
(acis:test "fast")
|
|
; Running test: blend_diamante
|
|
;Demonstrates:
|
|
;
|
|
chamfering
|
|
;
|
|
api_delete_blends
|
|
;
|
|
api_set_const_rounds
|
|
; .
|
|
; .
|
|
; .
|
|
;; #t
|