File: test_python_module_0.pro

package info (click to toggle)
gnudatalanguage 0.9.9-13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,892 kB
  • sloc: cpp: 167,389; ansic: 9,358; sh: 566; python: 472; makefile: 252; f90: 28
file content (35 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
; by Sylwester Arabas <slayoo@igf.fuw.edu.pl>
;
; assumes the following sequence of events:
; - ./configure
; - make 
; - ./configure --enable-python_module
; - make
; - make check

pro TEST_PYTHON_MODULE_0, no_exit=no_exit, $
                          help=help, test=test, verbose=verbose
;
if (STRlowCase(!version.os_family) EQ 'windows') then begin
   MESSAGE, /continue, 'Not ready for MSwin, please contribute (!fixme!)'
   EXIT, status=77
endif
;
suffix=''
if STRlowCase(!version.os) eq 'darwin' then suffix='dylib'
if STRlowCase(!version.os) eq 'linux' then suffix='so'
if STRLEN(suffix) EQ 0 then begin
   MESSAGE, /continue, 'Unknow OS, please contribute (!fixme!)'
   EXIT, status=77
endif
;
image = '../src/.libs/libgdl.' +suffix
;
if ~FILE_TEST(image) then begin
   MESSAGE, /continue, image + ' not found'
   EXIT, status=77
endif
;
if ~FILE_TEST('GDL.so') then SPAWN, 'ln -s ' + image + ' GDL.so'
;
end