Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - 日本語


example_run

ヘルプページで見つかった例を実行.

呼び出し手順

example_run()
example_run(moduleNames)
example_run(moduleNames, functionNames)
example_run(moduleNames, functionNames, language)
example_run(moduleNames, functionNames, language, testrunOptions, testrunExportToFile)

引数

moduleNames

a string or a vector of strings: references of the modules to test. Each reference can be either of

  • the technical name of a Scilab internal module, that is the name of the root directory of the module.
  • the relative or absolute path of the root directory of the module. This must be used for installed ATOMS modules or other external modules.
By default, all Scilab internal modules are considered, as returned by getmodules().

The root directory of each targeted module must have a ./help subdirectory containing the XML source files of help pages where examples to test are provided, gathered by languages as in the source package of any standard module. Example of the template toolbox_skeleton module:

unix_w("dir /b /s """ + WSCI + "/contrib/toolbox_skeleton/help""")

functionNames

文字列または文字列ベクトル: テストする関数の名前. 指定されないアバイ, モジュールの全てのヘルプページがテストされます.

language

文字列: テストするヘルプページの言語. デフォルト値は "en_US"です.

testrunOptions

test_runの第3引数として使用.

testrunExportToFile

test_runの第4引数として使用.

説明

この巻数は,ヘルプページで指定した例を展開し, test_runにより実行します.

When testing examples of any external module, it is mandatory to autoload the module at Scilab startup. This can be achieved either by setting the ATOMS module as autoloaded, or by loading the module through the user's startup file.

if ~isempty(ls("SCI/modules/xml/help/en_US/*.xml")) then // この例のXMLソースが存在する必要があります
    example_run("xml")
    example_run("elementary_functions", "insertion")
    example_run("elementary_functions", ["insertion"; "extraction"])
    example_run("elementary_functions", "insertion", "en_US")
end

参照

履歴

バージョン記述
5.4.0 関数example_runが導入されました.
Report an issue
<< bench_run Development tools test_run >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon May 22 12:43:16 CEST 2023