voscript - test the execution of a configuration script
voscript script-file
voscript --help
Interpreter voscript tests the execution of a configuration script. The script-file argument specifies the path of the script to execute. Only JavaScript is supported, at present. The file must be encoded in UTF-8 (or equivalently, US-ASCII). Within these restrictions, it will work with any JavaScript file.
Voscript is intended as a test utility for Votorola configuration scripts. It may be used for smoke testing, and for experimenting. It provides the same include facility as the Votorola runtime. A script may load other JavaScript files, pulling them into the compilation, using a function call such as this:
_voIncluder.inc( ’/etc/votorola.js’ );
The filepath may be absolute, or relative to the including file. Shell variables ($) or expressions (such as tildes ~) are not expanded.
The
JavaScript engine is documented at:
http://java.sun.com/javase/6/docs/technotes/guides/scripting/.
The include
facility is documented at: http://zelea.com/project/-
votorola/_/javadoc/votorola/g/script/JavaScriptIncluder.html.
See Votorola(7) for an overview of Votorola.