vivado_test.xml 3.89 KB
Newer Older
1 2 3 4
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
 /*******************************************************************************
 * Copyright (c) 2014 Elphel, Inc.
5 6
 * This file is a part of VDT plug-in.
 * VDT plug-in is free software; you can redistribute it and/or modify
7 8 9 10
 * 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.
 *
11
 * VDT plug-in is distributed in the hope that it will be useful,
12 13 14 15 16 17
 * 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/>.
Andrey Filippov's avatar
Andrey Filippov committed
18 19 20 21 22 23 24 25 26
 * 
 *  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.}
27 28 29
 *******************************************************************************/
 -->
<vdt-project>
30 31 32 33 34 35 36 37 38 39 40 41 42 43
	<tool name="VivadoTest" label="VivadoCommand"
	    project="FPGA_project"
		interface="VivadoInterface"
		package="FPGA_package"
		shell="/bin/bash"
		ignore="%VivadoIgnoreSource"
		description="Sending command to a remote Vivado 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>
44
			<action label="Vivado Command" resource="" icon="vivado_logo.png" />
45 46 47 48 49 50 51 52 53
		</action-menu>

		<parameter id="TCLCommand" label="Remote TCL Command to send"
			type="Stringlist" format="ProgramSyntax" default="puts &quot;Hello, World!&quot;"
			readonly="false" visible="true" />
			
	   <parameter id="Timeout" label="Script timeout(sec)" type="Cardinal"
			format="CopyValue" default="10" readonly="false" visible="true" />
<!-- hidden (calculated) parameters -->			
54 55 56 57
<!--    <parameter id="FilteredSourceList" type="Stringlist"
			format="FilteredSourceListSyntax" default="" readonly="true" visible="false" />  -->
		<parameter id="FilteredSourceListPar" type="Filelist"
			format="ParamListSyntax" default="%%FilteredSourceList" readonly="true" visible="false" />
58 59 60 61 62 63 64 65 66 67 68 69 70
			
		<input>
			<group name="General">
				"TCLCommand"
				"Timeout"
			</group>
		</input>

		<output>
			<line name="pre_tcl">
				"-c"
				"echo 'scp files here' ;"
				"echo '"
71
				"%FilteredSourceListPar"
72 73 74 75 76 77 78 79 80 81 82 83
				"' ;"
				"sleep 2 ;"
			</line>
<!-- TODO: Make it OK to ose just strings, not parameters in dest (for console names) -->			
			<line name="vivado_line_01"
			      dest="VivadoConsole"
			      mark="``" 
			      sep="\n"
			      prompt="@@FINISH@@" 
			      stdout="parser_001"
			      timeout="Timeout">
				"%TCLCommand"
84
				"puts \"@@FINISH@@\"\n"
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
				"``"`" <!-- two new lines should generate a pair of prompts from the remote -->
			</line>
			<line name="command_line_02">
				"-c"
				"echo 'Will scp result files back here' ;"
				"sleep 2 ;"
			</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"
				"cat"
			</line>
		</output>
	</tool>
</vdt-project>