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.
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.
David Engster [Sat, 19 Oct 2013 11:35:06 +0000 (13:35 +0200)]
C/C++: Fix function pointer parsing
* semantic/bovine/c.by (variablearg-opt-name): Support parsing of
function pointers inside an argument list.
* semantic/bovine/c.el (semantic-c-reconstitute-token): Change
handling of function pointers; instead of seeing them as variables,
handle them as functions with a 'function-pointer' attribute. Also,
correctly deal with function pointers as function arguments.
(semantic-c-reconstitute-function-arglist): New function to parse
function pointers inside an argument list.
(semantic-format-tag-name): Use 'function-pointer' attribute instead
of the old 'functionpointer-flag'.
* tests/cedet/semantic/test/manual/cedet/testsppreplace.c:
* tests/cedet/semantic/test/manual/cedet/testsppreplaced.c: Disable
test which now breaks due to improved function pointer parsing.
This test is broken anyway, since it just succeeded because the
argument list was not parsed at all before this commit. The
underlying bug was always present in the semantic preprocessor.
David Engster [Mon, 4 Nov 2013 22:24:55 +0000 (23:24 +0100)]
Improve test utilities re complation and deletion
* tests/cedet-integ-test.el (cit-check-compilation-for-error): Use
correct format-string.
* cedet/semantic/stltest.el: Only delete test file if it exists (which
it shouldn't do, but still...).
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.
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.
David Engster [Sat, 19 Oct 2013 11:35:06 +0000 (13:35 +0200)]
C/C++: Fix function pointer parsing
* semantic/bovine/c.by (variablearg-opt-name): Support parsing of
function pointers inside an argument list.
* semantic/bovine/c.el (semantic-c-reconstitute-token): Change
handling of function pointers; instead of seeing them as variables,
handle them as functions with a 'function-pointer' attribute. Also,
correctly deal with function pointers as function arguments.
(semantic-c-reconstitute-function-arglist): New function to parse
function pointers inside an argument list.
(semantic-format-tag-name): Use 'function-pointer' attribute instead
of the old 'functionpointer-flag'.
* tests/cedet/semantic/test/manual/cedet/testsppreplace.c:
* tests/cedet/semantic/test/manual/cedet/testsppreplaced.c: Disable
test which now breaks due to improved function pointer parsing.
This test is broken anyway, since it just succeeded because the
argument list was not parsed at all before this commit. The
underlying bug was always present in the semantic preprocessor. ---
tests/cedet/semantic/test/manual/cedet/testsppreplace.c | 8 ++++++++
1 file changed, 8 insertions(+)
Eric Ludlam [Thu, 23 Oct 2014 02:05:36 +0000 (22:05 -0400)]
Added arduino and better suggestions
* test/manual/cedet/cedet/ede/secure-utest.el:
(ede-security-project-entries): Add arduino.
(ede-security-test-one-entry): Improve an error w/ suggestion on a
thing to fix.
Eric Ludlam [Wed, 22 Oct 2014 02:30:50 +0000 (22:30 -0400)]
Fixes for security tests
* test/manual/cedet/cedet/ede/secure-utest.el: (ede-security-entry):
Remove init-state, with[out]-permission
slots. (ede-security-project-entries): Add generic config based
projects. (ede-security-test-one-entry): Add long test for
configuration loading, and the security steps involved in making the
config load.
Eric Ludlam [Sun, 19 Oct 2014 03:08:00 +0000 (23:08 -0400)]
EDE security tests
Tests for the security system in EDE that marks some project types as
unsafe. This makes sure that the user isn't pestered too much, and
that if they say yes or no the right thing happens.
* 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.
David Engster [Thu, 13 Sep 2012 19:17:45 +0000 (21:17 +0200)]
Move Speedbar development to Emacs trunk.
Moved Speedbar, dframe, sb-image and documentation to obsolete.
Development of Speedbar now happens solely in Emacs trunk. This also
means that all other CEDET packages now depend on Speedbar from Emacs
proper.
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/test/ManagerTest.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 [Sun, 28 Jul 2013 11:24:40 +0000 (13:24 +0200)]
Remove compatibility function `cedet-called-interactively-p'.
* lisp/cedet/cedet-compat.el (cedet-called-interactively-p): Remove.
It is no longer needed since our minimum version is now 23.2, which
has `called-interactively-p'. Also, remove corresponding unit
tests.
* tests/cedet-utests.el (cedet-utest-test-alist): Remove cedet-compat
unit tests.
* All files: Replace `cedet-called-interactively-p' with
`called-interactively-p', providing 'any as argument where it was
still missing.
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/test/ManagerTest.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.
David Engster [Mon, 4 Nov 2013 21:31:41 +0000 (22:31 +0100)]
Use random temporary directory for integration tests
* tests/cedet-integ-test.el (cedet-integ-base): Use `make-temp-name'
so that integrations tests can run in parallel.
(cedet-integ-test-proj): Delete it after usage.
(cit-check-compilation-for-error): Show compilation output in
batch-mode.
* tests/cit-test.sh: Do not remove temporary directory.
safanaj [Thu, 28 Aug 2008 23:10:25 +0000 (23:10 +0000)]
Remove more temporary directories
* test/manual/cedet/cit-test.sh: remove more dirs because to test
ede-gnustep we need another dir, this is because `ede-new' check the
:class-sym that don't match in /tmp/CEDET_INTEG (that contain a
ede-proj-project).
Eric Ludlam [Thu, 2 Jan 2014 01:44:55 +0000 (20:44 -0500)]
Test files contributed by Barry OReilly
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.
Eric Ludlam [Thu, 2 Jan 2014 01:44:55 +0000 (20:44 -0500)]
Add test files
* test/manual/cedet/integ_src/globalref/src/Manager.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.