[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests cd08101 179/316: Added cit uml
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests cd08101 179/316: Added cit uml |
Date: |
Fri, 27 Jan 2017 20:03:38 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit cd081010f91d9d7aaf39a47da484c1f265be435f
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>
Added cit uml
* test/manual/cedet/cedet-integ-test.el (cit-uml): New require
(cogre): New require (cedet-integ-test): Make a UML test dir. Call
`cit-fill-uml'. (cit-compile-and-wait): Kill Project.ede buffer
after compilation.
---
test/manual/cedet/cedet-integ-test.el | 47 ++++++++++++++++++++++-----------
1 file changed, 31 insertions(+), 16 deletions(-)
diff --git a/test/manual/cedet/cedet-integ-test.el
b/test/manual/cedet/cedet-integ-test.el
index 9316b1a..b9a3385 100644
--- a/test/manual/cedet/cedet-integ-test.el
+++ b/test/manual/cedet/cedet-integ-test.el
@@ -63,10 +63,17 @@
;; 4) Delete the project
;; a Make sure the semanticdb cleans up the dead cache files.
;; b Make sure EDE clears this project from it's project cache.
+;;
+;; 5) Use COGRE to build sources with SRecode
+;; a Create a COGRE graph.
+;; b Generate C++ code from the graph.
+;; c Compile the sources.
+
(require 'semantic)
(require 'ede)
(require 'data-debug)
(require 'ede-make)
+(require 'cogre)
(eval-and-compile
(defvar cedet-integ-base "/tmp/CEDET_INTEG"
@@ -74,6 +81,7 @@
)
(require 'cit-cpp)
+(require 'cit-uml)
(require 'cit-srec)
(require 'cit-el)
(require 'cit-texi)
@@ -93,6 +101,7 @@
;; 1 c) make src and include directories
(cit-make-dir (cit-file "src"))
(cit-make-dir (cit-file "include"))
+ (cit-make-dir (cit-file "uml"))
;;
;; 1 b) make a toplevel project
;;
@@ -103,6 +112,9 @@
;;
(cit-srecode-fill-cpp)
+ ;; 5 a,b,c) UML code generation test
+ (cit-fill-uml)
+
;; 1 e) remove files from a project
(cit-remove-add-to-project-cpp)
@@ -248,22 +260,25 @@ are found, but don't error if they are not their."
(defun cit-compile-and-wait ()
"Compile our current project, but wait for it to finish."
- (find-file (cit-file "Project.ede"))
- ;; 1 f) Create a build file.
- (ede-proj-regenerate)
- ;; 1 g) build the sources.
- (compile ede-make-command)
-
- (while compilation-in-progress
- (accept-process-output)
- (sit-for 1))
-
- (save-excursion
- (set-buffer "*compilation*")
- (goto-char (point-max))
-
- (when (re-search-backward " Error " nil t)
- (error "Compilation failed!"))
+ (let ((bufftokill (find-file (cit-file "Project.ede"))))
+ ;; 1 f) Create a build file.
+ (ede-proj-regenerate)
+ ;; 1 g) build the sources.
+ (compile ede-make-command)
+
+ (while compilation-in-progress
+ (accept-process-output)
+ (sit-for 1))
+
+ (save-excursion
+ (set-buffer "*compilation*")
+ (goto-char (point-max))
+
+ (when (re-search-backward " Error " nil t)
+ (error "Compilation failed!"))
+
+ )
+ (kill-buffer bufftokill)
))
(provide 'cedet-integ-test)
- [Emacs-diffs] scratch/merge-cedet-tests 026efb3 008/316: First changes to make them work., (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 026efb3 008/316: First changes to make them work., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 322251e 005/316: Disable semanticdb-file saving. Disable srecode map saving., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests dacde10 013/316: Fix unit testing for several tests and do better error checking., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d15788e 025/316: (Lisp_LISP): Add cit-cpp, cit-el, cit-texi, cit-load, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests b4eab4f 029/316: (Lisp_LISP): Add cit-gnustep.el, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ecfcde6 028/316: (all, dist): Add scripts (scripts): New, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 534648f 051/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c856c20 052/316: New test file., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 541cc30 053/316: (cpprootsys.h, projincmacros.h): New includes (projmacro_a): New fcn., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d08bd3b 117/316: C/C++: Fix function pointer parsing, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests cd08101 179/316: Added cit uml,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests e96e309 178/316: Added new subdir and ensure that the base dir, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 765b8f9 208/316: (cedet-utest-test-alist): Add ede-detect-linux-utest., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests de289a9 189/316: Compare Code And Documtation For Tags, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 7177e01 210/316: Add compdb EDE project, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 284144e 154/316: Fixes for test execution, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests fd40e7f 212/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 404d4da 242/316: Improve compilation active detection, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 3cb2319 243/316: Added code for test tags, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 05006be 049/316: Semantic Symref testing., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 614a6bb 044/316: Synchronize base 'cedet/ede' with Emacs, Edward John Steere, 2017/01/27