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
59
59
popd
60
60
61
61
pushd many_examples
62
- " $fpm " build
62
+
63
63
" $fpm " run --example --all
64
64
test -e demo1.txt
65
65
test -e demo2.txt
66
66
popd
67
67
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
+
68
92
pushd auto_discovery_off
69
93
" $fpm " build
70
94
" $fpm " run --target auto_discovery_off
You can’t perform that action at this time.
0 commit comments