/usr/share/augeas/lenses/dist/tests/test_simplevars.aug is in augeas-lenses 1.2.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | (*
Module: Test_Simplevars
Provides unit tests and examples for the <Simplevars> lens.
*)
module Test_Simplevars =
(* Variable: conf *)
let conf = "# this is a comment
mykey = myvalue # eol comment
anotherkey = another value
"
(* Test: Simplevars.lns *)
test Simplevars.lns get conf =
{ "#comment" = "this is a comment" }
{ }
{ "mykey" = "myvalue"
{ "#comment" = "eol comment" } }
{ "anotherkey" = "another value" }
(* Test: Simplevars.lns
Quotes are OK in variables that do not begin with a quote *)
test Simplevars.lns get "UserParameter=custom.vfs.dev.read.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$4}'\n" =
{ "UserParameter" = "custom.vfs.dev.read.ops[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$4}'" }
|