[augeas-devel] [PATCH] Add pbuilder.aug and associated test

Raphael Pinson raphink at gmail.com
Wed Apr 8 13:53:50 UTC 2009


---
 lenses/pbuilder.aug            |   28 ++++++++++++++++++++++++++++
 lenses/tests/test_pbuilder.aug |   20 ++++++++++++++++++++
 2 files changed, 48 insertions(+), 0 deletions(-)
 create mode 100644 lenses/pbuilder.aug
 create mode 100644 lenses/tests/test_pbuilder.aug

diff --git a/lenses/pbuilder.aug b/lenses/pbuilder.aug
new file mode 100644
index 0000000..5669e9f
--- /dev/null
+++ b/lenses/pbuilder.aug
@@ -0,0 +1,28 @@
+(*
+Module: Pbuilder
+ Parses /etc/pbuilderrc, /etc/pbuilder/pbuilderrc
+
+Author: Raphael Pinson <raphink at gmail.com>
+
+About: Reference
+  Pbuilderrc is a standard shellvars file.
+
+About: License
+  This file is licensed under the GPL.
+
+About: Configuration files
+  This lens applies to /etc/pbuilderrc and /etc/pbuilder/pbuilderrc.
+  See <filter>.
+*)
+
+module Pbuilder =
+
+autoload xfm
+
+let filter = incl "/etc/pbuilder/pbuilderrc" 
+           . incl "/etc/pbuilderrc"
+
+let lns    = Shellvars.lns
+
+let xfm    = transform lns filter
+
diff --git a/lenses/tests/test_pbuilder.aug b/lenses/tests/test_pbuilder.aug
new file mode 100644
index 0000000..9017381
--- /dev/null
+++ b/lenses/tests/test_pbuilder.aug
@@ -0,0 +1,20 @@
+
+
+module Test_Pbuilder =
+
+let conf = "BASETGZ=/var/cache/pbuilder/base.tgz
+#EXTRAPACKAGES=gcc3.0-athlon-builder
+export DEBIAN_BUILDARCH=athlon
+BUILDPLACE=/var/cache/pbuilder/build/
+MIRRORSITE=http://ftp.jp.debian.org/debian
+"
+
+test Pbuilder.lns get conf =
+   { "BASETGZ"  = "/var/cache/pbuilder/base.tgz" }
+   { "#comment" = "EXTRAPACKAGES=gcc3.0-athlon-builder" }
+   { "DEBIAN_BUILDARCH" = "athlon"
+       { "export" } }
+   { "BUILDPLACE" = "/var/cache/pbuilder/build/" }
+   { "MIRRORSITE" = "http://ftp.jp.debian.org/debian" }
+
+
-- 
1.5.6.3




More information about the augeas-devel mailing list