summaryrefslogtreecommitdiff
path: root/tests/unit/jpl/test_jpl_setup.f90
blob: d640f7783e69833dd0db5a8486be498df61b090f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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