summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-14 08:38:36 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-14 08:38:36 +0000
commitba29b4dc6b67f242b316854f2bb0323bdbff85f2 (patch)
tree96908d87a706798dd89d7520ff7a37e36699ccc5 /src/target
parent08058e72d9928441a3c52f2107582bd7d373e0f6 (diff)
downloadopenocd+libswd-ba29b4dc6b67f242b316854f2bb0323bdbff85f2.tar.gz
openocd+libswd-ba29b4dc6b67f242b316854f2bb0323bdbff85f2.tar.bz2
openocd+libswd-ba29b4dc6b67f242b316854f2bb0323bdbff85f2.tar.xz
openocd+libswd-ba29b4dc6b67f242b316854f2bb0323bdbff85f2.zip
testing of syntax error in reset and at startup
git-svn-id: svn://svn.berlios.de/openocd/trunk@1054 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/Makefile.am3
-rw-r--r--src/target/target/test_reset_syntax_error.cfg15
-rw-r--r--src/target/target/test_syntax_error.cfg4
3 files changed, 21 insertions, 1 deletions
diff --git a/src/target/Makefile.am b/src/target/Makefile.am
index 08c02d78..970bc47e 100644
--- a/src/target/Makefile.am
+++ b/src/target/Makefile.am
@@ -39,6 +39,7 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin target/at91eb40a.cfg \
event/hammer_reset.script interface/flyswatter.cfg target/hammer.cfg target/mx31.cfg \
event/str730_program.script event/str750_program.script interface/olimex-jtag-tiny-a.cfg \
target/pic32mx.cfg target/aduc702x.cfg interface/dummy.cfg interface/olimex-arm-usb-ocd.cfg target/s3c2440.cfg \
- interface/openocd-usb.cfg
+ interface/openocd-usb.cfg target/test_syntax_error.cfg target/test_reset_syntax_error.cfg
+
diff --git a/src/target/target/test_reset_syntax_error.cfg b/src/target/target/test_reset_syntax_error.cfg
new file mode 100644
index 00000000..d2ae9109
--- /dev/null
+++ b/src/target/target/test_reset_syntax_error.cfg
@@ -0,0 +1,15 @@
+# Test script to check that syntax error in reset
+# script is reported properly.
+
+# at91eb40a target
+
+#jtag scan chain
+jtag_device 4 0x1 0xf 0xe
+
+#target configuration
+target arm7tdmi little 0 arm7tdmi-s_r4
+
+[new_target_name] configure -event reset-init {
+
+ syntax error
+}
diff --git a/src/target/target/test_syntax_error.cfg b/src/target/target/test_syntax_error.cfg
new file mode 100644
index 00000000..9a87912c
--- /dev/null
+++ b/src/target/target/test_syntax_error.cfg
@@ -0,0 +1,4 @@
+# This script tests a syntax error in the startup
+# config script
+
+syntax error here \ No newline at end of file