Skip to content

Commit f6eed99

Browse files
committed
Only test changing directories for one package
1 parent 5855337 commit f6eed99

File tree

1 file changed

+76
-61
lines changed

1 file changed

+76
-61
lines changed

ci/run_tests.sh

Lines changed: 76 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -16,67 +16,82 @@ rm -rf ./*/build
1616
dir=hello_world
1717
"$fpm" -C $dir build
1818
"$fpm" -C $dir run --target hello_world
19-
"$fpm" -C $dir run
20-
21-
dir=hello_fpm
22-
"$fpm" -C $dir build
23-
"$fpm" -C $dir run --target hello_fpm
24-
25-
dir=circular_test
26-
"$fpm" -C $dir build
27-
28-
dir=circular_example
29-
"$fpm" -C $dir build
30-
31-
dir=hello_complex
32-
"$fpm" -C $dir build
33-
"$fpm" -C $dir test
34-
"$fpm" -C $dir run --target say_Hello
35-
"$fpm" -C $dir run --target say_goodbye
36-
"$fpm" -C $dir test --target greet_test
37-
"$fpm" -C $dir test --target farewell_test
38-
39-
dir=hello_complex_2
40-
"$fpm" -C $dir build
41-
"$fpm" -C $dir run --target say_hello_world
42-
"$fpm" -C $dir run --target say_goodbye
43-
"$fpm" -C $dir test --target greet_test
44-
"$fpm" -C $dir test --target farewell_test
45-
46-
dir=with_examples
47-
"$fpm" -C $dir build
48-
"$fpm" -C $dir run --example --target demo-prog
49-
"$fpm" -C $dir run --target demo-prog
50-
51-
dir=auto_discovery_off
52-
"$fpm" -C $dir build
53-
"$fpm" -C $dir run --target auto_discovery_off
54-
"$fpm" -C $dir test --target my_test
55-
test ! -x $dir/build/gfortran_*/app/unused
56-
test ! -x $dir/build/gfortran_*/test/unused_test
57-
58-
dir=with_c
59-
"$fpm" -C $dir build
60-
"$fpm" -C $dir run --target with_c
61-
62-
"$fpm" -C $dir build
63-
64-
dir=program_with_module
65-
"$fpm" -C $dir build
66-
"$fpm" -C $dir run --target Program_with_module
67-
68-
dir=link_executable
69-
"$fpm" -C $dir build
70-
"$fpm" -C $dir run --target gomp_test
71-
72-
dir=fortran_includes
73-
"$fpm" -C $dir build
74-
75-
dir=c_includes
76-
"$fpm" -C $dir build
77-
78-
dir=c_header_only
79-
"$fpm" -C $dir build
19+
"$fpm" -C $dir/app run
20+
21+
pushd hello_fpm
22+
"$fpm" build
23+
"$fpm" run --target hello_fpm
24+
popd
25+
26+
pushd circular_test
27+
"$fpm" build
28+
popd
29+
30+
pushd circular_example
31+
"$fpm" build
32+
popd
33+
34+
pushd hello_complex
35+
"$fpm" build
36+
"$fpm" test
37+
"$fpm" run --target say_Hello
38+
"$fpm" run --target say_goodbye
39+
"$fpm" test --target greet_test
40+
"$fpm" test --target farewell_test
41+
popd
42+
43+
pushd hello_complex_2
44+
"$fpm" build
45+
"$fpm" run --target say_hello_world
46+
"$fpm" run --target say_goodbye
47+
"$fpm" test --target greet_test
48+
"$fpm" test --target farewell_test
49+
popd
50+
51+
pushd with_examples
52+
"$fpm" build
53+
"$fpm" run --example --target demo-prog
54+
"$fpm" run --target demo-prog
55+
popd
56+
57+
pushd auto_discovery_off
58+
"$fpm" build
59+
"$fpm" run --target auto_discovery_off
60+
"$fpm" test --target my_test
61+
test ! -x ./build/gfortran_*/app/unused
62+
test ! -x ./build/gfortran_*/test/unused_test
63+
popd
64+
65+
pushd with_c
66+
"$fpm" build
67+
"$fpm" run --target with_c
68+
popd
69+
70+
pushd submodules
71+
"$fpm" build
72+
popd
73+
74+
pushd program_with_module
75+
"$fpm" build
76+
"$fpm" run --target Program_with_module
77+
popd
78+
79+
pushd link_executable
80+
"$fpm" build
81+
"$fpm" run --target gomp_test
82+
popd
83+
84+
pushd fortran_includes
85+
"$fpm" build
86+
popd
87+
88+
pushd c_includes
89+
"$fpm" build
90+
popd
91+
92+
pushd c_header_only
93+
"$fpm" build
94+
popd
8095

8196
# Cleanup
8297
rm -rf ./*/build

0 commit comments

Comments
 (0)