[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests c2fada4 230/316: Force srecode r
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests c2fada4 230/316: Force srecode repo location and add decorations to debug output |
Date: |
Fri, 27 Jan 2017 20:03:42 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit c2fada411ca3aaf3b52f2bf329c98996ad5dc981
Author: Eric Ludlam <address@hidden>
Commit: Edward John Steere <address@hidden>
Force srecode repo location and add decorations to debug output
* test/manual/cedet/cedet/srecode/test.el: (cl, cedet-uutil): New
require (cedet-utests): Deleted require. (srecode-map-load-path):
Force the srecode repository location in. (srecode-utest-map-reset):
New test fcn. (srecode-utest-test): Add decorations to debug
output. (cedet/srecode/test): Fix require.
---
test/manual/cedet/cedet/srecode/test.el | 31 +++++++++++++++++++++++++++----
1 file changed, 27 insertions(+), 4 deletions(-)
diff --git a/test/manual/cedet/cedet/srecode/test.el
b/test/manual/cedet/cedet/srecode/test.el
index 49fc3e0..3b52d6e 100644
--- a/test/manual/cedet/cedet/srecode/test.el
+++ b/test/manual/cedet/cedet/srecode/test.el
@@ -1,6 +1,6 @@
;;; srecode/test.el --- SRecode Core Template tests.
-;; Copyright (C) 2008, 2009, 2010 Eric M. Ludlam
+;; Copyright (C) 2008, 2009, 2010, 2011 Eric M. Ludlam
;; Author: Eric M. Ludlam <address@hidden>
@@ -24,12 +24,35 @@
;; Tests of SRecode template insertion routines and tricks.
;;
+(eval-when-compile (require 'cl))
+
+(require 'cedet-uutil)
+
+(require 'srecode/map)
+;; Force this test to use the templates from the CEDET install these
+;; tests are running from.
+(add-to-list 'srecode-map-load-path
+ (expand-file-name "etc/srecode"
+ (file-name-directory
+ (directory-file-name cedet-utest-root))))
+
(require 'srecode/insert)
(require 'srecode/dictionary)
-(require 'cedet-utests)
+
;;; Code:
+;;; MAP DUMP TESTING
+(defun srecode-utest-map-reset ()
+ "Reset, then dump the map of templates."
+ (interactive)
+ (message "SRecode Template Path: %S" srecode-map-load-path)
+ ;; Interactive call allows us to dump.
+ (call-interactively 'srecode-get-maps)
+ (switch-to-buffer "*SRECODE MAP*")
+ (message (buffer-string))
+ )
+
;;; OUTPUT TESTING
;;
(defclass srecode-utest-output ()
@@ -106,7 +129,7 @@ Assumes that the current buffer is the testing buffer."
------------- vv expected vv ------------\n\n"
output-1)
(pop-to-buffer (current-buffer))
- (error "Entry %s failed; expected: %s; actual: %s"
+ (error "Entry %s failed; expected: --[%s]--; actual: --[%s]--"
(object-name o) output-1 actual)))))
)
@@ -350,5 +373,5 @@ INSIDE SECTION: ARG HANDLER ONE")
)))
-(provide 'srecode/test)
+(provide 'cedet/srecode/test)
;;; srecode/test.el ends here
- [Emacs-diffs] scratch/merge-cedet-tests 6945c33 126/316: Expand preprocessor to handle macros which open or close scope., (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 6945c33 126/316: Expand preprocessor to handle macros which open or close scope., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 558de0d 220/316: Fake emacs.c for project detection purposes., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9e6abad 241/316: Run the code for the compiled binary, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests da23314 286/316: Don't fail the test for errors which don't mean a failure, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e0d3d7b 303/316: New tests., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9b72617 282/316: Don't set :filename if it's already set, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests bff505d 132/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 5b8af47 283/316: * tests/cit-externaldb.el: Fix requires., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests af4eb43 149/316: Additions to generic project testing, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 0caf48a 302/316: Improve test output, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c2fada4 230/316: Force srecode repo location and add decorations to debug output,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests fb82965 136/316: Test `this' from in inline member functions, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 6bbf499 171/316: (cit-srec): New require (cedet-integ-test): Call srec test., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a86650d 198/316: Use `cedet-version' instead of `cedet-version-print', Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e076b36 177/316: Set the auto-add-method to always during test, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 4ab930b 225/316: C++: Deal with 'using' statements when calculating scope, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 63dbe0c 276/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ebff99d 215/316: Another 'using namespace' fix, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 38d59cb 207/316: Tests: Add ERT test for the C Bovinator, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 853dd10 259/316: New test C file for linux., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9ab6e1b 270/316: Emacs Lisp support for cedet integration tests., Edward John Steere, 2017/01/27