[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: |
Fri, 27 Jan 2017 20:03:39 +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 64c305b 137/316: Test files contributed by Barry OReilly, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 64c305b 137/316: Test files contributed by Barry OReilly, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests f916b8f 125/316: C/C++: Fix function pointer parsing, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests f3a937b 143/316: Test project file., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 377e041 142/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ae78cf0 140/316: Tests: Add ERT test for the C Bovinator, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 0897a28 127/316: Test file for Project.ede proj., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 3fd7717 192/316: Synchronize cedet/srecode with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 558874e 169/316: Update comments, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests db5f56b 172/316: (cedet-integ-test): Post a PASSED message., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 40b4bd4 204/316: Adedd `ede-detect-utest', Edward John Steere, 2017/01/27
- [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 6bd181e 224/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests df0e0e6 193/316: Synchronize cedet/srecode with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 909e1b9 158/316: (ede-detect-utest-init-dirmatch): Force the dirmatch configdatastash to be unbound to force arduino to flush any cached values., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 50cce19 183/316: Added lib dir and make-type argument, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 82586cd 209/316: eieio: Move to obsolete and use the one that ships with Emacs, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 7eeab10 240/316: (cit-remove-and-do-shared-lib): Enable for use with Make projects too. Create the srcs in a new lib directory., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 27001fd 271/316: Accept the make-tipe argument to control tests, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9679584 296/316: Remove compatibility function `cedet-called-interactively-p'., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 2316f19 173/316: Add whitespace at the end of a filled buffer, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ef97bdd 203/316: (cedet-utest-batch): Disable saving EDE's cache file., Edward John Steere, 2017/01/27