]> git.gag.com Git - fw/openocd/blobdiff - tcl/target/test_reset_syntax_error.cfg
Move TCL script files -- Step 2 of 2:
[fw/openocd] / tcl / target / test_reset_syntax_error.cfg
diff --git a/tcl/target/test_reset_syntax_error.cfg b/tcl/target/test_reset_syntax_error.cfg
new file mode 100644 (file)
index 0000000..e573c1c
--- /dev/null
@@ -0,0 +1,17 @@
+# Test script to check that syntax error in reset
+# script is reported properly.
+
+# at91eb40a target
+
+#jtag scan chain
+set _CHIPNAME syntaxtest
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf 
+
+#target configuration
+set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
+target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
+
+$_TARGETNAME configure -event reset-init { 
+
+       syntax error
+}