Le 24/04/2012 11:00, Matthew Burgess a écrit :
>
> 1) sudo chmod a=rx,u+s /tools/bin/su in chapter 5 coreutils
> 2) Dropped the getlogin.c sed from chapter 6 coreutils
>
> The test still fails. It appears to be because of the way that jhalfs is
> setting things
> up. The test assumes you will have a tty but as I'm running the tests under
> jhalfs
> that isn't the case. Now, what I don't understand is what makes jhalfs lose
> the tty?
>
> If anyone can tell me how to reproduce it's invocation of chapter 6 coreutils
> test suite
> I'd appreciate it. I've tried through a Makefile, a shell script, and a
> shell script
> invoked by a Makefile, and each time it seems to pass the isatty() test.
>
Not much time until tonight. The reason could be that there are 2 levels
of redirection for tests :
first, the whole build is redirected to logs/<three digits>-<package name>.
Then the test is itself redirected to test-logs.
so the scheme is :
------
in Makefile :
target :
bash script.sh > logs/something 2>&1
--------
in script.sh :
set -e
./configure && make
make check > testlogs/something 2>&1 # actually, testlogs/something is
itself in the envar TEST_LOG,
#which is set in the Makefile
----------
and the first make is itself called from the jhalfs script (with no
redirection)
Do not know if it helps
Regards
Pierre
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page