[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 47b5933 185/316: Move compilatio
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 47b5933 185/316: Move compilation error handling to new function |
Date: |
Sat, 28 Jan 2017 09:10:00 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 47b59337d3d62e2016620df05f3b020180dc9428
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>
Move compilation error handling to new function
* test/manual/cedet/cedet-integ-test.el (cit-dist): New require.
(cedet-integ-test-proj): Call new cit-dist tests.
(cit-compile-and-wait): Split part out to...
(cit-wait-for-compilation): New.
---
test/manual/cedet/cedet-integ-test.el | 40 ++++++++++++++++++++++-----------
1 file changed, 27 insertions(+), 13 deletions(-)
diff --git a/test/manual/cedet/cedet-integ-test.el
b/test/manual/cedet/cedet-integ-test.el
index bd47711..e62ae74 100644
--- a/test/manual/cedet/cedet-integ-test.el
+++ b/test/manual/cedet/cedet-integ-test.el
@@ -77,8 +77,10 @@
;; @TODO -
;; 6) Create a distribution file.
;; a Call "make dist"
-;; b In a fresh dir, unpack the dist.
-;; c Compile that dist.
+;; b update the version number
+;; c make a new dist. Verify version number.
+;; d In a fresh dir, unpack the dist.
+;; e Compile that dist.
(require 'semantic)
(require 'ede)
@@ -97,6 +99,7 @@
(require 'cit-el)
(require 'cit-texi)
(require 'cit-gnustep)
+(require 'cit-dist)
(defvar cedet-integ-target (expand-file-name "edeproj" cedet-integ-base)
"Root of the EDE project integration tests.")
@@ -158,6 +161,10 @@ Optional argument MAKE-TYPE is the style of EDE project to
test."
;; Do some texinfo documentation.
(cit-srecode-fill-texi)
+ ;; Create a distribution
+ (find-file (expand-file-name "README" cedet-integ-target))
+ (cit-make-dist)
+
(cit-finish-message "PASSED" make-type)
)
@@ -320,21 +327,28 @@ such as 'clean'."
;; 1 g) build the sources.
(compile (concat ede-make-command (or ARGS "")))
- (while compilation-in-progress
- (accept-process-output)
- (sit-for 1))
+ (cit-wait-for-compilation)
- (save-excursion
- (set-buffer "*compilation*")
- (goto-char (point-max))
-
- (when (re-search-backward " Error " nil t)
- (error "Compilation failed!"))
-
- )
(kill-buffer bufftokill)
))
+(defun cit-wait-for-compilation ()
+ "Wait for a compilation to finish."
+
+ (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!"))
+
+ )
+ )
+
(defun cit-run-target (command)
"Run the program (or whatever) that is associated w/ the current target.
Use COMMAND to run the program."
- [Emacs-diffs] scratch/merge-cedet-tests 779f839 032/316: (LOADPATH): Add speedbar. (EMACSFLAGS): New variable (Lisp): Use above., (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 779f839 032/316: (LOADPATH): Add speedbar. (EMACSFLAGS): New variable (Lisp): Use above., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 1c4ec31 045/316: Add test for parsing local variables, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 05006be 049/316: Semantic Symref testing., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c2fada4 230/316: Force srecode repo location and add decorations to debug output, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests f916b8f 125/316: C/C++: Fix function pointer parsing, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c40401d 273/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28
- [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 <=
- [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, 2017/01/28
- [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