[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 0927d4a 180/316: (cedet-integ-te
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 0927d4a 180/316: (cedet-integ-test-Make, cedet-integ-test-Automake, cedet-integ-test-GNUStep): New (cedet-integ-test-proj): Take a make-type argumemt. Misc tests needed on new argument. Change how ede creates projects based on make-type. Remove spaces from the project name. (cit-finish-message): Ending message now includes the make type. |
Date: |
Sat, 28 Jan 2017 09:09:59 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 0927d4a2b91c0f6689e070a0f74aebf65c579569
Author: zappo <address@hidden>
Commit: Edward John Steere <address@hidden>
(cedet-integ-test-Make,cedet-integ-test-Automake,cedet-integ-test-GNUStep):
New (cedet-integ-test-proj): Take a make-type argumemt. Misc tests needed on
new argument. Change how ede creates projects based on make-type. Remove spaces
from the project name. (cit-finish-message): Ending message now includes the
make type.
---
test/manual/cedet/cedet-integ-test.el | 48 ++++++++++++++++++++++++++-------
1 file changed, 38 insertions(+), 10 deletions(-)
diff --git a/test/manual/cedet/cedet-integ-test.el
b/test/manual/cedet/cedet-integ-test.el
index b9a3385..e8330cc 100644
--- a/test/manual/cedet/cedet-integ-test.el
+++ b/test/manual/cedet/cedet-integ-test.el
@@ -91,9 +91,25 @@
"Root of the EDE project integration tests.")
;;; Code:
-(defun cedet-integ-test ()
- "Run the full CEDET integration test."
+(defun cedet-integ-test-Make ()
+ "Run the full CEDET integration test using a Make style project."
+ (cedet-integ-test-proj "Make"))
+
+(defun cedet-integ-test-Automake ()
+ "Run the full CEDET integration test using a Automake style project."
+ (let ((ede-pconf-create-file-query nil))
+ (cedet-integ-test-proj "Automake")))
+
+(defun cedet-integ-test-proj (&optional make-type)
+ "Run the full CEDET integration test.
+Optional argument MAKE-TYPE is the style of EDE project to test."
(interactive)
+
+ ;; Input check
+ (if (not (member make-type '("Make" "Automake")))
+ (error "Invalid make-type for test: %S" make-type))
+ (message "Running integration test of style %S" make-type)
+
;; 1 a) build directories
;;
(cit-make-dir cedet-integ-base)
@@ -106,14 +122,14 @@
;; 1 b) make a toplevel project
;;
(find-file (expand-file-name "README" cedet-integ-target))
- (ede-new "Make" "CEDET Integ Test Project")
+ (ede-new make-type "CEDET_Integ_Test_Project")
;; 1 d) Put C++ src into the right directories.
;; 2 a) Create sources with SRecode
;;
- (cit-srecode-fill-cpp)
+ (cit-srecode-fill-cpp make-type)
;; 5 a,b,c) UML code generation test
- (cit-fill-uml)
+ (cit-fill-uml make-type)
;; 1 e) remove files from a project
(cit-remove-add-to-project-cpp)
@@ -122,24 +138,36 @@
(cit-srecode-map-test)
;; Do some more with Emacs Lisp.
- (cit-srecode-fill-el)
+ (cit-srecode-fill-el make-type)
;; Do some texinfo documentation.
(cit-srecode-fill-texi)
+ (cit-finish-message "PASSED" make-type)
+ )
+
+(defun cedet-integ-test-GNUStep ()
+ "Run the CEDET integration test using GNUStep style project."
+ (interactive)
+
;; Do a EDE GNUstep-Make Project
(make-directory (concat cedet-integ-target "_ede_GSMake") t)
(find-file (expand-file-name "README" (concat cedet-integ-target
"_ede_GSMake"))) ;; only to change dir
(let ((ede-auto-add-method 'always))
(cit-ede-step-test))
- ;; Leave a message
+ (cit-finish-message "PASSED" "GNUStep")
+ )
+
+(defun cit-finish-message (message style)
+ "Display a MESSAGE that some test is now finished.
+Argument STYLE is the type of build done."
(let ((b (set-buffer (get-buffer-create "*PASSED*"))))
(erase-buffer)
- (insert "\n\n PASSED!\n")
+ (insert "\n\n PASSED!\n\n Make Style: ")
+ (insert (format "%S" style) "\n")
(switch-to-buffer b)
- )
- )
+ ))
(defun cit-make-dir (dir)
"Make directory DIR if it doesn't exist."
- [Emacs-diffs] scratch/merge-cedet-tests 3fd7717 192/316: Synchronize cedet/srecode with Emacs., (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 3fd7717 192/316: Synchronize cedet/srecode with Emacs., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests e805e93 223/316: semantic/bovine/c: Parse C++11 strongly typed enum, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 40b4bd4 204/316: Adedd `ede-detect-utest', Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 6bd181e 224/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 765b8f9 208/316: (cedet-utest-test-alist): Add ede-detect-linux-utest., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests bf84fd5 054/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 9c59d78 146/316: (ede-detect-utest): Change message formatting., Edward John Steere, 2017/01/28
- [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/28
- [Emacs-diffs] scratch/merge-cedet-tests ba748b5 174/316: Added gnustep tests, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 50cce19 183/316: Added lib dir and make-type argument, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0927d4a 180/316: (cedet-integ-test-Make, cedet-integ-test-Automake, cedet-integ-test-GNUStep): New (cedet-integ-test-proj): Take a make-type argumemt. Misc tests needed on new argument. Change how ede creates projects based on make-type. Remove spaces from the project name. (cit-finish-message): Ending message now includes the make type.,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests db5f56b 172/316: (cedet-integ-test): Post a PASSED message., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests bfed386 181/316: (cit-finish-message): Add a pause, then exit with a status of "1"., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0ceb1ef 168/316: Integration Tests., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests d3a0e00 219/316: Erorr when appropriate, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 529fe15 195/316: Make unit tests use randomized file names, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 9b917c5 152/316: Major test restructure, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 38d59cb 207/316: Tests: Add ERT test for the C Bovinator, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 4bf5287 199/316: Fix interactive unit tests., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 784b5c8 231/316: Make unit tests use randomized file names, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests df0e0e6 193/316: Synchronize cedet/srecode with Emacs., Edward John Steere, 2017/01/28