[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests a7926fd 155/316: detect-utest.el
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests a7926fd 155/316: detect-utest.el: (ede-detect-utest-configdir): New fcn (ede-detect-utest-arduino-install): New faux install dir (ede-detect-utest-init-dirmatch): Point at fake intalldir to get fake board. |
Date: |
Sat, 28 Jan 2017 09:09:56 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit a7926fdbf32e5afd7825dc0e8136ac514b39f46f
Author: Eric Ludlam <address@hidden>
Commit: Edward John Steere <address@hidden>
detect-utest.el: (ede-detect-utest-configdir): New fcn
(ede-detect-utest-arduino-install): New faux install dir
(ede-detect-utest-init-dirmatch): Point at fake intalldir to get fake board.
---
test/manual/cedet/cedet/ede/detect-utest.el | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/test/manual/cedet/cedet/ede/detect-utest.el
b/test/manual/cedet/cedet/ede/detect-utest.el
index 4bd1130..ced65c6 100644
--- a/test/manual/cedet/cedet/ede/detect-utest.el
+++ b/test/manual/cedet/cedet/ede/detect-utest.el
@@ -222,6 +222,14 @@ It is passed the root project found.")
cedet-utest-root)))
(expand-file-name "src" default-directory)))
+(defun ede-detect-utest-configdir ()
+ "Get the basedir of the detection unit tests."
+ (save-current-buffer
+ (set-buffer (semantic-find-file-noselect
+ (expand-file-name "cedet/ede/detect.el"
+ cedet-utest-root)))
+ (expand-file-name "config" default-directory)))
+
(ede-cpp-root-project "UTESTCPP"
:name "cpp root test"
:file (expand-file-name "cpproot/README"
@@ -580,6 +588,10 @@ If LOADEDP is nil, make sure non were loaded."
temporary-file-directory)
"A config file to use with detection of arduino.")
+(defvar ede-detect-utest-arduino-install
+ (expand-file-name "arduino" (ede-detect-utest-configdir))
+ "A config file to use with detection of arduino.")
+
(defun ede-detect-utest-init-dirmatch ()
"Init the config file for for dirtesting."
@@ -594,7 +606,9 @@ If LOADEDP is nil, make sure non were loaded."
))
;; Override some bits of the ARDUINO project type.
- (setq ede-arduino-preferences-file ede-detect-utest-arduino-fname)
+ (setq ede-arduino-preferences-file ede-detect-utest-arduino-fname
+ ede-arduino-appdir ede-detect-utest-arduino-install)
+
(let ((mypath (expand-file-name "arduino" (ede-detect-utest-basedir))))
;;(message "Dirmatch Location: %s" mypath)
@@ -603,7 +617,7 @@ If LOADEDP is nil, make sure non were loaded."
(erase-buffer)
(insert "sketchbook.path=" mypath "\n"
"serial.port=tty00\n"
- "board=uno\n")
+ "board=ede_utest\n")
(save-buffer 0)
) )
;; Now we need to augment the existing autoloader for arduino.
- [Emacs-diffs] scratch/merge-cedet-tests 39f1464 235/316: (cit-srecode-fill-cpp): Fixed misspelling of target name., (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 39f1464 235/316: (cit-srecode-fill-cpp): Fixed misspelling of target name., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests aa72e43 200/316: Fix unit testing for several tests and do better error checking., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 658ff90 205/316: (cedet-utest): Add EDE sanity check to the end., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 02f847a 288/316: New tests., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests ad45c79 263/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 9e6abad 241/316: Run the code for the compiled binary, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 5a2a1da 293/316: (priority): Set to a low number. (cit-project-template): New template., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 7f7d6bf 229/316: Synchronize cedet/srecode with Emacs., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 66c8eb7 256/316: Remove useless generated skeleton and old NEWS, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 86ed340 147/316: Additions to detection testing, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a7926fd 155/316: detect-utest.el: (ede-detect-utest-configdir): New fcn (ede-detect-utest-arduino-install): New faux install dir (ede-detect-utest-init-dirmatch): Point at fake intalldir to get fake board.,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 446edba 291/316: Base template for cit testing., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 760fef4 309/316: Fix typo, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 07892f6 287/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [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/28
- [Emacs-diffs] scratch/merge-cedet-tests 764db86 236/316: (cit-remove-add-to-project-cpp): Wait for make to finish., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests b804ecf 166/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 11d45fa 170/316: Restructure and improve output, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a93bc4a 292/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests ce2952b 312/316: Revert rev. 6995, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a78c71f 255/316: Fix documentation, Edward John Steere, 2017/01/28