zsh-workers
 help / color / mirror / code / Atom feed
* test suite failure when testing statically linked build
@ 2013-05-10 22:10 Axel Beckert
  2013-05-12 18:01 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Beckert @ 2013-05-10 22:10 UTC (permalink / raw)
  To: zsh-workers

Hi,

if I enable the test-suite in the Debian package of zsh 5.0.2 after
the statically linked variant has been built, I get the following test
suite failure:

DH_VERBOSE=1 HOME="/home/abe/zsh/zsh/obj/testhome" dh_auto_test -B obj-static --parallel
        cd obj-static
        make -j2 test
make[1]: Entering directory `/home/abe/zsh/zsh/obj-static'
cd Test ; make check
make[2]: Entering directory `/home/abe/zsh/zsh/obj-static/Test'
if test -n ""; then \
          cd .. && DESTDIR= \
          make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
        fi
if ZTST_testlist="`for f in ../../Test/*.ztst; \
           do echo $f; done`" \
         ZTST_srcdir="../../Test" \
         ZTST_exe=../Src/zsh \
         ../Src/zsh +Z -f ../../Test/runtests.zsh; then \
         stat=0; \
        else \
         stat=1; \
        fi; \
        sleep 1; \
        rm -rf Modules .zcompdump; \
        exit $stat
../../Test/A01grammar.ztst: starting.
[...]
../../Test/C02cond.ztst: starting.
Test ../../Test/C02cond.ztst failed: bad status 1, expected 0 from:
  if (( EUID == 0 )); then
    print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]] (root reads anything)'
    [[ -r zerolength && -r unmodish ]]
  elif [[ $OSTYPE = cygwin ]]; then
    print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]]
   (all files created by user may be readable)'
   [[ -r zerolength ]]
  else
    [[ -r zerolength && ! -r unmodish ]]
  fi
Was testing: -r cond
../../Test/C02cond.ztst: test failed.
[...]
34 successful test scripts, 1 failure, 5 skipped

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@deuxchevaux.org  (Mail)
 X   See http://www.asciiribbon.org/              | abe@noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: test suite failure when testing statically linked build
  2013-05-10 22:10 test suite failure when testing statically linked build Axel Beckert
@ 2013-05-12 18:01 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2013-05-12 18:01 UTC (permalink / raw)
  To: zsh-workers

On Sat, 11 May 2013 00:10:06 +0200
Axel Beckert <abe@deuxchevaux.org> wrote:
> if I enable the test-suite in the Debian package of zsh 5.0.2 after
> the statically linked variant has been built, I get the following test
> suite failure:
>...
> ../../Test/C02cond.ztst: starting.
> Test ../../Test/C02cond.ztst failed: bad status 1, expected 0 from:
>   if (( EUID == 0 )); then
>     print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]] (root reads anything)'
>     [[ -r zerolength && -r unmodish ]]
>   elif [[ $OSTYPE = cygwin ]]; then
>     print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]]
>    (all files created by user may be readable)'
>    [[ -r zerolength ]]
>   else
>     [[ -r zerolength && ! -r unmodish ]]
>   fi
> Was testing: -r cond
> ../../Test/C02cond.ztst: test failed.

Hmmm... it's certainly true that compiling with --disable-dynamic
doesn't get much love and attention, but, when I did it here, the test
suite skipped a few test for things that weren't compiled in but didn't
fail on anything.  There may be some other subtle effect I'm not seeing.

(I can see a few things that probably ought to be linked by default in
this case, such as the regex library since that's used as part of the
shell syntax, but I deliberately kept with the defaults so that isn't
the problem here.)

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-12 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-10 22:10 test suite failure when testing statically linked build Axel Beckert
2013-05-12 18:01 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).