[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests af4eb43 149/316: Additions to ge
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests af4eb43 149/316: Additions to generic project testing |
Date: |
Fri, 27 Jan 2017 20:03:36 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit af4eb4385dd32cb97a31703c5993c69726062195
Author: Eric Ludlam <address@hidden>
Commit: Edward John Steere <address@hidden>
Additions to generic project testing
* test/manual/cedet/cedet/ede/detect-utest.el:
(ede-detect-utest-project-list): Add 3 generic project detection
tests. (ede-detect-utest): Enable generic project types.
(ede-detect-utest-generic-p): New predicate.
---
test/manual/cedet/cedet/ede/detect-utest.el | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/test/manual/cedet/cedet/ede/detect-utest.el
b/test/manual/cedet/cedet/ede/detect-utest.el
index 588adc8..7dfa949 100644
--- a/test/manual/cedet/cedet/ede/detect-utest.el
+++ b/test/manual/cedet/cedet/ede/detect-utest.el
@@ -34,6 +34,10 @@
;( "src/ant/build.xml" . ede-ant-project-p )
( "src/linux/Makefile" . ede-linux-project-p )
( "src/linux/scripts/ver_linux" . ede-linux-project-p )
+ ;; Generic project types just key of Makefile, SCons, etc.
+ ( "src/generic/gen_make/sub/test.cpp" . ede-detect-utest-generic-p )
+ ( "src/generic/gen_scons/sub/test.cpp" . ede-detect-utest-generic-p )
+ ( "src/generic/gen_cmake/sub/test.cpp" . ede-detect-utest-generic-p )
;; these ROOT projects are created by hand in a .emacs file.
;; These need to be defined in here to get this test to work.
( "src/cpproot/src/main.cpp" . ede-cpp-root-project-p )
@@ -81,6 +85,10 @@ Each entry is a cons cell:
;; loading in the project type.
(ede-detect-utest-init-dirmatch)
+ ;; Enable the generic EDE project types so we can test them.
+ (ede-enable-generic-projects)
+
+ ;; Start Logging
(cedet-utest-log-setup "EDE DETECT")
(let ((errlog nil))
@@ -233,6 +241,18 @@ Each entry is a cons cell:
(not (eq project (ede-current-project)))
))
+(defun ede-detect-utest-generic-p (project)
+ "Special predicate for testing that a generic project was loaded."
+ (and (ede-generic-project-child-p project)
+ ;; This part also validates that generic projects can load in their
+ ;; configuration, and that we get the correct value from that
configuration.
+ (let ((config (oref project config)))
+ (and config
+ (oref config c-preprocessor-table)
+ (string= "TEST" (car (car (oref config c-preprocessor-table))))
+ ))
+ ))
+
;;; TEST PROJECT
;;
;; This project exists to test dirmatch.
@@ -278,7 +298,8 @@ Each entry is a cons cell:
ede-project-class-files))
(adm (oref arduinoauto proj-root-dirmatch)))
;; Splice the new tmp pref file into the system.
- (oset adm :fromconfig ede-arduino-preferences-file))
+ (oset adm :fromconfig ede-arduino-preferences-file)
+ )
)
- [Emacs-diffs] scratch/merge-cedet-tests 42516a8 254/316: Added cpproot tests, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 42516a8 254/316: Added cpproot tests, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c2f09c4 182/316: (cedet-integ-test-proj): Add cit-remove-and-do-shared-lib., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 6945c33 126/316: Expand preprocessor to handle macros which open or close scope., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 558de0d 220/316: Fake emacs.c for project detection purposes., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9e6abad 241/316: Run the code for the compiled binary, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests da23314 286/316: Don't fail the test for errors which don't mean a failure, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e0d3d7b 303/316: New tests., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9b72617 282/316: Don't set :filename if it's already set, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests bff505d 132/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 5b8af47 283/316: * tests/cit-externaldb.el: Fix requires., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests af4eb43 149/316: Additions to generic project testing,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 0caf48a 302/316: Improve test output, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c2fada4 230/316: Force srecode repo location and add decorations to debug output, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests fb82965 136/316: Test `this' from in inline member functions, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 6bbf499 171/316: (cit-srec): New require (cedet-integ-test): Call srec test., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a86650d 198/316: Use `cedet-version' instead of `cedet-version-print', Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e076b36 177/316: Set the auto-add-method to always during test, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 4ab930b 225/316: C++: Deal with 'using' statements when calculating scope, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 63dbe0c 276/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ebff99d 215/316: Another 'using namespace' fix, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 38d59cb 207/316: Tests: Add ERT test for the C Bovinator, Edward John Steere, 2017/01/27