bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* gnulib-tool return codes
@ 2020-03-28 22:50 Jeffrey Walton
  2020-03-29 11:38 ` Bruno Haible
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Walton @ 2020-03-28 22:50 UTC (permalink / raw)
  To: bug-gnulib

Hi Everyone,

I noticed arpa_inet-c++ tested OK
(https://travis-ci.org/github/noloader/gnulib/jobs/668196404):

****************************************
arpa_inet-c++
****************************************
Tested arpa_inet-c++ OK

But (I'm not sure what was tested):

****************************************
arpa_inet-c++
****************************************
./gnulib-tool: *** file
/home/travis/build/noloader/gnulib/./modules/arpa_inet-c++ not found
./gnulib-tool: *** Stop.
gnulib-tool: warning: module arpa_inet-c++ lacks a License
./gnulib-tool: *** file
/home/travis/build/noloader/gnulib/./modules/arpa_inet-c++ not found
./gnulib-tool: *** Stop.
gnulib-tool: warning: module arpa_inet-c++ doesn't exist
gnulib-tool: warning: module arpa_inet-c++ doesn't exist
configure.ac:8: installing 'build-aux/compile'
configure.ac:4: installing 'build-aux/install-sh'
configure.ac:4: installing 'build-aux/missing'
...

The script is picking up arpa_inet-c++ because it does a find looking
for a filename <module>-tests. In this case arpa_inet-c++-tests is
found.

The test script does check return values
(https://github.com/noloader/gnulib/blob/master/ci_tests/test_modules.sh):

if ! ./gnulib-tool --create-testdir --dir="$test_dir/$module"
"$module" 1>/dev/null;
then
    echo "Failed to prepare $module" | tee -a "$result_file"
    failed_tests=$((failed_tests+1))
fi

I'm guessing gnulib-tool does not return an error?

Jeff


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

* Re: gnulib-tool return codes
  2020-03-28 22:50 gnulib-tool return codes Jeffrey Walton
@ 2020-03-29 11:38 ` Bruno Haible
  0 siblings, 0 replies; 2+ messages in thread
From: Bruno Haible @ 2020-03-29 11:38 UTC (permalink / raw)
  To: bug-gnulib, noloader

Hi Jeffrey,

> I noticed arpa_inet-c++ tested OK

There's no module named 'arpa_inet-c++':
  - There's no file modules/arpa_inet-c++ ,
  - './gnulib-tool --list' does not mention it.

> The script is picking up arpa_inet-c++ because it does a find looking
> for a filename <module>-tests.

It should also check whether the file modules/<module> exists.

> I'm guessing gnulib-tool does not return an error?

Invalid module names produce a diagnostic, but gnulib-tool then proceeds,
ignoring it.

Bruno



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

end of thread, other threads:[~2020-03-29 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28 22:50 gnulib-tool return codes Jeffrey Walton
2020-03-29 11:38 ` Bruno Haible

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 read-only IMAP folder(s) and NNTP newsgroup(s).