[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests f38d3d0 041/316: SRecoder featur
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests f38d3d0 041/316: SRecoder feature testing. |
Date: |
Fri, 27 Jan 2017 20:03:26 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit f38d3d001b99dfa36f40e23d89a035b21a60820d
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>
SRecoder feature testing.
---
test/manual/cedet/cit-srec.el | 67 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/test/manual/cedet/cit-srec.el b/test/manual/cedet/cit-srec.el
new file mode 100644
index 0000000..e647189
--- /dev/null
+++ b/test/manual/cedet/cit-srec.el
@@ -0,0 +1,67 @@
+;;; cit-srec.el --- Test SRecode template mapping and such.
+
+;; Copyright (C) 2008 Eric M. Ludlam
+
+;; Author: Eric M. Ludlam <address@hidden>
+;; X-RCS: $Id: cit-srec.el,v 1.1 2008-02-24 18:21:56 zappo Exp $
+
+;; This program 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 2, or (at
+;; your option) any later version.
+
+;; This program 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; see the file COPYING. If not, write to
+;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
+
+;;; Commentary:
+;;
+;; SRecode Testing
+
+;;; Code:
+
+(defun cit-srecode-map-test ()
+ "Test SRecode MAP path testintg."
+ (interactive)
+
+ (let ((extradir cit-src-dir)
+ (oldpath srecode-map-load-path))
+ (add-to-list 'srecode-map-load-path extradir)
+ (srecode-map-update-map t)
+
+ (srecode-load-tables-for-mode 'c++-mode)
+ (srecode-load-tables-for-mode 'c++-mode 'cit-test)
+
+ (unwind-protect
+ (when (not (srecode-template-get-table (srecode-table 'c++-mode)
+ "cit-test-template"
+ "test"
+ 'cit-test
+ ))
+ (error "Failed to find augmented template"))
+
+ ;; Get rid of our adaptation. Double check.
+ (setq srecode-map-load-path oldpath)
+ (srecode-map-update-map t))
+
+;; This would be nice, but I'd have to purge and rebuild the table.
+;; to do it, which is a waste for a feature few would ever need.
+;;
+;; (when (srecode-template-get-table (srecode-table 'c++-mode)
+;; "cit-test-template"
+;; "test"
+;; 'cit-test
+;; )
+;; (error "Failed to unload augmented template"))
+
+ ))
+
+
+(provide 'cit-srec)
+;;; cit-srec.el ends here
- [Emacs-diffs] scratch/merge-cedet-tests 42e1106 034/316: (Lisp_LISP): Add cit-uml.el (Misc_MISC): Add cit-uml.cgr, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 42e1106 034/316: (Lisp_LISP): Add cit-uml.el (Misc_MISC): Add cit-uml.cgr, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 115a9d4 038/316: (Lisp_LISP): Add cit-symref.el, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 467bfc2 036/316: (ELISPPRELOAD): New (Lisp): Use preloads., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 924fef0 039/316: (Lisp_LISP): Add cit-externaldb.el, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 1d79c16 042/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 00080fd 043/316: Validate project overrides, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9a436ca 047/316: (func): Add local8 with a ternary conditional., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 1c4ec31 045/316: Add test for parsing local variables, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9bda61f 050/316: (cit-symref-quick-find-test): New. (cit-symref-count): Add a small wait of .1., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 75c52c3 055/316: (ms_structs, fun): New test example from Marting Stein., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests f38d3d0 041/316: SRecoder feature testing.,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests e915cb9 035/316: (LOADPATH): Add cogre to the load path., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d8b5630 060/316: Patch from Marcus Harnisch, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d4d1014 061/316: Add -f toggle-debug-on-quit flag, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c9de94f 064/316: * cit-test.sh: Add support for running in batch mode., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d8f7f9c 066/316: * tests/cit-test.sh: Fix filename for integration test., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 6f0f898 065/316: * cedet-load.el: Load cogre autoloads., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 8e1fe2d 067/316: Accept any potential project directory during testing, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 83c8dc0 068/316: Use random temporary directory for integration tests, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 66b117d 071/316: Test files contributed by Barry OReilly, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests feb2025 074/316: Don't check contents after initial fil, Edward John Steere, 2017/01/27