Changeset 908a3c3
- Timestamp:
- 07/20/2021 10:24:26 AM (3 years ago)
- Branches:
- 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 7ea60d3
- Parents:
- 14e0b47 (diff), 94862da (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
appendices/dependencies.xml
r14e0b47 r908a3c3 219 219 <segtitle>&testsuites;</segtitle> 220 220 <seglistitem> 221 <seg> Shadow</seg>221 <seg>Expect and Shadow</seg> 222 222 </seglistitem> 223 223 </segmentedlist> -
chapter07/createfiles.xml
r14e0b47 r908a3c3 176 176 chapter.</para> 177 177 178 <screen><userinput>echo "tester:x: $(ls -n $(tty) | cut -d" " -f3):101::/home/tester:/bin/bash" >> /etc/passwd178 <screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd 179 179 echo "tester:x:101:" >> /etc/group 180 180 install -o tester -d /home/tester</userinput></screen> -
chapter08/bash.xml
r14e0b47 r908a3c3 74 74 <screen><userinput remap="test">chown -Rv tester .</userinput></screen> 75 75 76 <para>Now, run the tests as the <systemitem 76 <para>The testsuite of the package is designed to be ran as a non-root 77 user, owning the terminal connected to standard input. To satisify the 78 requirement, spawn a new pseudoterminal using 79 <application>Expect</application> and run the tests as the <systemitem 77 80 class="username">tester</systemitem> user:</para> 78 81 79 <screen><userinput remap="test">su tester << EOF 80 PATH=$PATH make tests < $(tty) 82 <screen><userinput remap="test">su -s /usr/bin/expect tester << EOF 83 set timeout -1 84 spawn make tests 85 expect eof 86 lassign [wait] _ _ _ value 87 exit $value 81 88 EOF</userinput></screen> 82 89
Note:
See TracChangeset
for help on using the changeset viewer.