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

Add a simple admin test script to exercise the macOS bundle #6800

Open
PaulWessel opened this issue Jun 17, 2022 · 0 comments
Open

Add a simple admin test script to exercise the macOS bundle #6800

PaulWessel opened this issue Jun 17, 2022 · 0 comments
Assignees
Labels
feature request Request a new feature help wanted We need some help!

Comments

@PaulWessel
Copy link
Member

Description of the desired feature

After building the macOS bundle I usually install it, double-click on the logo and get the terminal set up to use the bundle executables. I then run a few basic commands to ensure that GMT works and that the included tools like ghostscript, gm and ffmpeg works. However, this is of course a bit incomplete. The bin directory also contains gdal_translate and ogr2ogr which I usually do not remember to check. Finally, I have at least once been tricked because my environment has defined GMT_SHAREDIR and gmt uses that instead of the bundle default. So I had to unset that one.

It would be nice to have a script that does the following:

  1. Unsets any GMT_* environment parameters
  2. Applies the one suggested in the GMT bundle splash screen:
    a) export GMTHOME=/Applications/GMT-6.4.0.app/Contents/Resources
    b) prepend $GMTHOME/bin to your path
    c) export PROJ_LIB=$GMTHOME/share/proj
    d) export GS_LIB=$GMTHOME/share/ghostscript/Resource/Init
    e) export MAGICK_CONFIGURE_PATH=$GMTHOME/lib/GraphicsMagick/config
  3. Runs a 1-liner coast command that plots coastlines (GSHHS) and paints a specific contry (DCW) and makes PDF (ghostscript)
  4. Plots a shapefile (e.g. @RidgeTest.shp) to exercise ogr2ogr
  5. Convert a nc file (e.g., @HI_topo_02.nc) to something else (gdal_translate)
  6. Runs the simple spinning globe movie and makes a GIF (gm) and a MP4 (FFmpeg)

The script could be added to the admin folder (e.g., test-bundle.sh)

@PaulWessel PaulWessel added help wanted We need some help! feature request Request a new feature labels Jun 17, 2022
@PaulWessel PaulWessel self-assigned this Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a new feature help wanted We need some help!
Projects
None yet
Development

No branches or pull requests

1 participant