]>
git.proxmox.com Git - mirror_lxc.git/blob - src/tests/lxc-test-createconfig
3 # lxc: linux Container library
6 # Serge Hallyn <serge.hallyn@ubuntu.com>
8 # This is a test script for the lxc-user-nic program
10 # This library is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU Lesser General Public
12 # License as published by the Free Software Foundation; either
13 # version 2.1 of the License, or (at your option) any later version.
15 # This library is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public
21 # License along with this library; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 s
=`mktemp -d /tmp/lxctest-XXXXXX`
30 lxc-destroy
-n lxctestc || true
38 lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx
40 lxc-create
-t busybox
-f $f -n lxctestc
41 grep -q "xx:xx" /var
/lib
/lxc
/lxctestc
/config
&& { echo "hwaddr not expanded"; exit 1; }