aboutsummaryrefslogtreecommitdiff
path: root/ci/run_tests.sh
blob: 4ba590a17476b86ba0ce71753f97e6d0b351f48f (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash

set -ex

cd fpm
fpm build
fpm run
fpm test
build/gfortran_debug/app/fpm

cd ../example_packages/hello_world
../../fpm/build/gfortran_debug/app/fpm build
./build/gfortran_debug/app/hello_world

cd ../hello_fpm
../../../fpm/build/gfortran_debug/app/fpm build
./build/gfortran_debug/app/hello_fpm

cd ../circular_test
../../../fpm/build/gfortran_debug/app/fpm build

cd ../circular_example
../../../fpm/build/gfortran_debug/app/fpm build

cd ../hello_complex
../../fpm/build/gfortran_debug/app/fpm build
./build/gfortran_debug/app/say_Hello
./build/gfortran_debug/app/say_goodbye
./build/gfortran_debug/test/greet_test
./build/gfortran_debug/test/farewell_test

cd ../hello_complex_2
../../fpm/build/gfortran_debug/app/fpm build
./build/gfortran_debug/app/say_hello_world
./build/gfortran_debug/app/say_goodbye
./build/gfortran_debug/test/greet_test
./build/gfortran_debug/test/farewell_test

cd ../auto_discovery_off
../../fpm/build/gfortran_debug/app/fpm build
./build/gfortran_debug/app/auto_discovery_off
./build/gfortran_debug/test/my_test
test ! -x ./build/gfortran_debug/app/unused
test ! -x ./build/gfortran_debug/test/unused_test

cd ../with_c
../../fpm/build/gfortran_debug/app/fpm build
./build/gfortran_debug/app/with_c

cd ../submodules
../../fpm/build/gfortran_debug/app/fpm build

cd ../program_with_module
../../fpm/build/gfortran_debug/app/fpm build
./build/gfortran_debug/app/Program_with_module