[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 41aebbc 072/316: Texinfo support
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 41aebbc 072/316: Texinfo support for cedet integration tests. |
Date: |
Sat, 28 Jan 2017 09:09:49 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 41aebbca2d4d7fc10b4a575363c194c9f82df1cf
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>
Texinfo support for cedet integration tests.
---
test/manual/cedet/cit-texi.el | 96 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 96 insertions(+)
diff --git a/test/manual/cedet/cit-texi.el b/test/manual/cedet/cit-texi.el
new file mode 100644
index 0000000..6d7d403
--- /dev/null
+++ b/test/manual/cedet/cit-texi.el
@@ -0,0 +1,96 @@
+;;; cit-texi.el --- testing Texinfo support.
+
+;; Copyright (C) 2008 Eric M. Ludlam
+
+;; Author: Eric M. Ludlam <address@hidden>
+;; X-RCS: $Id: cit-texi.el,v 1.1 2008-02-24 02:58:59 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:
+;;
+;; Texinfo srecode/semantic testing.
+
+;;; Code:
+
+(defconst cit-doc-tags
+ (list
+ (semantic-tag-new-variable "cit-spiffy-var" nil
+ "'(1 2 3 4)")
+ (semantic-tag-new-function
+ "RegularFunction" nil
+ (list (semantic-tag-new-variable "arg1" "nil"))
+ :documentation "Some boring old function.")
+
+ )
+ "List of tags to insert into a texinfo document.")
+
+(defconst cit-section-tags
+ (list
+ (semantic-tag
+ "@value{TITLE}" 'section
+ :members
+ (list
+ (semantic-tag "cit-spiffy-var" 'def)
+ (semantic-tag "RegularFunction" 'def)
+
+ (semantic-tag
+ "About Foo" 'section
+ :members
+ (list
+ (semantic-tag "Sub About Foo" 'section)))
+
+ (semantic-tag "Index" 'section)
+ ))
+ )
+ "Eventual tags we expect.")
+
+(defun cit-srecode-fill-texi ()
+ "Fill up a base set of files with some base tags."
+ (interactive)
+
+ ;; 2 b) Test various templates.
+
+ (cit-srecode-fill-with-stuff "src/foodoc.texi" cit-doc-tags
+ "NAME" "All about the FOO.")
+
+ (re-search-forward "@menu\n")
+ (sit-for 0)
+ (srecode-texi-add-menu "About Foo")
+ (sit-for 0)
+
+ (srecode-semantic-insert-tag (semantic-tag "" 'menu))
+ (sit-for 0)
+
+ (srecode-texi-add-menu "Sub About Foo")
+ (sit-for 0)
+
+ (save-buffer)
+
+ (cit-srecode-verify-tags (semantic-fetch-tags)
+ cit-section-tags)
+
+ ;; 1 e) Tell EDE where the srcs are
+ (ede-new-target "Doc" "info" "n")
+ (ede-add-file "Doc")
+
+ (cit-compile-and-wait)
+ )
+
+
+
+(provide 'cit-texi)
+;;; cit-texi.el ends here
- [Emacs-diffs] scratch/merge-cedet-tests cfdd9a5 070/316: Tests for polymorphism, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests cfdd9a5 070/316: Tests for polymorphism, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests dd9777f 076/316: Fix interactive unit tests., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 3730a42 069/316: New include for cpproot test that is in a subdirectory., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 4ec19b7 083/316: Test src file for a dirmatch., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests b666682 082/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 6b4b0a5 078/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests e20716d 097/316: ("Lisp"): Added cogre as an aux package., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 30a0375 099/316: ("cit"): Add cit-dist.el, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 85a3b5a 106/316: (cit): Add "cit-projvar.el"., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 74de67a 105/316: Move Speedbar development to Emacs trunk., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 41aebbc 072/316: Texinfo support for cedet integration tests.,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 4fe7a1c 085/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 89b52b8 087/316: New metaproject, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 6dfcb31 089/316: (Lisp): Add cit-srec.el (templates): New, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 79008df 084/316: Fake config.h for project detection purposes., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 7f97008 102/316: (Lisp): Add cit-android.el, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests b94f97e 101/316: (Lisp): Add cit-externaldb.el, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 9641120 108/316: Fake configure.in for project detection purposes., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests adc318b 115/316: New test file., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 901dc28 119/316: New test file., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests f580185 118/316: Expand preprocessor to handle macros which open or close scope., Edward John Steere, 2017/01/28