Changeset 777c890 for chapter06/bash.xml
- Timestamp:
- 05/30/2020 07:00:00 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- 0e9d60e
- Parents:
- 160e72c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/bash.xml
r160e72c r777c890 74 74 package</quote> if not running the test suite.</para> 75 75 76 <para>To prepare the tests, ensure that the <systemitem class="username"> nobody</systemitem> user can write to the sources tree:</para>76 <para>To prepare the tests, ensure that the <systemitem class="username">tester</systemitem> user can write to the sources tree:</para> 77 77 78 <screen><userinput remap="test">chown -Rv nobody.</userinput></screen>78 <screen><userinput remap="test">chown -Rv tester .</userinput></screen> 79 79 80 80 <para>Now, run the tests as the <systemitem 81 class="username"> nobody</systemitem> user:</para>81 class="username">tester</systemitem> user:</para> 82 82 83 <screen><userinput remap="test">su nobody -s /bin/bash << EOF 84 PATH=$PATH HOME=/home make tests 85 EOF</userinput></screen> 83 <screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen> 86 84 87 <para>The <command>su</command> command above is slightly different from 88 other places in the book. The 89 reason is that the <option>-c</option> option runs the command without 90 a controlling terminal, while the bash test suite needs one.</para> 85 <para>The <systemitem class="username">tester</systemitem> 86 user does not have enough permissions for all the tests to pass. This shows 87 up in some <quote>diff</quote> output in four test results. Portions of the 88 run-execscript, run-lastpipe, run-read, and run-test programs 89 are known to fail in the LFS chroot environment, but pass if the tests 90 are run in a full system.</para> 91 91 92 92 <para>Install the package and move the main executable to
Note:
See TracChangeset
for help on using the changeset viewer.