check_bins
Definition
check_bins($bins)
test_it.php, line 168
Description
Checks if all files in array are where they are supposed to be. If not terminates testing with a proper msg
Parameters
$bins array where value is path to the file
Code
<?php
function check_bins($bins) {
$not_found = array();
foreach ($bins as $key => $value) {
if (!file_exists($value)) {
$not_found[] = $value;
}
}
if (count($not_found) != 0) {
exit("Following binaries were not found in their paths: " . implode(",",$not_found) . "\n");
}
}
?> 