1. 12 Jul, 2021 1 commit
    • Paul Eggert's avatar
      Port test module to glibc 2.33 · a79c578f
      Paul Eggert authored
      * test/Makefile.in (REPLACE_FREE, FREE_SOURCE_0, FREE_SOURCE_1):
      New macros.
      ($(test_module)): Improve accuracy of test as to whether free.c
      should be compiled; glibc 2.33 does not need it compiled and the
      compilation breaks if you try, if you build with
  2. 10 May, 2021 2 commits
  3. 10 Apr, 2021 1 commit
    • Philipp Stephani's avatar
      Add a helper binary to create a basic Secure Computing filter. · 1060289f
      Philipp Stephani authored
      The binary uses the 'seccomp' helper library.  The library isn't
      needed to load the generated Secure Computing filter.
      * configure.ac: Check for 'seccomp' header and library.
      * lib-src/seccomp-filter.c: New helper binary to generate a generic
      Secure Computing filter for GNU/Linux.
      * lib-src/Makefile.in (DONT_INSTALL): Add 'seccomp-filter' helper
      binary if possible.
      (all): Add Secure Computing filter file if possible.
      (seccomp-filter$(EXEEXT)): Compile helper binary.
      (seccomp-filter.bpf seccomp-filter.pfc): Generate filter files.
      * test/src/emacs-tests.el (emacs-tests/seccomp/allows-stdout)
      (emacs-tests/seccomp/forbids-subprocess): New unit tests.
      * test/Makefile.in (src/emacs-tests.log): Add dependency on the helper
  4. 21 Mar, 2021 1 commit
  5. 07 Mar, 2021 1 commit
    • Glenn Morris's avatar
      Simplify silent-rules build machinery · d632622b
      Glenn Morris authored
      * src/verbose.mk.in: New file.
      * configure.ac (AM_V, AM_DEFAULT_V): Remove output variables.
      (src/verbose.mk): New output file.
      * Makefile.in, admin/charsets/Makefile.in:
      * admin/grammars/Makefile.in, admin/unidata/Makefile.in:
      * doc/emacs/Makefile.in, doc/lispintro/Makefile.in:
      * doc/lispref/Makefile.in, doc/misc/Makefile.in, leim/Makefile.in:
      * lib-src/Makefile.in, lib/Makefile.in, lisp/Makefile.in:
      * lwlib/Makefile.in, nt/Makefile.in, oldXMenu/Makefile.in:
      * src/Makefile.in, src/verbose.mk.in, test/Makefile.in:
      Include src/verbose.mk rather than repeatedly defining AM_V_at etc.
  6. 21 Feb, 2021 1 commit
    • Stefan Kangas's avatar
      Run admin/cus-tests.el tests from test suite · 2790c6a5
      Stefan Kangas authored
      * test/Makefile.in (SUBDIRS): Run tests in new directory "misc",
      intended for tests not belonging to any one file.
      * test/misc/test-custom-deps.el:
      * test/misc/test-custom-libs.el:
      * test/misc/test-custom-noloads.el:
      * test/misc/test-custom-opts.el: New files.
      * test/lisp/custom-tests.el (custom--test-local-option): Move test to
      above new file test-custom-opts.el.
      * admin/cus-test.el: Document running tests from regular test suite.
      * test/file-organization.org (Test Files): Document new test directory
      "misc" for tests not belonging to any one file.
  7. 18 Feb, 2021 1 commit
    • Thomas Fitzsimmons's avatar
      Implement NTLM server for ntlm.el testing · 32e790f2
      Thomas Fitzsimmons authored
      * test/Makefile.in
      (GNU_ELPA_DIRECTORY, elpa_dependencies, elpa_els, elpa_opts): New
      (EMACSOPT, ert_opts): Add elpa_opts.
      * test/README: Document GNU_ELPA_DIRECTORY make variable.
      * test/lisp/net/ntlm-tests.el: Fix checkdoc-reported issues.
      (ntlm-tests-message, ntlm-server-build-type-2, ntlm-server-hash)
      (ntlm-server-check-authorization, ntlm-server-do-token)
      (ntlm-server-filter, ntlm-server-handler, ntlm-server-start)
      (ntlm-server-stop, ntlm-tests--url-retrieve-internal-around)
      (ntlm-tests--start-server-authenticate-stop-server): New
      (ntlm-tests--username-oem, ntlm-tests--username-unicode)
      (ntlm-tests--client-supports-unicode, ntlm-tests--challenge)
      (ntlm-tests--result-buffer, ntlm-tests--successful-result): New
      (ntlm-authentication-old-compatibility-level): New tests.
      * test/lisp/net/ntlm-resources/authinfo: New file.  (Bug#43566)
  8. 28 Jan, 2021 1 commit
    • Stefan Monnier's avatar
      * test/Makefile.in (emacs): Use the C locale · 91f9d678
      Stefan Monnier authored
      This fixes spurious test failures in my environment for
      `diff-mode-test-font-lock-syntax-one-line` (where my `diff` otherwise
      returns "No newline at end of file" in French) and for
      various tests in `emacs-module-tests` because errors signal
      "Abandon" instead of "Abort".
  9. 19 Jan, 2021 1 commit
  10. 17 Jan, 2021 1 commit
    • Michael Albinus's avatar
      Add new targets to test/Makefile · 39a65844
      Michael Albinus authored
      * test/Makefile.in (SUBDIRS): New variable.
      (subdir_template): New template.
      (top) Create new check-<dirname> targets.
      * test/README: Document them.
      * test/infra/gitlab-ci.yml (test-lisp-net-inotify): Rename.
  11. 14 Jan, 2021 1 commit
    • Ted Zlatanov's avatar
      EMBA infrastructure improvements for Emacs build testing. · 707ee6af
      Ted Zlatanov authored
      * .gitlab-ci.yml: Use job templates and rules. Split tests into
      fast/normal/slow. Make Docker images for each tested platform
      (inotify, filenotify-gio, gnustep). Increase timeout.
      * test/Makefile.in (check-lisp, check-net): Add new testing
      * test/README: Document them.
      * test/file-organization.org: Mention test/infra.
      * test/infra/Dockerfile.emba: Add special Docker recipes for EMBA
  12. 07 Jan, 2021 1 commit
  13. 01 Jan, 2021 2 commits
  14. 25 Dec, 2020 1 commit
  15. 23 Oct, 2020 1 commit
    • Stefan Kangas's avatar
      Move some test data to follow our conventions · 49bc8586
      Stefan Kangas authored
      * test/data/emacs-module/mod-test.c: Move from here...
      * test/src/emacs-module-resources/mod-test.c: ...to here.
      * test/src/emacs-module-tests.el (ert-x): Require.
      (mod-test-file, module/describe-function-1):
      * test/Makefile.in (test_module_dir): Adjust for move.
      * test/data/files-bug18141.el.gz: Move from here...
      * test/lisp/files-resources/files-bug18141.el.gz: ... to here.
      * test/lisp/files-tests.el (ert-x): Require.
      (files-test-bug-18141-file): Use ert-resource-file.
      * test/data/mailcap/mime.types: Move from here...
      * test/lisp/net/mailcap-resources/mime.types: ...to here.
      * test/lisp/net/mailcap-tests.el (ert-x): Require.
      (mailcap-tests-path): Use ert-resource-file.
      * test/data/somelib.el:
      * test/data/somelib2.el: Move from here...
      * test/src/lread-resources/somelib.el:
      * test/src/lread-resources/somelib2.el: ...to here.
      * test/src/lread-tests.el (ert, ert-x): Require.
      (lread-test-bug26837): Use ert-resource-directory.
      * test/data/syntax-comments.txt: Move from here....
      * test/src/syntax-resources/syntax-comments.txt: ...to here.
      * test/src/syntax-tests.el (ert-x): Require.
      (syntax-comments, syntax-br-comments, syntax-pps-comments):
      Use ert-resource-file.
      * test/data/xref/file1.txt:
      * test/data/xref/file2.txt: Move from here...
      * test/lisp/progmodes/xref-resources/file1.txt:
      * test/lisp/progmodes/xref-resources/file2.txt: ...to here.
      * test/lisp/progmodes/xref-tests.el (ert, ert-x): Require.
      (xref-tests-data-dir): Use ert-resource-directory.
  16. 02 Oct, 2020 1 commit
    • Andrea Corallo's avatar
      Clean-up testsuite for vanilla builds · f3456221
      Andrea Corallo authored
      Tag all native compiler tests and skip them in vanilla builds
      	(SELECTOR_ALL): Define selectors for vanilla or nativecomp builds.
      	* test/src/comp-tests.el: Do not native compile test files on
      	(comp-deftest): New macro to define tests tagging as :nativecomp.
  17. 25 Sep, 2020 1 commit
  18. 13 Sep, 2020 1 commit
  19. 30 Jul, 2020 1 commit
    • Paul Eggert's avatar
      Update from Gnulib · 5d89a9c2
      Paul Eggert authored
      This incorporates:
      2020-07-30 work around some Oracle Studio attribute bugs
      2020-07-29 fsusage, regex, stat-size: remove Cray support
      2020-07-26 inttypes: remove support for AIX 4
      2020-07-26 gettimeofday: remove workaround for Mac OS X 10.0
      2020-07-26 don't require gl_LOCALTIME_BUFFER_DEFAULTS
      2020-07-26 alloca: remove Cray-2 and Cray Y-MP support
      2020-07-26 libgmp: remove dependency on havelib
      2020-07-26 libgmp: remove HAVE_GMP, LIB_GMP
      2020-07-25 multiarch: prepare for x86_64+arm64 universal in macOS 11
      2020-07-25 sigprocmask: small autoconf macro improvement
      2020-07-25 small autoconf macro improvements
      2020-07-24 timespec: remove dependence on ‘verify’
      2020-07-24 optimize a few more three-valued comparisons
      2020-07-24 fix _GL_CMP parenthesization typo
      2020-07-23 optimize three-valued comparison between integers
      2020-07-24 doc: update for Mac OS X 10.13
      2020-07-23 fchmodat, lchmod: use /proc on Cygwin
      2020-07-21 inttypes: fix PRI*PTR and SCN*PTR on 64-bit native Windows
      2020-07-12 libgmp: avoid warning when --without-libgmp is used
      2020-07-12 libgmp: link to the correct shared library
      * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
      * build-aux/config.guess, build-aux/config.sub:
      * build-aux/install-sh, doc/misc/texinfo.tex, lib/c-strcasecmp.c:
      * lib/c-strncasecmp.c, lib/fchmodat.c, lib/fsusage.c:
      * lib/gettimeofday.c, lib/inttypes.in.h, lib/lchmod.c:
      * lib/mini-gmp-gnulib.c, lib/nstrftime.c, lib/regex.h, lib/timespec.h:
      * m4/alloca.m4, m4/getgroups.m4, m4/gettimeofday.m4:
      * m4/gnulib-common.m4, m4/inttypes.m4, m4/libgmp.m4, m4/mktime.m4:
      * m4/multiarch.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * src/Makefile.in, test/Makefile.in (LIBGMP):
      Rename from LIB_GMP for compatibility with Gnulib.
      All uses changed.
  20. 09 Jul, 2020 2 commits
    • Paul Eggert's avatar
      Fix out-of-source ‘make check’ emacs-module-tests · c86f3fe0
      Paul Eggert authored
      Problem reported by Koki Fukuda in:
      * test/Makefile.in (MODULE_CFLAGS):
      Include from the same directories included from in ../src.
      * test/src/emacs-module-tests.el (module/describe-function-1):
      Strip path to source directory.
    • Paul Eggert's avatar
      Use Gnulib libgmp module · c8b6006d
      Paul Eggert authored
      Instead of doing GMP by hand, use the Gnulib libgmp module.
      * .gitignore: Add lib/gmp.h.
      * admin/merge-gnulib (GNULIB_MODULES): Add libgmp.
      * configure.ac (GMP_LIB, GMP_OBJ): Remove.  Gnulib uses the name
      LIB_GMP, so all uses changed.  All uses of GMP_OBJ removed.
      (HAVE_GMP): Set this from Gnulib’s variables.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/mini-gmp-gnulib.c, lib/mini-gmp.c, lib/mini-gmp.h, m4/libgmp.m4:
      New files, copied from Gnulib.
      * src/bignum.h, test/data/emacs-module/mod-test.c:
      Include gmp.h unconditionally.
      * src/mini-gmp-emacs.c, src/mini-gmp.c, src/mini-gmp.h:
      Remove.  This moves these files from src to lib, and
      updates them to the current GMP version.
      * test/Makefile.in (GMP_H): New macro.
      ($(test_module)): Use it to decide whether to compile
      mini-gmp-gnulib.c too.
  21. 01 Jan, 2020 1 commit
  22. 27 Aug, 2019 1 commit
  23. 17 Aug, 2019 1 commit
  24. 04 May, 2019 2 commits
  25. 24 Apr, 2019 2 commits
    • Philipp Stephani's avatar
      Unbreak build when building without GMP support. · 4eb7f9ef
      Philipp Stephani authored
      Add support for a new preprocessor macro EMACS_MODULE_HAVE_MPZ_T to
      emacs-module.h.  If this macro is defined, assume that mpz_t is
      already defined and don’t include gmp.h.
      Don’t document the new macro for now, as it’s unclear whether we want
      to support this in modules outside the Emacs tree.
      * src/emacs-module.h.in: Allow user to prevent inclusion of gmp.h.
      * src/emacs-module.c: Use mini-gmp if GMP is unavailable.  Don’t
      include gmp.h.
      * src/lisp.h: Don’t require gmp.h.  It’s not needed for lisp.h.
      * test/Makefile.in (GMP_LIB, GMP_OBJ): New variables.
      ($(test_module)): Use them.
      * test/data/emacs-module/mod-test.c: Use mini-gmp if GMP is unavailable.
    • Philipp Stephani's avatar
      Add missing GMP library to test module. · 553220fc
      Philipp Stephani authored
      * test/Makefile.in (GMP_LIB): Define variable.
      ($(test_module)): Use it.
  26. 26 Feb, 2019 1 commit
  27. 01 Jan, 2019 1 commit
  28. 11 Dec, 2018 1 commit
  29. 24 Sep, 2018 1 commit
    • Paul Eggert's avatar
      Fix ‘make clean’ with a file named ‘-.o’ · 36243179
      Paul Eggert authored
      Problem reported by T.V Raman in:
      * Makefile.in (clean, extraclean):
      * doc/emacs/Makefile.in (mostlyclean):
      * doc/lispintro/Makefile.in (mostlyclean):
      * doc/lispref/Makefile.in (mostlyclean):
      * doc/misc/Makefile.in (mostlyclean, clean):
      * etc/refcards/Makefile (clean):
      * lib-src/Makefile.in (mostlyclean, extraclean):
      * lib/Makefile.in (clean):
      * lwlib/Makefile.in (clean mostlyclean):
      * oldXMenu/Makefile.in (clean mostlyclean):
      * src/Makefile.in (mostlyclean, extraclean):
      * test/Makefile.in (mostlyclean):
      Say ‘rm ./*.o’ instead of ‘rm *.o’ to avoid undesirable failure
      when a file name begins with ‘-’.
  30. 25 Aug, 2018 1 commit
  31. 16 Jul, 2018 1 commit
  32. 14 Jul, 2018 1 commit
  33. 12 Jun, 2018 2 commits
    • Noam Postavsky's avatar
      ; Reduce quoting for SELECTOR in 'make -C test' (Bug#31744) · 5bdc3447
      Noam Postavsky authored
          make -C test SELECTOR='\"foo\"'
          make -C test SELECTOR='(quote (tag :some-tag))'
          make -C test SELECTOR='"foo"'
          make -C test SELECTOR='(tag :some-tag)'
      * test/Makefile.in: Use single quotes around the command line call to
      ert, this means the user doesn't have to backslash escape double
      quotes when writing lisp strings for the selector.  Also wrap the
      SELECTOR value in (quote ...) so the user won't have to type it
      in (and not get tempted to use the '... reader syntax form which would
      now fail to work due to using single quotes around the whole shell
      * test/README: Update instructions accordingly.
    • Noam Postavsky's avatar
      ; test/Makefile.in: Add TEST_INTERACTIVE option (Bug#31744). · b6b793bd
      Noam Postavsky authored
      * test/README: Note the new option.
  34. 19 Mar, 2018 1 commit
    • Michael Albinus's avatar
      Print top time consuming tests if advised · 1979bce5
      Michael Albinus authored
      * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
      New argument HIGH.  Print top-running tests.
      * test/Makefile.in (check-doit): Use ${SUMMARIZE_TESTS}.
      * test/README: Explain SUMMARIZE_TESTS.