Hi Cyril Hrubis, PFB the steps I followed to compile open_posix_testsuite under LTP.I had placed ltp-full-20130109 directory under the following path in my work space in development host./nb/devraj/realtime/nv/ct/ltp/ltp-full-20130109I have a main Makefile in /nb/devraj/realtime/nv/ct/ltp path which will trigger ltp-full-20130109's configuration, make all and make install and build will go successful all the time and I am able to run LTP on my device with these binaries created.since open_posix_testsuite is FILTER_OUT from default build through /nb/devraj/realtime/nv/ct/ltp/ltp-full-20130109/testcases/Makefile, so I have enabled the build by the following changes at this Makefile and given for the build. #ifneq ($(WITH_OPEN_POSIX_TESTSUITE),yes)#FILTER_OUT_DIRS += open_posix_testsuite#endif I got the following issues *** No rule to make target `/nb/devraj/realtime/nv/ct/ltp/ltp-full-20130109/scripts/generate-makefiles.sh', needed by `conformance/interfaces/timer_settime/Makefile'. Stop.so I copied the /nb/devraj/realtime/nv/ct/ltp/ltp-full-20130109/testcases/open_posix_testsuite/scripts/generate-makefiles.sh script to nb/devraj/realtime/nv/ct/ltp/ltp-full-20130109/scripts path and this issue got resolved. Again I got the following issues*** No rule to make target `/nb/devraj/realtime/nv/ct/ltp/ltp-full-20130109/CFLAGS', needed by `conformance/interfaces/timer_settime/Makefile'. Stop.So I copied the /nb/devraj/realtime/nv/ct/ltp/ltp-full-20130109/testcases/open_posix_testsuite/CFLAGS file to nb/devraj/realtime/nv/ct/ltp/ltp-full-20130109/ path and this issue got resolved. Same issues repeated for LDFLAGS and LDLIBS and those are resolved by copying these files to /nb/devraj/realtime/nv/ct/ltp/ltp-full-20130109 path. Again I got the following issues*** No rule to make target `generate-makefiles'. Stop.*** [conformance/interfaces/timer_settime/Makefile] Error 2*** [all] Error 2*** [testcases-all] Error 2*** [/nb/devraj/realtime/nv/ct/ltp/obj-i686/all.sentinel] Error 2make: FAILED So I searched for generate-makefiles at open_posix_testsuite folder and found an entry in Makefile of this folder.So Makefile of ltp-full-20130109 is changed according to Makefile of open_posix_testsuite,PFA the same.still I am getting the below mentioned issues.*** No rule to make target `generate-makefiles'. Stop.*** [conformance/interfaces/timer_settime/Makefile] Error 2*** [all] Error 2*** [testcases-all] Error 2*** [/nb/devraj/realtime/nv/ct/ltp/obj-i686/all.sentinel] Error 2make: FAILED open_posix_testsuite - as a stand alone tool for x86 host will compile and run successfully.open_posix_testsuite under LTP for standard x86 host will compile and run successfully.ltp-full-20130109, WITHOUT open_posix_testsuite enabled in the Makefile will compile and build successfully.I am getting the above issues only when I enabled open-posix_testsuite at Makefile and try to build ltp-full20130109 under my work space. Please let me know if there is any work around or fix for this issue. I found one issue in Makefile of open_posix_testsuite.we are using CRITICAL_SECTION_MAKEFILE= stress/threads/sem_open/Makefile line for stress module. CRITICAL_SECTION_MAKEFILE= stress/threads/sem_open/Makefile CRITICAL_MAKEFILES= $(CRITICAL_CONFORMANCE_MAKEFILE) \ $(CRITICAL_FUNCTIONAL_MAKEFILE) \ $(CRITICAL_SECTION_MAKEFILE) But we are using stress-all: $(CRITICAL_STRESS_MAKEFILE) in the build of stress module, so need to change SECTION to STRESS in Makefile of open_posix_testsuite. One more thing we can use the attached execute.sh script to run open_posix_testsuite to get the summarry of results in few minutes. It will run around 1843 test cases. Thanks and Regards,Devaraja B V
From: [email protected] Sent: Mon, 12 Aug 2013 15:34:33 To: devaraja b v <[email protected]> Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]> Subject: Re: [LTP] open posix testsuite compilation Hi! > ltp-full-20130109 source code is having old open posix testsuite.New version posixtestsuite-1.5.2&nbsp;is available at&nbsp;http://sourceforge.net/projects/posixtest/files/posixtest/ ;link.Please use this or the latest module in the next release of LTP, as the latest one is easy to cross compile and run on various platforms. > I am facing the following issues when I am compiling this new tool inside LTP.&nbsp;Please let me know any lead or pointer to fix this issue? Open posix testuite in LTP was updated to the latest version (1.5.2) in 2007. The open posix testuite upstream is dead for about seven years and the development was continued inside the LTP. The open posix testsuite in LTP is the latest and best you can have. > cat: LDFLAGS: No such file or > directoryltp/obj-i686/locate-test: > Command not foundltp/obj-i686/locate-test: > Command not foundmake-3.81[3]: *** No rule to > make target `install'.&nbsp; Stop.make-3.81[3]: Leaving > directoryltp/obj-i686/testcases/open_posix_testsuite' > > make-3.81[2]: *** [install] Error > 2 > > make-3.81[2]: Leaving directory&nbsp;ltp/obj-i686/testcases' > > make-3.81[1]: *** > [testcases-install] Error 2 > > &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;make-3.81[1]: Leaving directory&nbsp;ltp/obj-i686' > > &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;make-3.81: ***ltp/obj-i686/install.sentinel] > Error 2 > Can you include exact steps that lead to this failure? Also please send emails to the mailing list in plain text next time. -- Cyril Hrubis [email protected] Get your own FREE website and domain with business email solutions, click here
execute.sh
Description: Bourne shell script
Makefile_modified_by_devraj
Description: Binary data
------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
