]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years agoNew file, derived from logging functions in cedet-utest.el
Eric Ludlam [Sat, 20 Aug 2011 17:03:24 +0000 (13:03 -0400)]
New file, derived from logging functions in cedet-utest.el

7 years agoC++: Deal with 'using' statements when calculating scope
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.

7 years agoC/C++: Parse 'using' statements in the correct order.
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.

7 years agoAnother 'using namespace' fix
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.

7 years agoSimplify alias referencing and add tests.
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.

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoNew test files combining macros and EDE
Eric Ludlam [Sun, 12 Apr 2015 01:13:02 +0000 (21:13 -0400)]
New test files combining macros and EDE

7 years agoAdd compdb EDE project
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

7 years agoeieio: Move to obsolete and use the one that ships with Emacs
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.

7 years ago(cedet-utest-test-alist): Add ede-detect-linux-utest.
Eric Ludlam [Mon, 26 Jan 2015 22:29:38 +0000 (17:29 -0500)]
(cedet-utest-test-alist): Add ede-detect-linux-utest.

7 years agoTests: Add ERT test for the C Bovinator
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.

7 years agoAdded security test
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

7 years ago(cedet-utest): Add EDE sanity check to the end.
Eric Ludlam [Thu, 22 May 2014 02:20:18 +0000 (22:20 -0400)]
(cedet-utest): Add EDE sanity check to the end.

7 years agoAdedd `ede-detect-utest'
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.

7 years ago(cedet-utest-batch): Disable saving EDE's cache file.
Eric Ludlam [Sat, 6 Apr 2013 11:47:48 +0000 (07:47 -0400)]
(cedet-utest-batch): Disable saving EDE's cache file.

7 years agoFix EIEIO methodinvoke-utest and semantic-fmt-utest.
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.

7 years agoFix merge error in unit tests.
David Engster [Sun, 22 Apr 2012 10:52:47 +0000 (12:52 +0200)]
Fix merge error in unit tests.

7 years agoFix unit testing for several tests and do better error checking.
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.

7 years agoFix interactive unit tests.
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.

7 years agoUse `cedet-version' instead of `cedet-version-print'
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.

7 years agoRefactor tests
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.

7 years agoNew test file for unions.
Eric Ludlam [Thu, 23 Apr 2015 00:58:59 +0000 (20:58 -0400)]
New test file for unions.

7 years agoMake unit tests use randomized file names
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.

7 years agoFix provide. (cedet-uutil, srecode/semantic): New requires.
Eric Ludlam [Sat, 20 Aug 2011 17:09:56 +0000 (13:09 -0400)]
Fix provide. (cedet-uutil, srecode/semantic): New requires.

7 years agoSynchronize cedet/srecode with Emacs.
xscript [Wed, 1 Jun 2011 00:28:30 +0000 (02:28 +0200)]
Synchronize cedet/srecode with Emacs.

7 years agoSynchronize cedet/srecode with Emacs.
xscript [Wed, 1 Jun 2011 00:28:30 +0000 (02:28 +0200)]
Synchronize cedet/srecode with Emacs.

7 years ago(Cit-Android): New Require. (Cedet-Integ-Test-Gnustep): Fix Typo. (Cedet-Integ-Test...
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.

7 years agoIgnore Members On Extra Tags
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.

7 years agoCompare Code And Documtation For Tags
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.

7 years agoCall external db testing suite
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.

7 years agoDisable auto add, do shared-library-only test
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.

7 years agoImprove compilation error checking
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.

7 years agoMove compilation error handling to new function
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.

7 years agoInsert tag's code if it's there
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.

7 years agoAdded lib dir and make-type argument
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.

7 years ago(cedet-integ-test-proj): Add cit-remove-and-do-shared-lib.
zappo [Mon, 14 Sep 2009 02:38:38 +0000 (02:38 +0000)]
(cedet-integ-test-proj): Add cit-remove-and-do-shared-lib.

7 years ago(cit-finish-message): Add a pause, then exit with a status of "1".
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".

7 years ago(cedet-integ-test-Make,cedet-integ-test-Automake,cedet-integ-test-GNUStep): New ...
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.

7 years agoAdded cit uml
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.

7 years agoAdded new subdir and ensure that the base dir
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.

7 years agoSet the auto-add-method to always during test
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.

7 years ago(ede, ede-make): New require (cit-srecode-verify-tags): Fix debugging output on failu...
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

7 years ago(cit-version): New variable. (semantic): New require
zappo [Sat, 24 Jan 2009 04:56:26 +0000 (04:56 +0000)]
(cit-version): New variable. (semantic): New require

7 years agoAdded gnustep tests
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 ???)

7 years agoAdd whitespace at the end of a filled buffer
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.

7 years ago(cedet-integ-test): Post a PASSED message.
zappo [Tue, 11 Mar 2008 02:35:32 +0000 (02:35 +0000)]
(cedet-integ-test): Post a PASSED message.

7 years ago(cit-srec): New require (cedet-integ-test): Call srec test.
zappo [Sun, 24 Feb 2008 18:22:28 +0000 (18:22 +0000)]
(cit-srec): New require (cedet-integ-test): Call srec test.

7 years agoRestructure and improve output
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.

7 years agoUpdate comments
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.

