EnglishFrenchSpanish

Ad


OnWorks favicon

augparse - Online in the Cloud

Run augparse in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command augparse that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


augparse - execute an Augeas module

SYNOPSIS


augparse [OPTIONS] MODULE

DESCRIPTION


Execute an Augeas module, most commonly to evaluate the tests it contains.

OPTIONS


-I, --include=DIR
Add DIR to the module loadpath. Can be given multiple times. The directories set here
are searched before any directories specified in the AUGEAS_LENS_LIB environment
variable, and before the default directory /usr/share/augeas/lenses.

-t, --trace
Print a trace of the modules that are being loaded.

--nostdinc
Do not search any of the default directories for modules. When this option is set,
only directories specified explicitly with -I or specified in AUGEAS_LENS_LIB will be
searched for modules.

--notypecheck
Do not perform lens type checks. Only use this option during lens development and make
sure you typecheck lenses when you are done developing - you should never use a lens
that hasn't been typechecked. This option is sometimes useful when you are working on
unit tests for a lens to speed up the time it takes to repeatedly run and fix tests.

--version
Print version information and exit.

-h Display this help and exit

EXAMPLES


To 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

TESTS


Tests 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.

Use augparse online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Sardi
    Sardi
    Sardi is a complete restyling and
    optimisation of svg code. 6 choices for
    your applications and 10 kind of folders
    to use in your file manager. The sardi
    icons...
    Download Sardi
  • 2
    LMMS Digital Audio Workstation
    LMMS Digital Audio Workstation
    LMMS is a free cross-platform software
    which allows you to produce music with
    your computer. If you like this project
    consider getting involved in the project
    h...
    Download LMMS Digital Audio Workstation
  • 3
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS is a market-leading real-time
    operating system (RTOS) for
    microcontrollers and small
    microprocessors. Distributed freely
    under the MIT open source lice...
    Download FreeRTOS Real Time Kernel (RTOS)
  • 4
    Avogadro
    Avogadro
    Avogadro is an advanced molecular
    editor designed for cross-platform use
    in computational chemistry, molecular
    modeling, bioinformatics, materials
    science and ...
    Download Avogadro
  • 5
    XMLTV
    XMLTV
    XMLTV is a set of programs to process
    TV (tvguide) listings and help manage
    your TV viewing, storing listings in an
    XML-based format. There are utilities to
    do...
    Download XMLTV
  • 6
    strikr
    strikr
    Strikr Free Software project. Artifacts
    released under a 'intent based'
    dual license: AGPLv3 (community) and
    CC-BY-NC-ND 4.0 international
    (commercial)...
    Download strikr
  • More »

Linux commands

Ad