File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ abstract.bins_search_heuristics() {
71
71
for file in " $BPM_PACKAGES_PATH /$package " /bin/* ; do
72
72
abstract.bins_do_action " $action " " $file " " $remove_extensions "
73
73
done
74
+ elif [ -d " $BPM_PACKAGES_PATH /$package /bins" ]; then
75
+ for file in " $BPM_PACKAGES_PATH /$package " /bins/* ; do
76
+ abstract.bins_do_action " $action " " $file " " $remove_extensions "
77
+ done
74
78
else
75
79
for file in " $BPM_PACKAGES_PATH /$package " /* ; do
76
80
if [ -x " $file " ]; then
Original file line number Diff line number Diff line change @@ -111,6 +111,23 @@ load 'util/init.sh'
111
111
assert [ " $( readlink $BPM_INSTALL_BIN /exec2.sh) " = " $BPM_PACKAGES_PATH /$pkg /bin/exec2.sh" ]
112
112
}
113
113
114
+ @test " adds bins determined with heuristics (bins directory)" {
115
+ local pkg=' username/package'
116
+
117
+ test_util.setup_pkg " $pkg " ; {
118
+ mkdir ' bins'
119
+ touch ' bins/exec1'
120
+ touch ' bins/exec2.sh'
121
+ }; test_util.finish_pkg
122
+ test_util.fake_install " $pkg "
123
+
124
+ run do-plumbing-link-bins " $pkg "
125
+
126
+ assert_success
127
+ assert [ " $( readlink $BPM_INSTALL_BIN /exec1) " = " $BPM_PACKAGES_PATH /$pkg /bins/exec1" ]
128
+ assert [ " $( readlink $BPM_INSTALL_BIN /exec2.sh) " = " $BPM_PACKAGES_PATH /$pkg /bins/exec2.sh" ]
129
+ }
130
+
114
131
@test " adds bins determined with heuristics (root directory)" {
115
132
local pkg=' username/package'
116
133
You can’t perform that action at this time.
0 commit comments