summaryrefslogtreecommitdiff
path: root/test/lisp/cedet
Commit message (Collapse)AuthorAgeFilesLines
* Factor out function to check for clang in testsStefan Kangas2022-01-311-8/+3
| | | | | | | | | | | | | | | This also stops a flymake test from failing on my machine. * lisp/emacs-lisp/ert-x.el (ert-gcc-is-clang-p): New function factored out from ... * test/lisp/progmodes/flymake-tests.el (flymake-tests--gcc-is-clang): * test/lisp/cedet/semantic/bovine/gcc-tests.el (semantic-gcc-test-output-parser-this-machine): ... here. * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types) (included-c-header-files): * test/lisp/cedet/semantic/bovine/gcc-tests.el (semantic-gcc-test-output-parser-this-machine): Use above new function.
* Merge from origin/emacs-28Eli Zaretskii2022-01-0130-30/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-0130-30/+31
| |
* | Fix test lisp/cedet/semantic/bovine/gcc-tests on macOS (Bug#52431)Philipp Stephani2021-12-281-1/+1
| | | | | | | | | | | | * test/lisp/cedet/semantic/bovine/gcc-tests.el (semantic-gcc-test-output-parser-this-machine): Also detect Apple clang on macOS Monterey.
* | Update bovine/gcc-tests for newer Macos versionsLars Ingebrigtsen2021-12-121-2/+3
| | | | | | | | | | | | * test/lisp/cedet/semantic/bovine/gcc-tests.el (semantic-gcc-test-output-parser-this-machine): Update gcc->llvm detection to Macos Monterey.
* | Fix usage of deprecated syntax in some cedet testsMichael Levine2021-12-021-13/+10
|/ | | | | * test/lisp/cedet/srecode/fields-tests.el (srecode-field-utest-impl): Fix deprecated syntax.
* Fix a semantic test on some macOS machinesStefan Kangas2021-10-171-1/+6
| | | | | | * test/lisp/cedet/semantic/bovine/gcc-tests.el (semantic-gcc-test-output-parser-this-machine): Fix test on some macOS machines where running "gcc" runs "llvm" instead.
* ; Minor stylistic checkdoc fixes in test/**/*.elStefan Kangas2021-09-264-6/+7
|
* ; Normalize and add missing first and last linesStefan Kangas2021-04-191-1/+1
|
* Fix copyright lines mistakenly treated as outline headersStefan Monnier2021-03-185-5/+5
| | | | | | | | | | | * lisp/emacs-lisp/generator.el: * test/lisp/cedet/semantic-utest.el: * test/lisp/cedet/semantic/format-tests.el: * test/lisp/cedet/semantic/fw-tests.el: * test/lisp/cedet/semantic/bovine/gcc-tests.el: * test/lisp/cedet/semantic/format-resources/test-fmt.el: * test/manual/cedet/semantic-tests.el: * lisp/obsolete/inversion.el: Use only 2 semi-colons before "Copyright".
* * lisp/cedet/semantic/bovine.el: Fix recent regressionStefan Monnier2021-03-071-2/+1
| | | | | | | | | | | | | | | | | | | The conversion to `lexical-binding` introduced a regression because `bovine/c.el` relied on inspecting the local variable `lse` in one of its callers. (semantic-bovinate-stream): Bind `lse` dynamically, because of `semantic-parse-region-c-mode`. (semantic-bovinate-nonterminal-check-map): Rename from `semantic-bovinate-nonterminal-check-obarray` to hold some other kind of table. (semantic-bovinate-nonterminal-check): Use a hash-table instead of an obarray. * lisp/cedet/semantic/bovine/c.el (semantic-parse-region-c-mode): Declare use of `lse` via dynamic scoping. * test/lisp/cedet/semantic-utest-c.el (semantic-test-c-preprocessor-simulation): Re-enable test.
* Tag a semantic test that seems to hang recentlyGlenn Morris2021-03-071-1/+1
| | | | | * test/lisp/cedet/semantic-utest-c.el (semantic-test-c-preprocessor-simulation): Mark as unstable.
* Make inversion.el obsolete (Bug#46841)Stefan Kangas2021-03-031-81/+0
| | | | | | | | | | | | | | | | | | | | * lisp/cedet/inversion.el: * test/lisp/cedet/inversion-tests.el: Move from here... * lisp/obsolete/inversion.el: * test/lisp/obsolete/inversion-tests.el: ...to here. * lisp/cedet/cedet.el (cedet-version): Make obsolete. * lisp/cedet/cedet-cscope.el (cedet-cscope-version-check): * lisp/cedet/cedet-global.el (cedet-gnu-global-version-check): * lisp/cedet/cedet-idutils.el (cedet-idutils-version-check): * lisp/cedet/ede/make.el (ede-make-check-version): Use 'version<' instead of 'inversion-check-version'. * lisp/cedet/semantic/db-file.el (semanticdb-load-database): Don't use 'inversion-test'. * lisp/cedet/semantic/ede-grammar.el (ede-proj-makefile-insert-variables): Don't add inversion to loadpath. * lisp/speedbar.el: Remove stale comment.
* Move cedet test resource files to follow our conventionsStefan Kangas2021-02-1021-49/+2303
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/cedet/semantic-utest-ia.el (ert, ert-x): Require. (cedet-utest-directory, semantic-utest-test-directory): Remove variables. (semantic-utest-ia-doublens.cpp, semantic-utest-ia-subclass.cpp) (semantic-utest-ia-typedefs.cpp, semantic-utest-ia-struct.cpp) (semantic-utest-ia-templates.cpp, semantic-utest-ia-using.cpp) (semantic-utest-ia-nsp.cpp, semantic-utest-ia-localvars.cpp) (semantic-utest-ia-namespace.cpp) (semantic-utest-ia-sppcomplete.c, semantic-utest-ia-varnames.c) (semantic-utest-ia-javacomp.java) (semantic-utest-ia-varnames.java, semantic-utest-ia-wisent.wy) (semantic-utest-ia-texi, semantic-utest-ia-make) (semantic-utest-ia-srecoder): Use 'ert-resource-file'. Don't check if file exists; we can assume that it does. * test/manual/cedet/tests/testjavacomp.java: * test/manual/cedet/tests/testlocalvars.cpp: * test/manual/cedet/tests/testnsp.cpp: * test/manual/cedet/tests/testsppcomplete.c: * test/manual/cedet/tests/teststruct.cpp: * test/manual/cedet/tests/testsubclass.cpp: * test/manual/cedet/tests/testsubclass.hh: * test/manual/cedet/tests/testtemplates.cpp: * test/manual/cedet/tests/testtypedefs.cpp: * test/manual/cedet/tests/testusing.cpp: * test/manual/cedet/tests/testusing.hh: * test/manual/cedet/tests/testvarnames.c: * test/manual/cedet/tests/testvarnames.java: * test/manual/cedet/tests/testwisent.wy: Move from here... * test/lisp/cedet/semantic-utest-ia-resources/testjavacomp.java: * test/lisp/cedet/semantic-utest-ia-resources/testlocalvars.cpp: * test/lisp/cedet/semantic-utest-ia-resources/testnsp.cpp: * test/lisp/cedet/semantic-utest-ia-resources/testsppcomplete.c: * test/lisp/cedet/semantic-utest-ia-resources/teststruct.cpp: * test/lisp/cedet/semantic-utest-ia-resources/testsubclass.cpp: * test/lisp/cedet/semantic-utest-ia-resources/testsubclass.hh: * test/lisp/cedet/semantic-utest-ia-resources/testtemplates.cpp: * test/lisp/cedet/semantic-utest-ia-resources/testtypedefs.cpp: * test/lisp/cedet/semantic-utest-ia-resources/testusing.cpp: * test/lisp/cedet/semantic-utest-ia-resources/testusing.hh: * test/lisp/cedet/semantic-utest-ia-resources/testvarnames.c: * test/lisp/cedet/semantic-utest-ia-resources/testvarnames.java: * test/lisp/cedet/semantic-utest-ia-resources/testwisent.wy: ...to here.
* Convert tests for srecode/fields.el to ertStefan Kangas2021-02-101-0/+238
| | | | | | | | | | * test/manual/cedet/srecode-tests.el: Move from here... * test/lisp/cedet/srecode/fields-tests.el: ...to here. (srecode-field-utest-impl): Convert test to ert. Silence byte-compiler. * test/manual/cedet/cedet-utests.el (cedet-utest-libs): Don't list the above moved file.
* ; * test/lisp/cedet/semantic/format-tests.el: Minor cleanup.Stefan Kangas2021-02-101-62/+46
|
* Move semantic/format.el tests to follow our conventionsStefan Kangas2021-02-103-27/+184
| | | | | | | | | | | * test/lisp/cedet/semantic-utest-fmt.el: Move from here... * test/lisp/cedet/semantic/format-tests.el: ...to here. (ert, ert-x): Require. (semantic-fmt-utest-file-list): Use ert-resource-file. * test/manual/cedet/tests/test-fmt.cpp: * test/manual/cedet/tests/test-fmt.el: Move from here... * test/lisp/cedet/semantic/format-resources/test-fmt.cpp: * test/lisp/cedet/semantic/format-resources/test-fmt.el: ...to here.
* Convert many manual cedet tests to ertStefan Kangas2021-02-105-0/+389
| | | | | | | | | | | | | | | | | | | | | | | * test/manual/cedet/cedet-utests.el (cedet-files-utest): Move test from here... * test/lisp/cedet/cedet-files-tests.el: ...to this new file. * test/manual/cedet/srecode-tests.el (srecode-document-function-comment-extract-test): Move test from here... * test/lisp/cedet/srecode/document-tests.el: ...to this new file. * test/manual/cedet/cedet-utests.el (inversion-unit-test): Move test from here... * test/lisp/cedet/inversion-tests.el: ...to this new file. * test/manual/cedet/semantic-tests.el (semantic-gcc-test-output-parser): Move test from here... * test/lisp/cedet/semantic/bovine/gcc-tests.el: ...to this new file. * test/manual/cedet/semantic-tests.el (semantic-test-data-cache): Move test from here... * test/lisp/cedet/semantic/fw-tests.el: ...to this new file.
* Use skip-unless instead of if+message in testStefan Kangas2021-01-131-4/+2
| | | | | * test/lisp/cedet/semantic-utest.el (semantic-utest-Javascript): Use skip-unless instead of if+message.
* Remove some XEmacs compat code from testsStefan Kangas2021-01-132-6/+1
| | | | | | | * test/lisp/cedet/srecode-utest-getset.el (srecode-utest-getset-output): * test/lisp/cedet/srecode-utest-template.el (srecode-utest-template-output): Remove XEmacs compat code.
* Merge from origin/emacs-27Paul Eggert2021-01-011-1/+1
|\ | | | | | | 33d159c36f Fix copyright years by hand
| * Fix copyright years by handPaul Eggert2021-01-011-1/+1
| | | | | | | | These are dates that admin/update-copyright did not update.
| * Update copyright year to 2021Paul Eggert2021-01-015-5/+5
| | | | | | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* | Update copyright year to 2021Paul Eggert2021-01-015-5/+5
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Disable some semantic tests on systems without g++Lars Ingebrigtsen2020-12-251-0/+2
| | | | | | | | | | * test/lisp/cedet/semantic-utest-ia.el: Disable g++ tests on systems without g++.
* | Remove some compat code for old versions and XEmacsStefan Kangas2020-11-191-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ibuf-ext.el (ibuffer-old-saved-filters-warning) (ibuffer-maybe-save-stuff): Assume customize-save-variable is bound; it is autoloaded. * lisp/cedet/semantic/symref/grep.el (semantic-symref-perform-search): * lisp/password-cache.el (password-cache-remove): * lisp/cedet/semantic/bovine/el.el (semantic-dependency-tag-file): Remove Emacs 21 compat code. * lisp/cedet/semantic/sort.el (semantic-string-lessp-ci): Remove Emacs 20 compat code. * test/lisp/cedet/semantic-utest.el (semantic-utest-temp-directory): * lisp/mail/supercite.el (sc-ask): Remove XEmacs compat code. * lisp/progmodes/idlw-shell.el (idlwave-shell-mode): * lisp/progmodes/idlwave.el (idlwave-mode): Remove commented out compat code.
* | Mark some tests as expensiveStefan Kangas2020-09-102-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/autorevert-tests.el (auto-revert-test00-auto-revert-mode) (auto-revert-test03-auto-revert-tail-mode) (auto-revert-test04-auto-revert-mode-dired): * test/lisp/cedet/semantic-utest-c.el (semantic-test-c-preprocessor-simulation): * test/lisp/cedet/srecode-utest-getset.el (srecode-utest-getset-output): * test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-test-bug24264): * test/lisp/emacs-lisp/package-tests.el (package-test-update-archives-async): * test/lisp/filenotify-tests.el (file-notify-test03-events) (file-notify-test04-autorevert) (file-notify-test05-file-validity, file-notify-test08-backup): * test/lisp/net/gnutls-tests.el (test-gnutls-005-aead-ciphers): * test/lisp/shadowfile-tests.el (shadow-test00-clusters) (shadow-test09-shadow-copy-files):
* | Use lexical-binding in semantic-utest-c.elStefan Kangas2020-09-101-28/+29
| | | | | | | | | | * test/lisp/cedet/semantic-utest-c.el: Use lexical-binding. (semantic-test-gcc-output-parser): Fix warning.
* | srecode-utest-project test should now work on Hydra, hopefullyLars Ingebrigtsen2020-08-181-1/+0
| |
* | Fix a big in the srecore test setupLars Ingebrigtsen2020-08-181-0/+4
| | | | | | | | | | | | | | | | * test/lisp/cedet/srecode-utest-template.el (srecode-utest-project): Set the current directory in the project so that we'll find it later (bug#42533). The in-project directory is /tmp, which is not actually what it is on many machines that have the temporary directory somewhere else.
* | Use lexical-binding in most semantic testsStefan Kangas2020-04-285-25/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/cedet/semantic-utest-fmt.el: * test/lisp/cedet/semantic-utest-ia.el: * test/lisp/cedet/semantic-utest.el: * test/lisp/cedet/srecode-utest-getset.el: * test/lisp/cedet/srecode-utest-template.el: Use lexical-binding. * test/lisp/cedet/semantic-utest-fmt.el (semantic-fmt-utest): * test/lisp/cedet/semantic-utest.el (semantic-utest-generic) (semantic-utest-Python, semantic-utest-Javascript) (semantic-utest-Java, semantic-utest-Makefile) (semantic-utest-Scheme, semantic-utest-Html, semantic-utest-PHP) (semantic-utest-Csharp, semantic-utest-last-invalid): * test/lisp/cedet/semantic-utest-ia.el (semantic-ia-utest-buffer) (semantic-symref-test-count-hits-in-tag): * test/lisp/cedet/srecode-utest-getset.el (srecode-insert-getset-fully-automatic-flag): Silence byte-compiler.
* | Don't skip test semantic-utest-PythonStefan Kangas2020-04-281-1/+1
|/ | | | | * test/lisp/cedet/semantic-utest.el (semantic-utest-Python): Ensure test is not skipped.
* Fix copyright years by handPaul Eggert2020-01-011-1/+1
| | | | These are dates that admin/update-copyright did not update.
* Update copyright year to 2020Paul Eggert2020-01-015-5/+5
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* ; Spelling fixesPaul Eggert2019-12-102-2/+1
|
* Spelling fixesPaul Eggert2019-12-091-1/+1
|
* * test/lisp/cedet/semantic-utest-ia.el: Update from upstreamEric Ludlam2019-10-311-15/+92
| | | | | | | | | | | | | | | | | Merge content from CEDET on SF to bring in additional test points and support more types of languages. (semantic-utest-ia-struct.cpp, semantic-utest-ia-templates.cpp) (semantic-utest-ia-using.cpp, semantic-utest-ia-nsp.cpp) (semantic-utest-ia-localvars.cpp, semantic-utest-ia-varnamse.java) (semantic-utest-ia-wisent.wy, semantic-utest-ia-texi) (semantic-utest-ia-make, semantic-utest-ia-srecoder): New test points (semantic-ia-utest-buffer): Use comment-start-skip when looking for test point tokens. Capture errors ignoring debugger to enable test for empty results. Improve output from test diagnostics. (semantic-ia-utest-buffer-refs): Use comment-start-skip to find test point tokens. Author: Eric Ludlam <zappo@gnu.org>
* * test/lisp/cedet/semantic-utest: silence compiler warningsEric Ludlam2019-10-272-28/+4
| | | | | | | | | | * test/lisp/cedet/semantic-utest-c.el (semantic-test-c-preprocessor-simulation): Use with-current-buffer. * test/lisp/cedet/semantic-utest.el (semantic-utest-makebuffer): Use read-only-mode. (semantic-utest-verify-names-jave, semantic-utest-verify-names-2): Remove functions, unused.
* Set expected result for a cedet testGlenn Morris2019-10-221-1/+2
| | | | | * test/lisp/cedet/srecode-utest-template.el (srecode-utest-project): Test fails on hydra.nixos.org, for some reason.
* Fix test data broken by removing trailing whitespace.Eric Ludlam2019-10-151-4/+2
|
* Adapt the CEDET SRecoder getset tests to use ERTEric Ludlam2019-10-151-0/+177
| | | | | These tests were copied from CEDET from SourceForge. Author: Eric Ludlam <zappo@gnu.org>
* Adapt the CEDET SRecoder template test to use ERTEric Ludlam2019-10-151-0/+379
| | | | | These tests were copied from CEDET from SourceForge. Author: Eric Ludlam <zappo@gnu.org>
* Copy CEDET/Semantic's tag formatter test suite to be anEric Ludlam2019-10-151-0/+129
| | | | | | automated test. These tests were copied from CEDET on Sourceforge and adapted to use ERT. Author: Eric Ludlam <zappo@gnu.org>
* Convert manual CEDET tests from test/manual/cedet to beEric Ludlam2019-10-153-0/+1415
automated tests in test/lisp/cedet. Author: Eric Ludlam <zappo@gnu.org>