1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00
emacs/test/automated
Michael Albinus 7bf54d0115 Backport kqueue integration from master
* configure.ac (--with-file-notification): Add kqueue.
(top): Remove special test for "${HAVE_NS}" and
${with_file_notification}, this is handled inside gfilenotify
tests.  Add kqueue tests.  Use NOTIFY_CFLAGS and NOTIFY_LIBS
instead of library specific variables.  Add error message for
gfile on Nextstep.

* doc/lispref/os.texi (File Notifications): Add kqueue as backend.
Fix some glitches in the example.

* etc/NEWS: Mention kqueue.

* lisp/filenotify.el (file-notify--library)
(file-notify-descriptors, file-notify-callback)
(file-notify-add-watch, file-notify-rm-watch)
(file-notify-valid-p): Add kqueue support.
(file-notify--rm-descriptor): Remove WHAT arg.

* src/Makefile.in: Use NOTIFY_CFLAGS and NOTIFY_LIBS.

* src/emacs.c (main): Call globals_of_kqueue and syms_of_kqueue.

* src/inotify.c (inotifyevent_to_event): Extract file name from
watch_object if the event doesn't provide it.
(Finotify_add_watch): Add file name to watch_object.

* src/keyboard.c (make_lispy_event): Check also for HAVE_KQUEUE.

* src/kqueue.c: New file.

* src/lisp.h: Declare extern globals_of_kqueue and syms_of_kqueue.

* test/automated/file-notify-tests.el
(file-notify--test-expected-events): Remove.
(file-notify--test-cleanup): Do not set that variable.
(file-notify--test-timeout) Use different timeouts for
different libraries.
(file-notify--test-library): New defun.
(file-notify--test-event-test): Make stronger checks.
(file-notify--test-with-events): EVENTS can also be a list of
lists.  Flush outstanding events before running the body.
Make timeout heuristically depend on the number of events.
(file-notify-test01-add-watch, file-notify-test02-events)
(file-notify-test04-file-validity, file-notify-test05-dir-validity):
Rewrite in order to call file monitors but directory monitors.
(file-notify-test02-events, file-notify-test04-file-validity): Do
not skip cygwin tests.  Add additional test for file creation.
Adapt expected result for different backends.
(file-notify-test03-autorevert): Some of the tests don't work for
w32notify.
(file-notify-test06-many-events): New test.
2016-01-22 19:56:09 +01:00
..
data Remove copyright statements from trivial test files 2015-12-05 11:32:17 +00:00
abbrev-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
add-log-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
advice-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
auth-source-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
auto-revert-tests.el Introduce check-expensive tests. 2016-01-04 23:28:07 +01:00
buffer-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
bytecomp-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
calc-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
character-fold-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cl-generic-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cl-lib-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cmds-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
coding-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
comint-testsuite.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
compile-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
completion-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
core-elisp-tests.el * test/automated/core-elisp-tests.el 2016-01-12 20:04:49 -05:00
data-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
dbus-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
decoder-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
descr-text-test.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
eieio-test-methodinvoke.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
eieio-test-persist.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
eieio-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
electric-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
elisp-mode-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
epg-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ert-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ert-x-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
eshell.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
f90.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
faces-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
file-notify-tests.el Backport kqueue integration from master 2016-01-22 19:56:09 +01:00
files.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
finalizer-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
flymake-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
fns-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
font-parse-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
generator-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
gnus-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
help-fns.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
icalendar-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
imenu-test.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
info-xref.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
inotify-test.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
isearch-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
json-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
keymap-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
let-alist.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
lexbind-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
libxml-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
Makefile.in Enable test selector from command line 2016-01-15 22:11:39 +00:00
man-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
map-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
message-mode-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
mule-util.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
newsticker-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
obarray-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
occur-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
package-test.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
pcase-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
print-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
process-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
python-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
reftex-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
regexp-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
replace-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ruby-mode-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
sasl-scram-rfc-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
seq-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
sgml-mode-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
simple-test.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
sort-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
subr-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
subr-x-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
subword-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
syntax-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
tabulated-list-test.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
textprop-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
thingatpt.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
thunk-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
tildify-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
timer-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
tramp-tests.el Minor change in tramp-tests.el 2016-01-11 19:43:36 +01:00
undo-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
url-expand-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
url-future-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
url-parse-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
url-util-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
vc-bzr.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
vc-hg.el test/automated/vc-hg.el: Support out-of-tree build 2016-01-12 00:17:49 +03:00
vc-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
xml-parse-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00
zlib-tests.el Update copyright year to 2016 2016-01-01 01:34:24 -08:00