+TESTDIR=$(dirname $0)
+
+source $TESTDIR/utils.sh
+
+## NO Session daemon ##
+for bin in ${test_no_sessiond[@]};
+do
+ if [ ! -e $bin ]; then
+ echo -e "$bin not found, passing"
+ continue
+ fi
+
+ ./$bin
+ # Test must return 0 to pass.
+ if [ $? -ne 0 ]; then
+ echo -e '\e[1;31mFAIL\e[0m'
+ echo ""
+ exit 1
+ fi
+done
+
+# With session daemon
+start_sessiond
+out=$?
+if [ $out -eq 2 ]; then
+ # Kernel version is not compatible.
+ exit 0
+elif [ $out -ne 0 ]; then
+ echo "NOT bad $?"
+ exit 1
+fi
+
+for bin in ${test_with_sessiond[@]};