blob: a31fa1892aa46f039a2aec465bb00f40c30ffeef (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#!/bin/bash
set -ex
cd "$(dirname $0)/.."
if [ "$1" ]; then
fpm="$1"
else
fpm=fpm
fi
# Build example packages
pushd example_packages/
rm -rf ./*/build
dir=hello_world
"$fpm" -C $dir build
"$fpm" -C $dir run --target hello_world
"$fpm" -C $dir run
dir=hello_fpm
"$fpm" -C $dir build
"$fpm" -C $dir run --target hello_fpm
dir=circular_test
"$fpm" -C $dir build
dir=circular_example
"$fpm" -C $dir build
dir=hello_complex
"$fpm" -C $dir build
"$fpm" -C $dir test
"$fpm" -C $dir run --target say_Hello
"$fpm" -C $dir run --target say_goodbye
"$fpm" -C $dir test --target greet_test
"$fpm" -C $dir test --target farewell_test
dir=hello_complex_2
"$fpm" -C $dir build
"$fpm" -C $dir run --target say_hello_world
"$fpm" -C $dir run --target say_goodbye
"$fpm" -C $dir test --target greet_test
"$fpm" -C $dir test --target farewell_test
dir=with_examples
"$fpm" -C $dir build
"$fpm" -C $dir run --example --target demo-prog
"$fpm" -C $dir run --target demo-prog
dir=auto_discovery_off
"$fpm" -C $dir build
"$fpm" -C $dir run --target auto_discovery_off
"$fpm" -C $dir test --target my_test
test ! -x $dir/build/gfortran_*/app/unused
test ! -x $dir/build/gfortran_*/test/unused_test
dir=with_c
"$fpm" -C $dir build
"$fpm" -C $dir run --target with_c
"$fpm" -C $dir build
dir=program_with_module
"$fpm" -C $dir build
"$fpm" -C $dir run --target Program_with_module
dir=link_executable
"$fpm" -C $dir build
"$fpm" -C $dir run --target gomp_test
dir=fortran_includes
"$fpm" -C $dir build
dir=c_includes
"$fpm" -C $dir build
dir=c_header_only
"$fpm" -C $dir build
# Cleanup
rm -rf ./*/build
|