![]() |
![]()
| ![]() |
![]()
NAMEaugparse - execute an Augeas module SYNOPSISaugparse [OPTIONS] MODULE DESCRIPTIONExecute an Augeas module, most commonly to evaluate the tests it contains. OPTIONS
EXAMPLESTo run the tests in lenses/tests/test_foo.aug and use modules from the directory lenses, run augparse -I lenses lenses/tests/test_foo.aug
TESTSTests can appear as top-level forms anywhere in a module. Generally, the tests for a module lenses/foo.aug are kept in a separate file, usually in lenses/tests/test_foo.aug. There are two different kinds of tests that Augeas can run: get and put tests. The syntax for get tests is test LENS get STRING = RESULT
which applies the get direction of the lens LENS to STRING and compares it with the given RESULT. RESULT can either be a tree literal, the symbol ? to print the result of applying LENS to STRING, or the symbol * to indicate that the test should produce an exception. The syntax for put tests is test LENS put STRING after COMMANDS = RESULT
which first applies the get direction of the lens LENS to STRING, then applies the given COMMANDS to the resulting tree, and finally transforms the modified tree back to a string using the put direction of LENS. The resulting string is then compared to RESULT, which can be a string, the symbol ? to print the result of applying LENS to STRING, or the symbol * to indicate that the test should produce an exception. AUTHORDavid Lutterkort <lutter@watzmann.net> COPYRIGHT AND LICENSECopyright 2007-2016 David Lutterkort Augeas (and augparse) are distributed under the GNU Lesser General Public License (LGPL) SEE ALSOAugeas project homepage <http://www.augeas.net/> augtool
|