-
Andreas Hamacher authored
Added listdeps, which output a list softwares that depend on the any given module. Added software_usage, which count the number of occurence for each modules in module logging and sort them in desceding order. Added smoke_test, which is the driver for running test cases under smoke_test/tests folder
Andreas Hamacher authoredAdded listdeps, which output a list softwares that depend on the any given module. Added software_usage, which count the number of occurence for each modules in module logging and sort them in desceding order. Added smoke_test, which is the driver for running test cases under smoke_test/tests folder
bintest 391 B
#!/bin/bash
name=$( realpath $0 | xargs dirname | xargs basename )
ver=${1:-"default"}
bin_dirs=$(module show $name/$ver 2>&1 | sed -n "s/.* PATH \(.*\)/\1/p")
NAME_EXEC_EXIST=false
for bin in $bin_dirs; do
for i in $(find $bin -maxdepth 1 -executable -type f ); do
if [[ $(basename $i) == $name ]]; then
$i --version;
exit $?
fi
done
done