Re: cat: vim-test.log: No such file or directory

"Bruce Dubbs" ([email protected] via alfs-discuss Mailing List) <[email protected]> Fri, 7 Feb 2025 21:09:50 -0600
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
On 2/7/25 6:12 PM, Xi Ruoyao ([email protected] via alfs-discuss Mailing List) wrote:
> On Fri, 2025-02-07 at 16:00 -0600, Bruce Dubbs wrote:
>> On 2/7/25 3:44 PM, "md" ([email protected] via alfs-discuss Mailing List) wrote:
>>> Hi,
>>>
>>> I'm running "make mk_CHROOT" using
>>> jhalfs: a4a8cc86b547c4f00e90c7a0cb50304a2f286cb4 (HEAD -> trunk, origin/trunk,
>>> origin/HEAD) Fix generation of test instructions
>>> and
>>> lfs: 40ca48d44fb8794633a466015ab5b34f978bf2c6 (HEAD -> trunk, origin/trunk,
>>> origin/HEAD) binutils: Drop stale references to gold
>>>
>>> and getting
>>> cat logs/871-vim-9.1.1071 | tail -4
>>> link.sh: Linked fine
>>> make[2]: Leaving directory '/sources/vim-9.1.1071/src'
>>> make[1]: Leaving directory '/sources/vim-9.1.1071'
>>> cat: vim-test.log: No such file or directory
>>>
>>> Here is the relevant part of lfs-commands/chapter08/871-vim
>>> ...
>>> make
>>> # chown -R tester . >> $TEST_LOG 2>&1 || true
>>> # sed '/test_glvs/d' -i src/testdir/Make_all.mak >> $TEST_LOG 2>&1 || true
>>> # su tester -c "TERM=xterm-256color LANG=en_US.UTF-8 make -k -j1 test" \
>>> #    &> vim-test.log || true
>>> cat vim-test.log >> $TEST_LOG
> 
> So the issue is jhalfs should not insert this command when tests are
> disabled.

Every package gets something in jhalfs/test-logs/.  If tests are not run then it's a 
simple time stamp.  For instance:

$ cat jhalfs/test-logs/870-texinfo-7.2
Mon Feb  3 01:47:54 GMT 2025

If you don't ask for tests, you don't get any results.

If you only want to run tests for selective packages, then do not select "Run Tests" 
but go into jhalfs/lfs-commands/chapter08/<package> and uncomment the test instructions.

For vim, that's the 4 commented lines.  Note that vim-test.log will go away when 
jhalfs deletes the source directory at the end of the scriptlet.

I've been doing this for literally years.

   -- Bruce

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page