From 7435705a4c0fc6fd6b5106b20254d7b751114718 Mon Sep 17 00:00:00 2001
From: Giovanni Bussi <giovanni.bussi@gmail.com>
Date: Mon, 4 Jul 2016 19:19:27 +0200
Subject: [PATCH] In regtests, use "plumed config" to detect features

This automatically includes all HAS flags.
---
 regtest/scripts/run | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/regtest/scripts/run b/regtest/scripts/run
index 897782e90..4d92f722e 100755
--- a/regtest/scripts/run
+++ b/regtest/scripts/run
@@ -62,7 +62,7 @@ cd -
 if ((mpiprocs>0)); then
 mpi="${PLUMED_MPIRUN:-mpirun} -np $mpiprocs"
 
-if ! plumed --has-mpi
+if ! plumed config -q has mpi
 then
   echo "NOT_APPLIABLE (MPI NOT INSTALLED)"
   exit 0;
@@ -83,7 +83,7 @@ fi
 for need in $plumed_needs
 do
   echo "Checking for $need"
-  if ! $plumed --has-$need
+  if ! $plumed config -q has $need
   then
     echo "NOT_APPLIABLE ($need NOT INSTALLED)"
     exit 0;
-- 
GitLab