File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,36 @@ pushd with_examples
5959popd
6060
6161pushd many_examples
62- " $fpm " build
62+
6363" $fpm " run --example --all
6464test -e demo1.txt
6565test -e demo2.txt
6666popd
6767
68+ # Test building individual targets
69+ pushd many_targets
70+ cases=( " 1" " 2" " 3" )
71+ targets=( " run" " example" " test" )
72+ cmdrun=( " run --target" " run --example" " test --target" )
73+ for j in {0..2}
74+ do
75+ for i in {0..2}
76+ do
77+ rm -f * .txt
78+ this=${cases[$i]}
79+ others=${cases[@]/ $this }
80+ filename=${targets[$j]} $this
81+ echo " $filename "
82+ " $fpm " ${cmdrun[$j]} $filename
83+ test -e $filename .txt
84+ for k in ${others[@]}
85+ do
86+ test ! -e ${targets[$k]} $k .txt
87+ done
88+ done
89+ done
90+ popd
91+
6892pushd auto_discovery_off
6993" $fpm " build
7094" $fpm " run --target auto_discovery_off
You can’t perform that action at this time.
0 commit comments