function usage_echo()
{
echo "Usage:"
- echo " ./execute [PROFILE]"
+ echo " ./execute.sh [PROFILE]"
echo ""
echo "Choice of the profile below :"
echo "(example : ./execute mobile)"
echo "mobile Mobile Profile"
echo "wear Wearable Profile"
echo "tv TV Profile"
+ echo ""
+ echo "Usage 2:"
+ echo " ./execute.sh [PROFILE] [Module1] [Module2] ..."
+ echo ""
+ echo "Choice specific modules which you want to run test :"
+ echo ""
+ echo "ECORE EDJE EET EINA"
+ echo "EIO ELDBUS ELEMENTARY EVAS"
+ echo ""
+ echo "e.g) ./execute.sh mobile ECORE EDJE"
}
env | grep "XDG_RUNTIME_DIR" >/dev/null
then
continue;
else
- temp_line=$line
- echo ${temp_line:1};
- echo ${temp_line:1} >> $FileLibsScen
+ if [ "$2" == "" ]
+ then
+ temp_line=$line
+ echo ${temp_line:1};
+ echo ${temp_line:1} >> $FileLibsScen
+ else # If second param exist
+ # Add only specific modules to execution list file ($FileLibsScen)
+ for params in "${@:2}"
+ do
+ if [ "^$params-$1" == $line ]
+ then
+ temp_line=$line
+ echo ${temp_line:1};
+ echo ${temp_line:1} >> $FileLibsScen
+ continue;
+ fi
+ done
+ fi
fi
fi
done < $filename