[lxc-devel] How to run autotests for LXC?

Qiang Huang h.huangqiang at huawei.com
Tue Dec 10 01:06:37 UTC 2013


On 2013/12/10 1:38, Ranjib Dey wrote:
> did you try running ./configure script inside the parent directory (i.e. repo root). 
> i am able to run `make check` inside the src folder after running the ./configure 
> script in the parent directory.

Yes, I did.
And when I run 'make check' inside the src folder, it just make lxc folder, for the
other folders(including tests), still do nothing.

...
gcc -I../../src -DLXCROOTFSMOUNT=\"/usr/local/lib/lxc/rootfs\" -DLXCPATH=\"/usr/local/var/lib/lxc\" -DLXC_GLOBAL_CONF=\"/usr/local/etc/lxc/lxc.conf\" -DLXCINITDIR=\"/usr/local/libexec\"
-DLXCTEMPLATEDIR=\"/usr/local/share/lxc/templates\" -DLOGPATH=\"/usr/local/var/log/lxc\" -DLXC_DEFAULT_CONFIG=\"/usr/local/etc/lxc/default.conf\" -DLXC_USERNIC_DB=\"/run/lxc/nics\"
-DLXC_USERNIC_CONF=\"/usr/local/etc/lxc/lxc-usernet\" -DDEFAULT_CGROUP_PATTERN=\"/lxc/%n\" -DHAVE_APPARMOR    -g -O2 -Wall -Werror -Wl,-E -Wl,-rpath -Wl,/usr/local/lib  -o lxc-init lxc_init.o
liblxc.so -lcap -lapparmor  -lrt -lutil -lapparmor
make[1]: Leaving directory `/home/h00177757/lxc-dev/src/lxc'
Making check in tests
make[1]: Entering directory `/home/h00177757/lxc-dev/src/tests'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/h00177757/lxc-dev/src/tests'
Making check in python-lxc
make[1]: Entering directory `/home/h00177757/lxc-dev/src/python-lxc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/h00177757/lxc-dev/src/python-lxc'
Making check in lua-lxc
...

> 
> 
> On Sun, Dec 8, 2013 at 11:25 PM, Qiang Huang <h.huangqiang at huawei.com <mailto:h.huangqiang at huawei.com>> wrote:
> 
>     Hi list,
> 
>     I was trying to play with the test code in LXC, which is
>     src/tests fold to be specific. But I just didn't find any
>     instructions.
> 
>     I tried:
>     # cd src/tests
>     # make check
>     make: Nothing to be done for `check'.
> 
>     What do I miss? I think there should be a way we can build
>     and run tests automatically, right?
> 
> 
> 
>     _______________________________________________
>     lxc-devel mailing list
>     lxc-devel at lists.linuxcontainers.org <mailto:lxc-devel at lists.linuxcontainers.org>
>     http://lists.linuxcontainers.org/listinfo/lxc-devel
> 
> 
> 
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
> 




More information about the lxc-devel mailing list