[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 24be9ac 184/316: Insert tag's co
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 24be9ac 184/316: Insert tag's code if it's there |
Date: |
Sat, 28 Jan 2017 09:10:00 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 24be9acc80e884851242c928001bf5a31965079d
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>
Insert tag's code if it's there
* test/manual/cedet/cedet-integ-test.el (cit-srecode-fill-with-stuff):
If a tag has :code, insert it. (cit-run-target): New.
---
test/manual/cedet/cedet-integ-test.el | 36 ++++++++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/test/manual/cedet/cedet-integ-test.el
b/test/manual/cedet/cedet-integ-test.el
index 3827948..bd47711 100644
--- a/test/manual/cedet/cedet-integ-test.el
+++ b/test/manual/cedet/cedet-integ-test.el
@@ -34,6 +34,9 @@
;; The below listed parts DO NOT happen in this order as various
;; tools have to work together to build up the project.
;;
+;; Note: Not all entries below are actually tested. Make in comments the
+;; bit a new piece of code implements.
+;;
;; Parts:
;;
;; 1) Create an EDE project in /tmp
@@ -44,6 +47,7 @@
;; e Tell EDE where they are.
;; f create a build file.
;; g build the sources
+;; g.1 Run a program build by EDE
;; e remove files from a project.
;; f shared libraries from EDE.
;;
@@ -69,6 +73,12 @@
;; a Create a COGRE graph.
;; b Generate C++ code from the graph.
;; c Compile the sources.
+;;
+;; @TODO -
+;; 6) Create a distribution file.
+;; a Call "make dist"
+;; b In a fresh dir, unpack the dist.
+;; c Compile that dist.
(require 'semantic)
(require 'ede)
@@ -225,7 +235,10 @@ EMPTY-DICT-ENTRIES are dictionary entries for the EMPTY
fill macro."
;; 3 b) Srecode to make more sources
;; 3 c) Test incremental parsers (by side-effect)
- (let ((e (srecode-semantic-insert-tag tag)))
+ (let ((e (srecode-semantic-insert-tag tag))
+ (code (semantic-tag-get-attribute tag :code)))
+
+ (when code (insert code))
(goto-char e)
(sit-for 0)
@@ -322,5 +335,26 @@ such as 'clean'."
(kill-buffer bufftokill)
))
+(defun cit-run-target (command)
+ "Run the program (or whatever) that is associated w/ the current target.
+Use COMMAND to run the program."
+ (let ((target ede-object)
+ (cnt 0))
+ ;; Run the target.
+ (project-run-target target command)
+ ;; Did it produce errors or anything?
+ (save-excursion
+ (set-buffer (ede-shell-buffer target))
+ (goto-char (point-min))
+ ;; Wait for prompt.
+ (unwind-protect
+ (while (not (re-search-forward "MOOSE" nil t))
+ (setq cnt (1+ cnt))
+ (when (> cnt 10) (error "Program output not detected"))
+ (sit-for .1))
+ ;; Kill the buffer.
+ (kill-buffer (ede-shell-buffer target)))
+ )))
+
(provide 'cedet-integ-test)
;;; cedet-integ-test.el ends here
- [Emacs-diffs] scratch/merge-cedet-tests 19646a7 141/316: semantic/bovine/c: Add support for typedef references, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 19646a7 141/316: semantic/bovine/c: Add support for typedef references, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 5ef7a99 157/316: tests: Fix typo in ede/detect-utest, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 14c75f7 175/316: (cit-version): New variable. (semantic): New require, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0781aac 164/316: Add comments, require cedet-files., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 47b5933 185/316: Move compilation error handling to new function, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 2c1d730 190/316: Ignore Members On Extra Tags, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 7661178 186/316: Improve compilation error checking, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests de289a9 189/316: Compare Code And Documtation For Tags, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 3800edd 194/316: Fix provide. (cedet-uutil, srecode/semantic): New requires., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a7281aa 202/316: Fix EIEIO methodinvoke-utest and semantic-fmt-utest., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 24be9ac 184/316: Insert tag's code if it's there,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 9ec7a1b 161/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a40bc3f 191/316: (Cit-Android): New Require. (Cedet-Integ-Test-Gnustep): Fix Typo. (Cedet-Integ-Test-Android): New Build Type Support For Android. (Cit-Make-Dir): Allow Making Trees Of Directories. (Cit-Compile-And-Wait): Only Regenerate The Project If That Project Type Can Be Regenerated. (Cit-Compile-And-Wait-Using-Ede-Command): New Way To Build That Uses Ede Commands Instead Of Hard-Coded Make Commands., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 6bbf499 171/316: (cit-srec): New require (cedet-integ-test): Call srec test., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 558874e 169/316: Update comments, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests ede9f83 214/316: Simplify alias referencing and add tests., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 1d09e4c 217/316: C++: Deal with 'using' statements when calculating scope, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests e267436 232/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 29a5165 216/316: C/C++: Parse 'using' statements in the correct order., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests e7118b0 221/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests e4db2c3 187/316: Disable auto add, do shared-library-only test, Edward John Steere, 2017/01/28