7 years agoIntegration Tests.
zappo [Tue, 19 Feb 2008 03:36:20 +0000 (03:36 +0000)]
Integration Tests.

7 years agoTest typedef which has the keyword "class" included
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.

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agosample lib srces for dirmatch tests.
Eric Ludlam [Sat, 24 May 2014 00:58:34 +0000 (20:58 -0400)]
sample lib srces for dirmatch tests.

7 years agoAdd comments, require cedet-files.
Eric Ludlam [Sat, 20 Aug 2011 16:58:58 +0000 (12:58 -0400)]
Add comments, require cedet-files.

7 years agoSynchronize base 'cedet' with Emacs
xscript [Tue, 19 Apr 2011 01:33:49 +0000 (03:33 +0200)]
Synchronize base 'cedet' with Emacs

7 years ago(isFooLike, A, B, main2): New test tweaked from example by Liang Wang
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

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoFix parsing of default values and display them in default formatter
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'.

7 years agocompdb: add project detection tests
Alastair Rankine [Fri, 3 Apr 2015 17:46:57 +0000 (13:46 -0400)]
compdb: add project detection tests

7 years ago(ede-detect-utest-init-dirmatch): Force the dirmatch configdatastash to be unbound...
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.

7 years agotests: Fix typo in ede/detect-utest
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

7 years agoAdd a final call to ede list sanity check
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'.

7 years agodetect-utest.el: (ede-detect-utest-configdir): New fcn (ede-detect-utest-arduino...
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.

7 years agoFixes for test execution
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.

7 years ago(ede-detect-utest): Re-run tests with inode optimization disabled.
Eric Ludlam [Fri, 6 Jun 2014 01:48:52 +0000 (21:48 -0400)]
(ede-detect-utest): Re-run tests with inode optimization disabled.

7 years agoMajor test restructure
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.

7 years ago(ede-detect-utest-project-list): Add test for generic VC type project. (ede-detect...
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.

7 years ago(ede-detect-utest-project-list): Add jvm-base projects for ant, lein, maven
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

7 years agoAdditions to generic project testing
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.

7 years agoAdded arduino project detection
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.

7 years agoAdditions to detection testing
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.

7 years ago(ede-detect-utest): Change message formatting.
Eric Ludlam [Thu, 22 May 2014 01:39:37 +0000 (21:39 -0400)]
(ede-detect-utest): Change message formatting.

7 years agoAdded cpproot and java root to detection tests
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.

7 years agoNew unit test for EDE project detection.
Eric Ludlam [Sun, 20 Apr 2014 18:03:23 +0000 (14:03 -0400)]
New unit test for EDE project detection.

7 years agoTest project file.
Eric Ludlam [Sun, 1 Jun 2014 02:02:01 +0000 (22:02 -0400)]
Test project file.

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agosemantic/bovine/c: Add support for typedef references
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.

7 years agoTests: Add ERT test for the C Bovinator
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.

7 years agoFix how the target file name is created
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.

7 years agoNew EDE project for testing dirmatch features.
Eric Ludlam [Fri, 23 May 2014 10:22:51 +0000 (06:22 -0400)]
New EDE project for testing dirmatch features.

7 years agoTest files contributed by Barry OReilly
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.

7 years agoTest `this' from in inline member functions
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.

7 years agoMake 'this' a pointer.
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.

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoSynchronize cedet/semantic with Emacs.
xscript [Sun, 15 May 2011 20:16:47 +0000 (22:16 +0200)]
Synchronize cedet/semantic with Emacs.

7 years agoTests contributed by Barry OReilly
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.

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoSynchronize cedet/semantic with Emacs.
xscript [Sun, 15 May 2011 20:16:47 +0000 (22:16 +0200)]
Synchronize cedet/semantic with Emacs.

7 years agoSynchronize cedet/semantic with Emacs.
xscript [Sun, 15 May 2011 20:16:47 +0000 (22:16 +0200)]
Synchronize cedet/semantic with Emacs.

7 years agoTest file for Project.ede proj.
Eric Ludlam [Sun, 18 May 2014 22:56:11 +0000 (18:56 -0400)]
Test file for Project.ede proj.

7 years agoExpand preprocessor to handle macros which open or close scope.
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.

7 years agoC/C++: Fix function pointer parsing
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.

7 years agoMove tests in cedet/semantic
xscript [Fri, 29 Apr 2011 00:32:56 +0000 (02:32 +0200)]
Move tests in cedet/semantic

7 years agoImprove test utilities re complation and deletion
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...).

7 years agoMake unit tests use randomized file names
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.

7 years agoAdded new file to test completion on STL classes and namespace.
David Engster [Sat, 27 Oct 2012 21:21:51 +0000 (23:21 +0200)]
Added new file to test completion on STL classes and namespace.

* tests/cedet/semantic/stltest.el: New file to test completion on STL
  classes and namespace.

7 years agoSynchronize cedet/semantic with Emacs.
xscript [Sun, 15 May 2011 20:16:47 +0000 (22:16 +0200)]
Synchronize cedet/semantic with Emacs.

7 years agoNew test file.
Eric Ludlam [Fri, 30 May 2014 23:18:45 +0000 (19:18 -0400)]
New test file.