]> git.eshelyaron.com Git - emacs.git/commitdiff
Synchronize cedet/semantic with Emacs.
authorxscript <xscript@users.sourceforge.net>
Sun, 15 May 2011 20:16:47 +0000 (22:16 +0200)
committerEdward John Steere <edward.steere@gmail.com>
Wed, 25 Jan 2017 15:59:25 +0000 (17:59 +0200)
test/manual/cedet/cedet/semantic/db-ebrowse.el [new file with mode: 0644]

diff --git a/test/manual/cedet/cedet/semantic/db-ebrowse.el b/test/manual/cedet/cedet/semantic/db-ebrowse.el
new file mode 100644 (file)
index 0000000..92b70f8
--- /dev/null
@@ -0,0 +1,18 @@
+(defun semanticdb-ebrowse-run-tests ()
+  "Run some tests of the semanticdb-ebrowse system.
+All systems are different.  Ask questions along the way."
+  (interactive)
+  (let ((doload nil))
+    (when (y-or-n-p "Create a system database to test with? ")
+      (call-interactively 'semanticdb-create-ebrowse-database)
+      (setq doload t))
+    ;; Should we load in caches
+    (when (if doload
+              (y-or-n-p "New database created. Reload system databases? ")
+            (y-or-n-p "Load in all system databases? "))
+      (semanticdb-load-ebrowse-caches)))
+  ;; Ok, databases were creatd.         Lets try some searching.
+  (when (not (or (eq major-mode 'c-mode)
+              (eq major-mode 'c++-mode)))
+    (error "Please make your default buffer be a C or C++ file, then
+run the test again..")))