Skip to content
Snippets Groups Projects
Commit 7c04025c authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

These modules should not be compulsory

plumed core can be compiled without these.

With this change it is necessary to solve a but in the script building the
list of modules to be tested. I took the occasion to simplify it.
Now, all the optional modules are checked, but if a directory is
not present in regtest/ that module is ignored.
parent 5636aff3
No related branches found
No related tags found
No related merge requests found
......@@ -6,41 +6,13 @@ do
if [ "$(cat "$dir/module.type")" == always ] ; then
continue
fi
#Check not colvar
if `echo $dir | grep colvar | grep -v multi 1>/dev/null 2>& 1` ; then
continue
fi
# Check not vatom
if `echo $dir | grep vatom 1>/dev/null 2>& 1` ; then
continue
fi
# Check not cltools
if `echo $dir | grep cltools 1>/dev/null 2>& 1` ; then
continue
fi
# Check not vesselbase
if `echo $dir | grep vesselbase 1>/dev/null 2>& 1` ; then
continue
fi
# Check not function
if `echo $dir | grep function 1>/dev/null 2>& 1` ; then
continue
fi
# Check not bias
if `echo $dir | grep bias 1>/dev/null 2>& 1` ; then
continue
fi
# Check not generic
if `echo $dir | grep setup 1>/dev/null 2>& 1` ; then
continue
fi
# Check not setup
if `echo $dir | grep generic 1>/dev/null 2>& 1` ; then
continue
short="$(echo $dir | sed -e 's/..\/src\///g')"
if ! test -d $short ; then
continue
fi
case "$(cat "$dir/module.type")" in
(default-on) test -f $dir.off || echo $dir | sed -e 's/..\/src\///g';;
(default-off) test -f $dir.on && echo $dir | sed -e 's/..\/src\///g';;
(default-on) test -f $dir.off || echo $short ;;
(default-off) test -f $dir.on && echo $short ;;
esac
# echo `echo $dir | sed -e 's/..\/src\///g'`
......
always
default-on
always
default-on
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment