Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace sh by bash for reg_wrapper.sh and fix test for working gnuplot #753

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

stweil
Copy link
Collaborator

@stweil stweil commented Oct 12, 2024

Some older versions of /bin/sh don't work.
This was noticed in a test on Solaris 11.4 (SPARC) with sh (AT&T Research) 93u+ 2012-08-01.

Instead of using /bin/bash the script now finds bash with /usr/bin/env, so it will use the latest bash on systems like macOS.

Fix also the test for a working gnuplot.

gnuplot -e "set terminal png" does not return an error if the command fails, but prints an error message.

So instead of checking for an error the test now checks for a non-empty output.

This fixes make check on hosts with a gnuplot which does not support set terminal png.

Some older versions of /bin/sh don't work. This was noticed in a test
on Solaris 11.4 (SPARC) with sh (AT&T Research) 93u+ 2012-08-01.

Instead of using /bin/bash the script now finds bash with /usr/bin/env,
so it will use the latest bash on systems like macOS.

Signed-off-by: Stefan Weil <[email protected]>
`gnuplot -e "set terminal png"` does not return an error if the
command fails, but prints an error message.

So instead of checking for an error the test now checks for a
non-empty output.

This fixes `make check` on hosts with a gnuplot which does not
support `set terminal png`.

Signed-off-by: Stefan Weil <[email protected]>
@stweil stweil changed the title Replace sh by bash for reg_wrapper.sh Replace sh by bash for reg_wrapper.sh and fix test for working gnuplot Oct 12, 2024
@DanBloomberg
Copy link
Owner

Nice!!
A gnuplot version that doesn't support a png terminal has got to be from the early part of the century :-)

I'm signing off. Feel free to push to head when the tests complete.

@stweil
Copy link
Collaborator Author

stweil commented Oct 12, 2024

A gnuplot version that doesn't support a png terminal has got to be from the early part of the century :-)

It's the very latest gnuplot code, but compiled on Solaris without libpng.

@stweil stweil merged commit fa3992f into DanBloomberg:master Oct 12, 2024
9 checks passed
@stweil stweil deleted the reg_wrapper branch October 12, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants