Operating System - HP-UX
1832790 Members
3044 Online
110045 Solutions
New Discussion

How to test the library......

 
sandhya_2
Occasional Contributor

How to test the library......

Hi all,

I am porting glibc-2.1.3 to hp-ux...I have created a stripped version of library...

I need to know how to test the library... can u suggest me the tools for testing the same...


Thanks in advance

sandhya
1 REPLY 1
Amit Agarwal_1
Trusted Contributor

Re: How to test the library......

What do you want to test?

1) Build was succesful or not?
Ans: Then the compilation would tell you. Or else you can us elfdump command (odump if lib is PA-32 bit) to see if all the sections are in place or not.

2) If APIs are available or not?
Ans: One way is to build non-stripped version and use 'nm' command to see if all the required APIs are listed or not.
Second way is to write a small program that uses these APIs and link it with glibc. the program should work fine.