summaryrefslogtreecommitdiff
path: root/etc/srecode/proj-test.srt
diff options
context:
space:
mode:
authorEric Ludlam <eric@siege-engine.com>2019-10-14 20:52:52 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2019-10-15 11:08:18 -0400
commit57a786db5a5c653172f994ff707f8eded3d92168 (patch)
tree09309ddc82e4202f7ee11b9539f5c0acc5d09a49 /etc/srecode/proj-test.srt
parent3f8915a0192fe629dc985909c4acd5f80aa78b60 (diff)
downloademacs-57a786db5a5c653172f994ff707f8eded3d92168.tar.gz
Adapt the CEDET SRecoder template test to use ERT
These tests were copied from CEDET from SourceForge. Author: Eric Ludlam <zappo@gnu.org>
Diffstat (limited to 'etc/srecode/proj-test.srt')
-rw-r--r--etc/srecode/proj-test.srt37
1 files changed, 37 insertions, 0 deletions
diff --git a/etc/srecode/proj-test.srt b/etc/srecode/proj-test.srt
new file mode 100644
index 00000000000..c97016fc448
--- /dev/null
+++ b/etc/srecode/proj-test.srt
@@ -0,0 +1,37 @@
+;; proj-test.srt --- SRecode template for testing project scoping.
+
+;; Copyright (C) 2008-2019 Free Software Foundation, Inc.
+
+;; Author: Eric M. Ludlam <zappo@gnu.org>
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs 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.
+
+;; GNU Emacs 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 GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
+
+set mode "srecode-template-mode"
+set escape_start "{{"
+set escape_end "}}"
+
+set application "tests"
+set project "/tmp/"
+
+context test
+
+template test-project
+"A template that only exists for files in /tmp."
+----
+Contents doesn't matter.
+----
+
+;; end