David Engster [Mon, 18 Nov 2013 22:11:17 +0000 (23:11 +0100)]
C++: Deal with 'using' statements when calculating scope
* semantic/bovine/c.el (semantic-ctxt-scoped-types): Go through all
tags around point and search them for using statements. Before, we
skipped the last one thinking that it would have to be function, but
it could also be a type.
* semantic/scope.el (semantic-completable-tags-from-type): When
creating the list of completable types, pull in types which are
referenced through 'using' statements.
* tests/cedet/semantic/test/manual/cedet/testusing.cpp:
* tests/cedet/semantic/test/manual/cedet/testusing.hh: Add tests for
the above.
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
Ramkumar Ramachandra [Wed, 21 Jan 2015 22:50:26 +0000 (17:50 -0500)]
semantic/bovine/c: Parse C++11 strongly typed enum
* semantic/bovine/c.by (ENUM, opt-enum-type): Add opt-enum-type argument
to ENUM, that matches either a colon + typeformbase or nothing.
* semantic/bovine/c.el (semantic-c-reconstitute token): Add :enum-type.
Ramkumar Ramachandra [Sat, 17 Jan 2015 22:43:57 +0000 (17:43 -0500)]
semantic/bovine/c: Parse C++ override/final correctly
override and final are a perfectly good opt-post-fcn-modifiers in
C++. Parse them correctly. (Tiny change)
* semantic/bovine/c.by (post-fcn-modifiers): Add tokens OVERRIDE and
FINAL.
* semantic/bovine/c.el (semantic-c-reconstitute-token): Add
:override-flag and :final-flag.
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
Eric Ludlam [Sun, 20 Apr 2014 18:05:40 +0000 (14:05 -0400)]
Fake emacs.c for project detection purposes.
Eric Ludlam [Wed, 4 Jun 2014 01:50:51 +0000 (21:50 -0400)]
Erorr when appropriate
* test/manual/cedet/cedet-uutil.el: (cedet-utest-log-shutdown): This
should error when there are errors. (cedet-utest-log): Doc fix.
Eric Ludlam [Sat, 20 Aug 2011 17:03:24 +0000 (13:03 -0400)]
New file, derived from logging functions in cedet-utest.el
David Engster [Mon, 18 Nov 2013 22:11:17 +0000 (23:11 +0100)]
C++: Deal with 'using' statements when calculating scope
* semantic/bovine/c.el (semantic-ctxt-scoped-types): Go through all
tags around point and search them for using statements. Before, we
skipped the last one thinking that it would have to be function, but
it could also be a type.
* semantic/scope.el (semantic-completable-tags-from-type): When
creating the list of completable types, pull in types which are
referenced through 'using' statements.
* tests/cedet/semantic/test/manual/cedet/testusing.cpp:
* tests/cedet/semantic/test/manual/cedet/testusing.hh: Add tests for
the above.
David Engster [Wed, 18 Sep 2013 19:44:03 +0000 (21:44 +0200)]
C/C++: Parse 'using' statements in the correct order.
(c++-mode:semantic-ctxt-scoped-types): In the case for using
statements outside of function scope, append them in the correct order
instead of using 'cons'. This is important since using statements may
depend on previous ones.
* tests/cedet/semantic/test/manual/cedet/testusing.cpp: Add test for
the above.
David Engster [Sun, 15 Sep 2013 09:19:30 +0000 (11:19 +0200)]
Another 'using namespace' fix
(semantic-analyze-scoped-types-default): If we cannot find a type in
the typecache, also look into the the types we already found. This is
necessary since in C++, a 'using namespace' can be dependend on a
previous one.
* testusing.cpp: Add test for the above.
David Engster [Thu, 25 Oct 2012 18:38:27 +0000 (20:38 +0200)]
Simplify alias referencing and add tests.
* lisp/cedet/semantic/analyze.el (semantic-analyze-dereference-alias):
Only dereference first tag, since at least for C++ this is enough.
(semantic-analyze-current-context-default): Adapt comment.
* tests/cedet/semantic/test/manual/cedet/testusing.cpp: Add tests for
the above.
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
Eric Ludlam [Sun, 12 Apr 2015 01:13:02 +0000 (21:13 -0400)]
New test files combining macros and EDE
Alastair Rankine [Sun, 8 Mar 2015 19:02:24 +0000 (15:02 -0400)]
Add compdb EDE project
- Unit tests incorporated into cedet-utest, all passing
- Documentation still pending
David Engster [Sat, 31 Jan 2015 22:12:22 +0000 (23:12 +0100)]
eieio: Move to obsolete and use the one that ships with Emacs
* lisp/eieio: Move to obsolete.
* etc/fallback-libraries: Add eieio fallback libraries.
* Makefile (top-level): Remove eieio compilation and add compilation of
fallback eieio for Emacs 24.1 and 24.2. Throw error for Emacs 23.x.
* cedet-devel-load.el: Always require eieio at the top. Load
cedet-compat earlier. Remove advices for eieio helpers.
* cedet-remove-builtin.el: eieio must not be removed anymore.
* semantic/ede-grammar.el (semantic-ede-proj-target-grammar): Remove
cedet-compat from aux-packages initform, as it will be loaded by
cedet-devel-load anyway.
(ede-proj-makefile-insert-variables): Remove eieio from load-path.
* lisp/cedet/cedet-compat.el: Load fallback eieio for Emacs 24.1 and
24.2. Add new aliases for Emacs 24.3.
* Project.ede, Makefiles: Remove eieio and regenerate.
* tests: Remove eieio tests.
Eric Ludlam [Mon, 26 Jan 2015 22:29:38 +0000 (17:29 -0500)]
(cedet-utest-test-alist): Add ede-detect-linux-utest.
David Engster [Sun, 25 Jan 2015 22:05:25 +0000 (23:05 +0100)]
Tests: Add ERT test for the C Bovinator
* tests/cedet-utests.el (cedet/semantic/ert/test-c-parser): Require.
(cedet-utest-test-alist): Add new ERT test.
* tests/cedet/semantic/ert/test-c-parser.el: New file for testing the C
Bovinator. This tests the newly added typed enum rule.
Eric Ludlam [Wed, 22 Oct 2014 02:32:18 +0000 (22:32 -0400)]
Added security test
* test/manual/cedet/cedet-utests.el: (cedet/ede/secure-utest): New
require (cedet-utest-test-alist): Add ede-security-utest
Eric Ludlam [Thu, 22 May 2014 02:20:18 +0000 (22:20 -0400)]
(cedet-utest): Add EDE sanity check to the end.
Eric Ludlam [Sun, 20 Apr 2014 18:07:58 +0000 (14:07 -0400)]
Adedd `ede-detect-utest'
* test/manual/cedet/cedet-utests.el: (cedet/ede/detect-utest): New
require. (cedet-utest-test-alist): Add ede-detect-utest.
Eric Ludlam [Sat, 6 Apr 2013 11:47:48 +0000 (07:47 -0400)]
(cedet-utest-batch): Disable saving EDE's cache file.
David Engster [Sun, 22 Apr 2012 11:27:38 +0000 (13:27 +0200)]
Fix EIEIO methodinvoke-utest and semantic-fmt-utest.
* Makefile: Add tests/eieio to path for unit tests.
* tests/cedet-utest.el (cedet/semantic/fmt-utest): Require.
* tests/cedet/semantic/fmt-utest.el: Fix requires and rename
accordingly.
David Engster [Sun, 22 Apr 2012 10:52:47 +0000 (12:52 +0200)]
Fix merge error in unit tests.
David Engster [Thu, 1 Dec 2011 19:13:55 +0000 (20:13 +0100)]
Fix unit testing for several tests and do better error checking.
* semantic/lex-spp-utests.el (semantic-lex-spp-write-utest):
* tests/cedet-utests.el (cedet-utest-eieio-classloader): Throw
error if we cannot locate test files.
* semantic/utest-c.el (semantic-utest-c-compare)
(semantic-utest-c-conditionals):
* semantic/lex-spp-utest.el (semantic-lex-spp-write-utest): Adapt
to new directory structure and do better error checking to avoid
silent failures in the future.
David Engster [Sun, 27 Nov 2011 19:04:01 +0000 (20:04 +0100)]
Fix interactive unit tests.
* pulse-utest.el (pulse-test): Use normal overlay functions.
* cedet-utests.el (chart): Require.
David Engster [Tue, 1 Nov 2011 20:39:35 +0000 (21:39 +0100)]
Use `cedet-version' instead of `cedet-version-print'
* tests/cedet-utest.el: (cedet-utest-test-alist): Replace
`cedet-version-print' with `cedet-version.
Eric Ludlam [Sat, 20 Aug 2011 17:03:04 +0000 (13:03 -0400)]
Refactor tests
* test/manual/cedet/cedet-utests.el: (cedet-uutil): New require, plus
all other unit test files. (cedet-utest-test-alist): eieio now has
loader test fcn (below) Re-order srecode
tests. (cedet-running-master-tests): Move to cedet-uutil.
(cedet-utest): Fix symbol names for initializing the test suite.
(cedet-utest-noninteractive): Move to
cedet-uutil. (cedet-utest-batch): Init semantic the new
way. (cedet-utest-frame, cedet-utest-last-log-item,
cedet-utest-log-timer) (cedet-utest-log-setup,
cedet-utest-elapsed-time) (cedet-utest-log-shutdown,
cedet=utest-log-shutdown-msg) (cedet-utest-show-log-end,
cedet-utest-post-command-hook) (cedet-utest-add-log-item-start,
cedet-utest-add-log-item-done) (cedet-utest-log-start,
cedet-utest-log): Moved to cedet-util.el
(cedet-utest-eieio-classloader): New loader for the EIEIO tests.
Eric Ludlam [Thu, 23 Apr 2015 00:58:59 +0000 (20:58 -0400)]
New test file for unions.
David Engster [Mon, 4 Nov 2013 22:15:03 +0000 (23:15 +0100)]
Make unit tests use randomized file names
* tests/cedet/semantic/stltest.el:
* tests/cedet/semantic/utest-parse.el:
* tests/cedet/srecode/fields-utest.el:
* tests/cedet/srecode/test-getset.el:
* tests/cedet/srecode/test.el:
* tests/eieio/eieio-test-persist.el: Make all those tests use
`make-temp-name' for their test files, so that tests can run in
parallel.
Eric Ludlam [Sat, 20 Aug 2011 17:09:56 +0000 (13:09 -0400)]
Fix provide. (cedet-uutil, srecode/semantic): New requires.
xscript [Wed, 1 Jun 2011 00:28:30 +0000 (02:28 +0200)]
Synchronize cedet/srecode with Emacs.
xscript [Wed, 1 Jun 2011 00:28:30 +0000 (02:28 +0200)]
Synchronize cedet/srecode with Emacs.
Eric Ludlam [Wed, 3 Aug 2011 01:41:26 +0000 (21:41 -0400)]
(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.
David Engster [Tue, 19 Oct 2010 15:01:44 +0000 (17:01 +0200)]
Ignore Members On Extra Tags
* Test/Manual/Cedet/Cedet-Integ-Test.El (Cit-Srecode-Verify-Tags):
Ignore Members Attribute For Extra Tags. Necessary Because Of The
Latest Changes To Semantic-Tag-Similar-P.
Eric Ludlam [Tue, 19 Oct 2010 03:05:47 +0000 (23:05 -0400)]
Compare Code And Documtation For Tags
* Test/Manual/Cedet/Cedet-Integ-Test.El (Cit-Srecode-Verify-Tags):
When Comparing Tags, Add To Ignored Attribs, :Code And
:Documentation.
zappo [Sun, 13 Jun 2010 01:14:08 +0000 (01:14 +0000)]
Call external db testing suite
* test/manual/cedet/cedet-integ-test.el (Cit-Externaldb): New Require
(Cedet-Integ-Test-Proj): Call To Externaldb Testing Suite.
zappo [Sun, 18 Apr 2010 00:38:29 +0000 (00:38 +0000)]
Disable auto add, do shared-library-only test
for automake and show output
* test/manual/cedet/cedet-integ-test.el (cit-symref): New require.
(cedet-integ-test-proj): Disable auto add. Only do shared library
test with automake. (cit-run-target): Don't kill the buffer, wait
and show program output instead.
zappo [Tue, 16 Mar 2010 03:04:42 +0000 (03:04 +0000)]
Improve compilation error checking
* test/manual/cedet/cedet-integ-test.el (cit-compile-and-wait): Pull
out error checking. Add support for stripping erroneous
events. (cit-check-compilation-for-error): New, from above.
zappo [Sat, 26 Dec 2009 22:42:40 +0000 (22:42 +0000)]
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.
zappo [Sun, 18 Oct 2009 16:15:17 +0000 (16:15 +0000)]
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.
zappo [Thu, 15 Oct 2009 02:54:27 +0000 (02:54 +0000)]
Added lib dir and make-type argument
* test/manual/cedet/cedet-integ-test.el (cedet-integ-test-proj): Add a
lib dir. Add make-type arg to cit-remove-and-do-shared-lib call.
(cit-compile-and-wait): Accept an optional argument.
zappo [Mon, 14 Sep 2009 02:38:38 +0000 (02:38 +0000)]
(cedet-integ-test-proj): Add cit-remove-and-do-shared-lib.
zappo [Sat, 8 Aug 2009 22:15:54 +0000 (22:15 +0000)]
(cit-finish-message): Add a pause, then exit with a status of "1".
zappo [Sat, 8 Aug 2009 21:50:34 +0000 (21:50 +0000)]
(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.
zappo [Sat, 30 May 2009 14:18:35 +0000 (14:18 +0000)]
Added cit uml
* test/manual/cedet/cedet-integ-test.el (cit-uml): New require
(cogre): New require (cedet-integ-test): Make a UML test dir. Call
`cit-fill-uml'. (cit-compile-and-wait): Kill Project.ede buffer
after compilation.
zappo [Thu, 12 Mar 2009 02:26:52 +0000 (02:26 +0000)]
Added new subdir and ensure that the base dir
is made first
* test/manual/cedet/cedet-integ-test.el (cedet-integ-base): New, using
old target value. (cedet-integ-target): Subdir under base
(cedet-integ-test): Make the base dir first.
(cit-srecode-verify-tags): Fix paren typos on error condition.
zappo [Thu, 12 Mar 2009 02:06:02 +0000 (02:06 +0000)]
Set the auto-add-method to always during test
steps
* test/manual/cedet/cedet-integ-test.el
(cit-remove-add-to-project-cpp): Set auto-add-method to always during
step test.
zappo [Thu, 12 Mar 2009 02:03:45 +0000 (02:03 +0000)]
(ede, ede-make): New require (cit-srecode-verify-tags): Fix debugging output on failure. Patch from David Engster (cit-compile-and-wait): Use ede-make-command
zappo [Sat, 24 Jan 2009 04:56:26 +0000 (04:56 +0000)]
(cit-version): New variable. (semantic): New require
safanaj [Thu, 28 Aug 2008 23:17:26 +0000 (23:17 +0000)]
Added gnustep tests
* test/manual/cedet/cedet-integ-test.el Added stuff to test
ede-gnustep via `cit-ede-step-test' defined in cit-gnustep.el.
Something is not clear (ede-auto-add-method ???)
zappo [Sat, 23 Aug 2008 00:18:04 +0000 (00:18 +0000)]
Add whitespace at the end of a filled buffer
* test/manual/cedet/cedet-integ-test.el (cit-srecode-fill-with-stuff):
Protect erase-buffer call. Add extra whitespace at end of empty
filled buffers.
zappo [Tue, 11 Mar 2008 02:35:32 +0000 (02:35 +0000)]
(cedet-integ-test): Post a PASSED message.
zappo [Sun, 24 Feb 2008 18:22:28 +0000 (18:22 +0000)]
(cit-srec): New require (cedet-integ-test): Call srec test.
zappo [Sun, 24 Feb 2008 03:03:33 +0000 (03:03 +0000)]
Restructure and improve output
* test/manual/cedet/cedet-integ-test.el (cit-cpp,-el,-texi): Added
requires. (cedet-integ-test): Add in new calls to test support
files. (cit-header-tags, cit-src-tags, cit-main-tags,
cit-srecode-fill): Moved to cit-cpp.el (cit-srecode-fill-with-stuff):
Add empty-dict-entries argument. Add pauses for visual
effect. (cit-srecode-verify-tags): Fix to work, and actually throw an
error if things don't match up. (cit-tag-verify-error-debug): New
support class. (cit-compile-and-wait): New fcn. Error if compilation
fails.
zappo [Tue, 19 Feb 2008 03:41:04 +0000 (03:41 +0000)]
Update comments
* test/manual/cedet/cedet-integ-test.el (cedet-integ-test,
cit-srecode-fill, cit-srecode-fill-with-stuff): Updated comments.
zappo [Tue, 19 Feb 2008 03:36:20 +0000 (03:36 +0000)]
Integration Tests.
Eric Ludlam [Mon, 24 Nov 2014 17:38:04 +0000 (12:38 -0500)]
Test typedef which has the keyword "class" included
* test/manual/cedet/cedet/semantic/tests/testtypedefs.cpp:
(NS2::Myclass, MyClassHandle, dixon): New test w/ a typedef that has
keyword "class" included, instead of omitted as with other tests.
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
Eric Ludlam [Sat, 24 May 2014 00:58:34 +0000 (20:58 -0400)]
sample lib srces for dirmatch tests.
Eric Ludlam [Sat, 20 Aug 2011 16:58:58 +0000 (12:58 -0400)]
Add comments, require cedet-files.
xscript [Tue, 19 Apr 2011 01:33:49 +0000 (03:33 +0200)]
Synchronize base 'cedet' with Emacs
Eric Ludlam [Sun, 18 Oct 2015 14:11:33 +0000 (10:11 -0400)]
(isFooLike, A, B, main2): New test tweaked from example by Liang Wang
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
David Engster [Fri, 20 Sep 2013 19:54:31 +0000 (21:54 +0200)]
Fix parsing of default values and display them in default formatter
* semantic/bovine/c.by (variablearg, varnamelist): Add default values
so that it can be later expanded into the tag.
(opt-stuff-after-symbol): Rename to 'brackets-after-symbol' and
remove empty match.
(multi-stage-dereference): Adapt to above rename.
(unaryexpression): Use 'symbol' instead of 'namespace-symbol', since
the latter also leads to an empty match at the end which would make
this too greedy.
* semantic/format.el (semantic-format-tag-prototype-default):
Display default values if available.
* semantic/test/manual/cedet/test-fmt.cpp: Add default values.
Parsing of default values for variables and function arguments was
broken with the refactoring done in rev. 7622. While fixing this, it
turned out that our parser for expressions like
char *foo = NULL;
was too greedy and also covered the semicolon because of empty matches
in rules 'opt-stuff-after-symbol' and 'opt-template-specifier',
leading to a variable with a default-value of "NULL;". This was fixed
by removing the empty match in 'opt-stuff-after-symbol' and using
'symbol' instead of 'namespace-symbol'.
Alastair Rankine [Fri, 3 Apr 2015 17:46:57 +0000 (13:46 -0400)]
compdb: add project detection tests
Eric Ludlam [Sun, 22 Mar 2015 16:27:19 +0000 (12:27 -0400)]
(ede-detect-utest-init-dirmatch): Force the dirmatch configdatastash to be unbound to force arduino to flush any cached values.
David Engster [Sun, 15 Feb 2015 21:28:44 +0000 (22:28 +0100)]
tests: Fix typo in ede/detect-utest
This worked by chance on Emacs 24.x, but breaks on Emacs 25.
* test/manual/cedet/cedet/ede/detect-utest.el
Eric Ludlam [Sun, 19 Oct 2014 03:06:52 +0000 (23:06 -0400)]
Add a final call to ede list sanity check
* test/manual/cedet/cedet/ede/detect-utest.el:
(ede-detect-utest-loop): Add a final call to
`ede-global-list-sanity-check'.
Eric Ludlam [Sun, 24 Aug 2014 14:02:42 +0000 (10:02 -0400)]
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.
Eric Ludlam [Sun, 22 Jun 2014 00:36:58 +0000 (20:36 -0400)]
Fixes for test execution
* test/manual/cedet/cedet/ede/detect-utest.el: (ede-detect-entry):
Remove `found-state' slot as it was unused. (ede-detect-show-state):
When an error in init, show it. (ede-detect-utest-project-entries):
Add a linux driver test added where this dir would detect as generic
makefile, but it is in Linux. (ede-detect-utest-loop): Add better
failed load message.
Eric Ludlam [Fri, 6 Jun 2014 01:48:52 +0000 (21:48 -0400)]
(ede-detect-utest): Re-run tests with inode optimization disabled.
Eric Ludlam [Wed, 4 Jun 2014 01:59:30 +0000 (21:59 -0400)]
Major test restructure
* test/manual/cedet/cedet/ede/detect-utest.el:
(ede-ditect-utest-project-list): Deleted. Replaced
with... (ede-detect-utest-project-entries): New list of entries to
test. (ede-detect-utest-project-dirmatch-list): Deleted. Replaced
with ... (ede-detect-utest-project-dirmatch-entries): New list of
entries to test dirmatch with. (ede-detect-entry): New class for
storing test points. (ede-detect-entry::ede-detect-do-test)
(ede-detect-show-state, ede-detect-entry::ede-detect-state)
(ede-detect-entry::ede-detect-show-progress): New. ("UTESTCPP",
"UTESTJAVA"): Add :name to these projects. (ede-detect-utest):
Replace feature unloaded/loaded with calls to
`ede-detect-utest-validate-loadstate'. Change variables passed to
utest-loop. (ede-detect-utest-loop): Replace old refs into cons cells
with refs into the class. Replace all bit warnings by pushing text
into the test entry objects. Add double-initialze test. Add call to
project rescan. At end, dump out the state captured during testing.
(ede-detect-utest-rescan):
New. (ede-detect-utest-validate-loadstate): New, content copied from
`ede-detect-utest'. (dirmatchtest autoload): Add root-only as nil.
Eric Ludlam [Sun, 1 Jun 2014 02:02:48 +0000 (22:02 -0400)]
(ede-detect-utest-project-list): Add test for generic VC type project. (ede-detect-utest): Add fake autoloader for VC. (ede-detect-utest-generic-vc-p): New.
Eric Ludlam [Sat, 31 May 2014 22:00:13 +0000 (18:00 -0400)]
(ede-detect-utest-project-list): Add jvm-base projects for ant, lein, maven
Eric Ludlam [Fri, 30 May 2014 23:21:09 +0000 (19:21 -0400)]
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.
Eric Ludlam [Sat, 24 May 2014 01:58:31 +0000 (21:58 -0400)]
Added arduino project detection
* test/manual/cedet/cedet/ede/detect-utest.el:
(ede-detect-utest-project-dirmatch-list): Add arduino. Add subdir
tests for dirmatch and arudino. (ede-detect-utest): Also test for
arduino lib not loading/loading. (ede-detect-utest-arduino-fname):
New. (ede-detect-utest-init-dirmatch): Reconfigure for reading
arduino data out of temp created config files.
Eric Ludlam [Fri, 23 May 2014 10:24:02 +0000 (06:24 -0400)]
Additions to detection testing
* test/manual/cedet/cedet/ede/detect-utest.el:
(ede-detect-utest-project-list): Doc fix
(ede-detect-utest-project-dirmatch-list): New (ede-detect-utest):
Split out body. Pull up start/end logging. Add testing for dirmatch
not loaded/loaded. Add testing for the dirmatch project.
(ede-detect-utest-loop): Previous content of above.
Eric Ludlam [Thu, 22 May 2014 01:39:37 +0000 (21:39 -0400)]
(ede-detect-utest): Change message formatting.
Eric Ludlam [Sun, 18 May 2014 22:58:05 +0000 (18:58 -0400)]
Added cpproot and java root to detection tests
* test/manual/cedet/cedet/ede/detect-utest.el:
(ede-detect-utest-project-list): Add cpproot and javaroot. Add sub
dirs under project and automake types. (ede-detect-utest-basedir):
New function (UTESTCPP, UTESTJAVA): New. (ede-detect-utest): Improve
debug output for failed tests. (ede-detect-utest-subproj-p,
ede-detect-utest-subautomake-p): New.
Eric Ludlam [Sun, 20 Apr 2014 18:03:23 +0000 (14:03 -0400)]
New unit test for EDE project detection.
Eric Ludlam [Sun, 1 Jun 2014 02:02:01 +0000 (22:02 -0400)]
Test project file.
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
David Engster [Sun, 25 Jan 2015 22:10:13 +0000 (23:10 +0100)]
semantic/bovine/c: Add support for typedef references
* semantic/bovine/c.by (typedefname): Also parse optional
reference qualifier.
* semantic/bovine/c.el (semantic-expand-c-tag-namelist): Add :reference
attribute for typedefs.
* tests/cedet/semantic/ert/test-c-parser.el: Add tests for typedefs.
David Engster [Sun, 25 Jan 2015 22:05:25 +0000 (23:05 +0100)]
Tests: Add ERT test for the C Bovinator
* tests/cedet-utests.el (cedet/semantic/ert/test-c-parser): Require.
(cedet-utest-test-alist): Add new ERT test.
* tests/cedet/semantic/ert/test-c-parser.el: New file for testing the C
Bovinator. This tests the newly added typed enum rule.
Eric Ludlam [Wed, 4 Jun 2014 01:51:39 +0000 (21:51 -0400)]
Fix how the target file name is created
* test/manual/cedet/cedet/ede/detect-dirtest.el (ede-dirmatch-load):
Fix how target file name was created. (project-rescan): New.
Eric Ludlam [Fri, 23 May 2014 10:22:51 +0000 (06:22 -0400)]
New EDE project for testing dirmatch features.
Eric Ludlam [Thu, 2 Jan 2014 01:44:55 +0000 (20:44 -0500)]
Test files contributed by Barry OReilly
* test/manual/cedet/integ_src/globalref/inc/Util.hh: These test files
contributed by Barry OReilly, modified for use in the automated tests
for CEDET, and with additional comments. inc/Util.hh, src/Util.cc:
Search symbol both in and outside of namespaces.
David Engster [Thu, 28 Feb 2013 21:52:16 +0000 (22:52 +0100)]
Test `this' from in inline member functions
* tests/cedet/semantic/test/manual/cedet/testsubclass.cpp: Add test
for 'this' in inline member function.
David Engster [Thu, 28 Feb 2013 21:31:30 +0000 (22:31 +0100)]
Make 'this' a pointer.
* semantic/bovine/c.el (semantic-get-local-variables): The variable
'this' has to be a pointer.
* tests/cedet/semantic/test/manual/cedet/testsubclass.cpp: Adapt test
accordingly.
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
xscript [Sun, 15 May 2011 20:16:47 +0000 (22:16 +0200)]
Synchronize cedet/semantic with Emacs.
Eric Ludlam [Thu, 2 Jan 2014 01:44:55 +0000 (20:44 -0500)]
Tests contributed by Barry OReilly
* test/manual/cedet/integ_src/globalref/src/Util.cc: These test files
contributed by Barry OReilly, modified for use in the automated tests
for CEDET, and with additional comments. inc/Util.hh, src/Util.cc:
Search symbol both in and outside of namespaces.
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic
xscript [Sun, 15 May 2011 20:16:47 +0000 (22:16 +0200)]
Synchronize cedet/semantic with Emacs.
xscript [Sun, 15 May 2011 20:16:47 +0000 (22:16 +0200)]
Synchronize cedet/semantic with Emacs.
Eric Ludlam [Sun, 18 May 2014 22:56:11 +0000 (18:56 -0400)]
Test file for Project.ede proj.
David Engster [Sun, 27 Oct 2013 21:13:46 +0000 (22:13 +0100)]
Expand preprocessor to handle macros which open or close scope.
* semantic/lex-spp.el (semantic-c-end-of-macro): Declare.
(semantic-lex-spp-token-macro-to-macro-stream): Deal with macros which
open/close a scope. For this, leave an overlay if we encounter a
single open paren and return a semantic-list in the lexer. When this
list gets expanded, retrieve the old position from the overlay. See
the comments in the function for further details.
(semantic-lex-spp-find-closing-macro): New function to find the next
macro which closes scope (i.e., has a closing paren).
(semantic-lex-spp-replace-or-symbol-or-keyword): Go to end of closing
macro if necessary.
(semantic-lex-spp-paren-or-list): New lexer to specially deal with
parens in macro definitions.
* bovine/c.el (semantic-cpp-lexer): Use new
`semantic-lex-spp-paren-or-list'.
* tests/cedet/semantic/test/manual/cedet/testsppreplace.c:
* tests/cedet/semantic/test/manual/cedet/testsppreplaced.c: Add tests for the
above.