Skip to content

Commit 024fe94

Browse files
committed
add test
1 parent 37dae0d commit 024fe94

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

ci/run_tests.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ test ! -x ./build/gfortran_*/app/unused
7373
test ! -x ./build/gfortran_*/test/unused_test
7474
popd
7575

76+
pushd auto_with_nondefault_main
77+
"$fpm" build
78+
"$fpm" install --prefix=./installed
79+
test -x ./installed/bin/non_default_name
80+
popd
81+
7682
pushd tree_shake
7783
"$fpm" build
7884
"$fpm" run
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/*
2+
installed/*
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# auto_with_nondefault_main
2+
Install auto-executable with non-default source name
3+
fpm install --prefix=/path/to/install
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
program main
2+
print *, 'hello, world!'
3+
end program main
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name = "auto_with_nondefault_main"
2+
[build]
3+
auto-executables = true
4+
[library]
5+

0 commit comments

Comments
 (0)