This patch tells well how to build LTP taken from CVS repository:)
--- Begin Message ---
Make the autotest LTP script use the autotools target when possible and
fallback to the autoconf target otherwise. This works well because,
while the autotools target hasn't always existed, when it does exist it
incorporates the autoconf target too.


Signed-off-by: Matt Helsley <[email protected]>
---

Index: abat/autotest/client/tests/ltp/ltp.py
===================================================================
--- abat.orig/autotest/client/tests/ltp/ltp.py
+++ abat/autotest/client/tests/ltp/ltp.py
@@ -24,7 +24,9 @@ class ltp(test.test):
             utils.system('patch -p1 < ../ltp_capability.patch')
 
         utils.system('cp ../scan.c pan/')   # saves having lex installed
-        utils.system('make -j %d' % autotest_utils.count_cpus())
+        utils.system('[ -f configure.ac ] && make autotools || make autoconf')
+        utils.system('[ -x configure ] && ./configure')
+        utils.system('make -j %d || make' % autotest_utils.count_cpus())
         utils.system('yes n | make install')


-- 
Gustavo Matheus Rahal
ABAT Architect
IBM Linux Technology Center


_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

--- End Message ---
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to