Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_schroot.aug
1 module Test_schroot =
2
3    let conf = "# Sample configuration
4
5 [sid]
6 type=plain
7 description=Debian unstable
8 description[fr_FR]=Debian instable
9 location=/srv/chroot/sid
10 priority=3
11 groups=sbuild
12 root-groups=root
13 aliases=unstable,default
14
15 [etch]
16 type=block-device
17 description=Debian testing
18 priority=2
19 #groups=sbuild-security
20 aliases=testing
21 device=/dev/hda_vg/etch_chroot
22 mount-options=-o atime
23 run-setup-scripts=true
24 run-exec-scripts=true
25
26 [sid-file]
27 type=file
28 description=Debian sid file-based chroot
29 priority=3
30 groups=sbuild
31 file=/srv/chroots/sid.tar.gz
32 run-setup-scripts=true
33 run-exec-scripts=true
34
35 [sid-snapshot]
36 type=lvm-snapshot
37 description=Debian unstable LVM snapshot
38 priority=3
39 groups=sbuild
40 root-groups=root
41 device=/dev/hda_vg/sid_chroot
42 mount-options=-o atime,sync,user_xattr
43 lvm-snapshot-options=--size 2G
44 run-setup-scripts=true
45 run-exec-scripts=true
46 "
47
48    test Schroot.lns get conf =
49   { "#comment" = "Sample configuration" }
50   {  }
51   { "sid"
52     { "type" = "plain" }
53     { "description" = "Debian unstable" }
54     { "description" = "Debian instable"
55       { "lang" = "fr_FR" }
56     }
57     { "location" = "/srv/chroot/sid" }
58     { "priority" = "3" }
59     { "groups" = "sbuild" }
60     { "root-groups" = "root" }
61     { "aliases" = "unstable,default" }
62     {  }
63   }
64   { "etch"
65     { "type" = "block-device" }
66     { "description" = "Debian testing" }
67     { "priority" = "2" }
68     { "#comment" = "groups=sbuild-security" }
69     { "aliases" = "testing" }
70     { "device" = "/dev/hda_vg/etch_chroot" }
71     { "mount-options" = "-o atime" }
72     { "run-setup-scripts" = "true" }
73     { "run-exec-scripts" = "true" }
74     {  }
75   }
76   { "sid-file"
77     { "type" = "file" }
78     { "description" = "Debian sid file-based chroot" }
79     { "priority" = "3" }
80     { "groups" = "sbuild" }
81     { "file" = "/srv/chroots/sid.tar.gz" }
82     { "run-setup-scripts" = "true" }
83     { "run-exec-scripts" = "true" }
84     {  }
85   }
86   { "sid-snapshot"
87     { "type" = "lvm-snapshot" }
88     { "description" = "Debian unstable LVM snapshot" }
89     { "priority" = "3" }
90     { "groups" = "sbuild" }
91     { "root-groups" = "root" }
92     { "device" = "/dev/hda_vg/sid_chroot" }
93     { "mount-options" = "-o atime,sync,user_xattr" }
94     { "lvm-snapshot-options" = "--size 2G" }
95     { "run-setup-scripts" = "true" }
96     { "run-exec-scripts" = "true" }
97   }