diff options
Diffstat (limited to 'tests/unit/jpl/test_jpl_setup.f90')
| -rw-r--r-- | tests/unit/jpl/test_jpl_setup.f90 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/unit/jpl/test_jpl_setup.f90 b/tests/unit/jpl/test_jpl_setup.f90 new file mode 100644 index 00000000..d640f778 --- /dev/null +++ b/tests/unit/jpl/test_jpl_setup.f90 @@ -0,0 +1,18 @@ +program test_jpl_setup + + implicit none + + character*256 fname,jpleph_file_name + common/jplcom/jpleph_file_name + + fname=repeat('x',len(fname)) + call jpl_setup(fname) + if(jpleph_file_name.ne.fname) error stop 1 + + fname='short/path'//char(0) + call jpl_setup(fname) + if(jpleph_file_name.ne.'short/path') error stop 2 + + print*,'JPLEPH path setup test passed' + +end program test_jpl_setup |
