소스 검색

Run coreutils tests in a cleaner way

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10656 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs 11 년 전
부모
커밋
de341d14c9
1개의 변경된 파일4개의 추가작업 그리고 10개의 파일을 삭제
  1. 4 10
      chapter06/e2fsprogs.xml

+ 4 - 10
chapter06/e2fsprogs.xml

@@ -44,11 +44,6 @@
   <sect2 role="installation">
   <sect2 role="installation">
     <title>Installation of E2fsprogs</title>
     <title>Installation of E2fsprogs</title>
 
 
-    <para>First fix a problem with running regression tests in the LFS chroot
-    environment:</para>
-
-<screen><userinput remap="pre">sed -i -e 's|^LD_LIBRARY_PATH.*|&amp;:/tools/lib|' tests/test_config</userinput></screen>
-
     <para>The E2fsprogs documentation recommends that the package be built in
     <para>The E2fsprogs documentation recommends that the package be built in
     a subdirectory of the source tree: </para>
     a subdirectory of the source tree: </para>
 
 
@@ -121,13 +116,12 @@ PKG_CONFIG_PATH=/tools/lib/pkgconfig \
 
 
 <screen><userinput remap="make">make</userinput></screen>
 <screen><userinput remap="make">make</userinput></screen>
 
 
-    <para>To set up the test suite we need to temporarily copy
-    a library from /tools/lib so the test programs can find it. 
+    <para>To set up and run the test suite we need to first link some 
+    libraries from /tools/lib to a location where the test programs look.
     To run the tests, issue:</para>
     To run the tests, issue:</para>
 
 
-<screen><userinput remap="test">cp -v /tools/lib/libblkid.so.1 /lib
-make check
-rm -v /lib/libblkid.so.1</userinput></screen>
+<screen><userinput remap="test">ln -sfv /tools/lib/lib{blk,uu}id.so.1 lib
+make LD_LIBRARY_PATH=/tools/lib check</userinput></screen>
 
 
     <para>One of the E2fsprogs tests will attempt to allocate 256 MB of memory.
     <para>One of the E2fsprogs tests will attempt to allocate 256 MB of memory.
     If you do not have significantly more RAM than this, be sure to enable
     If you do not have significantly more RAM than this, be sure to enable