Commit 9466780e authored by Andrey Filippov's avatar Andrey Filippov
Browse files

removed demo tools

parent 0ecf21d0
Loading
Loading
Loading
Loading

tools/SimpleSamples/Remote.xml

deleted100644 → 0
+0 −193
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
 /*******************************************************************************
 * Copyright (c) 2014 Elphel, Inc.
 * This file is a part of VDT plug-in.
 * VDT plug-in is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * VDT plug-in is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 *  Additional permission under GNU GPL version 3 section 7:
 * If you modify this Program, or any covered work, by linking or combining it
 * with Eclipse or Eclipse plugins (or a modified version of those libraries),
 * containing parts covered by the terms of EPL/CPL, the licensors of this
 * Program grant you additional permission to convey the resulting work.
 * {Corresponding Source for a non-source form of such a combination shall
 * include the source code for the parts of Eclipse or Eclipse plugins used
 * as well as that of the covered work.}
 *******************************************************************************/
 -->
<vdt-project>
	<interface name="RemoteInterface" extends="FPGAPprojectInterface">
<!-- 		<syntax name="ProgramSyntax" format="%(%%ParamValue%|\n%)" />  -->
	</interface>
	<tool name="RemotePython" project="FPGA_project" label="RemotePython"
	    package="FPGA_package"
		shell="/bin/bash" interface="RemoteInterface" description="Launching remote Python in console"
		errors="(.*):([0-9]+): [a-z ]*error: (.*)" warnings="(.*):([0-9]+): warning: (.*)"
		info="(.*):([0-9]+): info: (.*)"> <!--does not actually exist -->
		<extensions-list>
			<extension mask="v" />
			<extension mask="tf" />
		</extensions-list>

		<action-menu>
			<action label="Remote Python" resource="" icon="python.png" />
		</action-menu>

		<parameter id="RemoteHost" label="Remote Host IP" type="String"
			format="CopyValue" default="192.168.0.66" readonly="false" visible="true" />


		<parameter id="RemoteUser" label="Remote user name" type="String"
			format="CopyValue" default="" readonly="false" visible="true" />

		<parameter id="PreSSH" label="pre-ssh shell parameters"
			type="String" format="CopyValue" default="" readonly="false" visible="true" />

		<parameter id="ShellSwitches" label="Shell switches" type="String"
			format="CopyValue" default="-c" readonly="false" visible="true" />

		<parameter id="TerminalMode" type="BoolYesNo" format="None"
			default="false" label="Force terminal mode for remote program" />

		<parameter id="SSHSwitches" label="Other ssh switches"
			type="String" format="CopyValue" default="" readonly="false" visible="true" />

		<parameter id="RemoteCommand" label="Remote ssh command"
			type="String" format="CopyValue" default="python -i -u" readonly="false"
			visible="true" />

		<parameter id="SSHExtra" label="ssh extra parameters" type="String"
			format="CopyValue" default="" readonly="false" visible="true" />
			
		<parameter id="PythonConsole" default="RemotePython" type="String" format="CopyValue" visible="false"/>
			

		<input>
			<group name="General">
				"RemoteHost"
				"RemoteUser"
				"TerminalMode"
				"ShellSwitches"
				"PreSSH"
				"SSHSwitches"
				"RemoteCommand"
				"SSHExtra"
			</group>
		</input>

		<output>
			<line name="command_line"
			      timeout="1"
				  keep-open= "true">
				"%ShellSwitches"
				"%PreSSH"
				"ssh"
				<if TerminalMode = "true">
				  "-t -t"
				</if>
				"%SSHSwitches"
				"-l"
				"%RemoteUser"
				"%RemoteHost"
				"'"
				"%RemoteCommand"
				"'"
				"%SSHExtra"
			</line>
			<line name="python_check"
			      dest="PythonConsole"
			      mark="``" 
			      sep=""
			      success="FINISH"
			      prompt="@@FINISH@@">
				  "print (\"********\")\n"
				  "print (\"@@FINISH@@\")\n\n"
			</line>
			
		</output>
	</tool>
	<tool name="RemotePythonCommand" project="FPGA_project" label="RemotePythonCommand"
	    package="FPGA_package"
		shell="bash" interface="RemoteInterface"
		description="Sending command to a ermote Python session" errors="(.*):([0-9]+): [a-z ]*error: (.*)"
		warnings="(.*):([0-9]+): warning: (.*)" info="(.*):([0-9]+): info: (.*)"> <!--does not actually exist -->
		<extensions-list>
			<extension mask="v" />
			<extension mask="tf" />
		</extensions-list>

		<action-menu>
			<action label="Remote Python Command" resource="" icon="python.png" />
		</action-menu>

		<parameter id="RemoteCommand" label="Remote Command to send"
			type="Stringlist" format="ProgramSyntax" default="print &quot;Hello, World!, 2*2=&quot;,2*2"
			readonly="false" visible="true" />

		<parameter id="python_console_name" default="RemotePython"
			type="String" format="CopyValue" visible="false" />
			
			
	   <parameter id="Timeout" label="Script timeout(sec)" type="Cardinal"
			format="CopyValue" default="10" readonly="false" visible="true" />
			

		<input>
			<group name="General">
				"RemoteCommand"
				"Timeout"
			</group>
		</input>

		<output>
			<line name="command_line_01">
				"-c"
				"echo 'Nothing to do, sleeping 5' ;"
				"sleep 5 ;"
				"echo 'Nothing to do, awakening' ;"
			</line>
			<!--  prompt: recognizer should trim spaces too -->
			<!--  stdout - both with stderr, stderr only ..., both to the same - to separate console instances -->
			<line name="console_line_01"
			      dest="python_console_name"
			      mark="``" 
			      sep="\n"
			      prompt="@@FINISH@@" 
			      stdout="parser_001"
			      success="FINISH"
			      timeout="Timeout">
				"%RemoteCommand"
				"print  '@@FINISH@@'"
				"``"`" <!-- two new lines should generate a pair of prompts from the remote -->
			</line>
			<line name="command_line_02">
				"-c"
				"echo 'Nothing to do second time, sleeping 10' ;"
				"sleep 10 ;"
				"echo 'Nothing to do again, awakening after sleep 10' ;"
			</line>
<!-- parser_01 being referenced should be launched in an asynchronous process/console, removed from the launch sequence -->
			<line name="parser_001"
			    errors="(.*):([0-9]+): [a-z ]*error: (.*)"
				warnings="(.*):([0-9]+): warning: (.*)"
				info="(.*):([0-9]+): info: (.*)">
				"-c"
				"grep --line-buffered 'End'"
			</line>

		</output>

	</tool>
</vdt-project>
<!--   /opt/Xilinx/Vivado/2013.4/bin/vivado -mode tcl -->
 No newline at end of file

tools/SimpleSamples/Tools.xml

deleted100644 → 0
+0 −538

File deleted.

Preview size limit exceeded, changes collapsed.

tools/SimpleSamples/grep.xml

deleted100644 → 0
+0 −255
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
 /*******************************************************************************
 * Copyright (c) 2014 Elphel, Inc.
 * This file is a part of VDT plug-in.
 * VDT plug-in is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * VDT plug-in is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 *  Additional permission under GNU GPL version 3 section 7:
 * If you modify this Program, or any covered work, by linking or combining it
 * with Eclipse or Eclipse plugins (or a modified version of those libraries),
 * containing parts covered by the terms of EPL/CPL, the licensors of this
 * Program grant you additional permission to convey the resulting work.
 * {Corresponding Source for a non-source form of such a combination shall
 * include the source code for the parts of Eclipse or Eclipse plugins used
 * as well as that of the covered work.}
 *******************************************************************************/
 -->
<vdt-project>
  <interface name = "GREPInterface">
    <typedef name = "PatternTypeType">
        <paramtype kind = "enum" base = "String">
            <item label = "Fixed"           value = "fixed-strings"/>
            <item label = "Basic regexp"    value = "basic-regexp"/>
            <item label = "Extended regexp" value = "extended-regexp"/>
        </paramtype>
    </typedef>

    <typedef name = "BinaryFilesType">
        <paramtype kind = "enum" base = "String">
            <item label = "Text"     value = "text"/>
            <item label = "Binary"   value = "binary"/>
            <item label = "No match" value = "without-match"/>
        </paramtype>
    </typedef>

    <typedef name = "DirsType">
        <paramtype kind = "enum" base = "String">
            <item label = "Read"    value = "read"/>
            <item label = "Recurse" value = "recurse"/>
            <item label = "Skip"    value = "skip"/>
        </paramtype>
    </typedef>
    
    <typedef name = "OutputOnlyType">
        <paramtype kind = "enum" base = "String">
            <item label = "Matched lines"     value = ""/>
            <item label = "Matched files"     value = "files-with-match"/>
            <item label = "Non-matched files" value = "files-without-matches"/>
        </paramtype>
    </typedef>

    <typedef name = "PrintFilenameType">
      <paramtype kind="bool" 
                 formatTrue="with-filename"
                 formatFalse="no-filename" />
    </typedef>
        
    <syntax name = "EquationParamSyntax"
            format = "--%%ParamName=%%ParamValue"/>

    <syntax name = "BoolParamSyntax"
            format = "--%%ParamName"/>

    <syntax name = "EnumParamSyntax"
            format = "--%%ParamValue"/>

    <syntax name = "InputPatternSyntax"
            format = "'%%ParamValue'"/>
  </interface>

  <tool name        = "grep"
        label       = "GREP tool"
        interface   = "GREPInterface"
        description = "Find a text in source files" exe="grep">

    <parameter id      = "pattern"
               type    = "String"
               format  = "InputPatternSyntax"
               default = ""
               label   = "Pattern to match"/>

    <parameter id      = "pattern_type"
               outid   = "pattern-type"
               type    = "PatternTypeType"
               format  = "EnumParamSyntax"
               default = "fixed-strings"
               omit    = "fixed-strings"
               label   = "Pattern type"/>
               
    <parameter id      = "word_regexp"
               outid   = "word-regexp"
               type    = "BoolOnOff"
               format  = "BoolParamSyntax"
               default = "false"
               omit    = "false"
               label   = "Match only whole words"/>

    <parameter id      = "line_regexp"
               outid   = "line-regexp"
               type    = "BoolOnOff"
               format  = "BoolParamSyntax"
               default = "false"
               omit    = "false"
               label   = "Match only whole lines"/>

    <parameter id      = "ignore_case"
               outid   = "ignore-case"
               type    = "BoolOnOff"
               format  = "BoolParamSyntax"
               default = "false"
               omit    = "false"
               label   = "Ignore case distinctions"/>

    <parameter id      = "invert_match"
               outid   = "invert-match"
               type    = "BoolOnOff"
               format  = "BoolParamSyntax"
               default = "false"
               omit    = "false"
               label   = "Print non-matching lines"/>

    <parameter id      = "no_messages"
               outid   = "no-messages"
               type    = "BoolOnOff"
               format  = "BoolParamSyntax"
               default = "false"
               omit    = "false"
               label   = "Suppress error messages"/>

    <parameter id      = "print_filename"
               type    = "PrintFilenameType"
               format  = "EnumParamSyntax"
               default = "true"
               omit    = "true"
               label   = "Print the filename for each match"/>

    <parameter id      = "binary_files"
               outid   = "binary-files"
               type    = "BinaryFilesType"
               format  = "EquationParamSyntax"
               default = "without-match"
               omit    = "without-match"
               label   = "Binary files type"/>
    
    <parameter id      = "byte_offset"
               outid   = "byte-offset"
               type    = "BoolOnOff"
               format  = "BoolParamSyntax"
               default = "false"
               omit    = "false"
               label   = "Print the byte offset with output lines"/>

    <parameter id      = "line_number"
               outid   = "line-number"
               type    = "BoolOnOff"
               format  = "BoolParamSyntax"
               default = "false"
               omit    = "false"
               label   = "Print line number with output lines"/>

    <parameter id      = "directories"
               type    = "DirsType"
               format  = "EquationParamSyntax"
               default = "recurse"
               omit    = "recurse"
               label   = "Action for handling directories"/>

    <parameter id      = "output_only"
               outid   = "output-only"
               type    = "OutputOnlyType"
               format  = "EquationParamSyntax"
               default = ""
               omit    = ""
               label   = "At the match, print only"/>

    <parameter id      = "count"
               type    = "BoolOnOff"
               format  = "BoolParamSyntax"
               default = "false"
               omit    = "false"
               label   = "Only print a count of matching lines per file"/>

    <parameter id      = "before_context"
               outid   = "before-context"
               type    = "Cardinal"
               format  = "EquationParamSyntax"
               default = "0"
               omit    = "0"
               label   = "Number of lines of leading context to print"/>

    <parameter id      = "after_context"
               outid   = "after-context"
               type    = "Cardinal"
               format  = "EquationParamSyntax"
               default = "0"
               omit    = "0"
               label   = "Number of lines of trailing context to print"/>

    <input label="GREP Preferences">
      <group label="Match">
        "pattern"
        "pattern_type"
        "word_regexp"
        "line_regexp"
        "ignore_case"
        "invert_match"
      </group>
      <group label="Output">
        "no_messages"
        "print_filename"
        "binary_files"
        "byte_offset"
        "line_number"
        "directories"
        "output_only"
        "count"
        "before_context"
        "after_context"
      </group>
    </input>

    <output>
      <line name = "command_line" sep = " ">
        "%pattern_type"
        "%word_regexp"
        "%line_regexp"
        "%ignore_case"
        "%invert_match"
        "%no_messages"
        "%print_filename"
        "%binary_files"
        "%byte_offset"
        "%line_number"
        "%directories"
        "%output_only"
        "%count"
        "%before_context"
        "%after_context"
        "%pattern"
        "%(%%FileList%| %)"
      </line>
    </output>
  </tool>
</vdt-project>