On 10/16/2012 02:24 PM, Gawlas, Julius wrote:
Just FYI, Nish led me to successful run of latest libhugetlbfs (needed 
libpthread.a from glibc-static installed) and as suggested run

$ make BUILDTYPE=NATIVEONLY
$ make BUILDTYPE=NATIVEONLY check

Should the libhugetlbfs test be adjusted to:

- include latest libhugetlbfs
- run make with BUILDTYPE=NATIVEONLY
- require static libpthread.a

Sounds good, you can check for lpthread using

In[7]: os_dep.library('libpthread.a')

If the lib is present, it'll return:

Out[7]: '/lib64/libpthread.a'

If it's not present, it'll raise a ValueError:

In [4]: os_dep.library('libpthread.a')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/home/lmr/Code/autotest.git/autotest/client/<ipython-input-4-4ab8a1e6fef7> in <module>()
----> 1 os_dep.library('libpthread.a')

/home/lmr/Code/autotest.git/autotest/client/os_dep.pyc in library(lib)
     49         if os.path.exists(file):
     50             return file
---> 51     raise ValueError('Missing library: %s' % lib)
     52
     53

ValueError: Missing library: libpthread.a

So the work items are:

1) Update the tarball in the test module to latest upstream
2) Probe for libpthread.a the way I described above, probably during the setup() method.
3) Update the calls to build to use make BUILDTYPE=NATIVEONLY.

Do you want to work on that Julius? If not, we can just open an issue and we can get back to it during the next couple of days.

Lucas

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to