### inotify / smb-notify SMBWindows
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/smb:albinus%DESKTOP-PA3IUAR@DESKTOP-PA3IUAR:/Users/albinus/AppData/Local/Temp' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/filenotify-tests.el -f eval-buffer --eval '(setq file-notify-debug t)' --eval '(find-file (getenv "REMOTE_TEMPORARY_FILE_DIRECTORY"))' -f ert
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/smb:albinus%DESKTOP-PA3IUAR@DESKTOP-PA3IUAR:/Users/albinus/AppData/Local/Temp' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/autorevert-tests.el -f eval-buffer --eval '(setq auto-revert-debug t file-notify-debug t)' --eval '(find-file (getenv "REMOTE_TEMPORARY_FILE_DIRECTORY"))' -f ert
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/smb:albinus%DESKTOP-PA3IUAR@DESKTOP-PA3IUAR:/Users/albinus/AppData/Local/Temp' make -k -C test autorevert-tests filenotify-tests SELECTOR='"remote"'

### inotify / smb-notify SMBSamba
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/smb:albinus@ford:/albinus/tmp' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/filenotify-tests.el -f eval-buffer --eval '(setq file-notify-debug t)' --eval '(find-file (getenv "REMOTE_TEMPORARY_FILE_DIRECTORY"))' -f ert
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/smb:albinus@ford:/albinus/tmp' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/autorevert-tests.el -f eval-buffer --eval '(setq auto-revert-debug t file-notify-debug t)' --eval '(find-file (getenv "REMOTE_TEMPORARY_FILE_DIRECTORY"))' -f ert
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/smb:albinus@ford:/albinus/tmp' make -k -C test autorevert-tests filenotify-tests SELECTOR='"remote"'

### inotify / inotifywait
# ~/src/emacs/src/emacs ~/src/emacs/test/lisp/filenotify-tests.el -f eval-buffer --eval '(setq file-notify-debug t)' -f ert
# ~/src/emacs/src/emacs ~/src/emacs/test/lisp/autorevert-tests.el -f eval-buffer --eval '(setq auto-revert-debug t file-notify-debug t)' -f ert
# make -k -C test autorevert-tests filenotify-tests SELECTOR=t

### inotify / inotifywait on Emba
$ podman buildx build --target emacs-inotify --tag emacs-inotify -f test/infra/Dockerfile.emba .
$ podman run --detach --interactive --tty --env EMACS_EMBA_CI=1 --name emacs-inotify --volume /usr/local/src:/usr/local/src emacs-inotify /bin/bash
$ podman exec -it emacs-inotify /bin/bash -i
# src/emacs /usr/local/src/emacs/test/lisp/filenotify-tests.el -f eval-buffer --eval '(setq file-notify-debug t)' -f ert
# src/emacs /usr/local/src/emacs/test/lisp/autorevert-tests.el -f eval-buffer --eval '(setq auto-revert-debug t file-notify-debug t)' -f ert
# cp /usr/local/src/emacs/test/lisp/filenotify-tests.el test/lisp/; cp /usr/local/src/emacs/test/lisp/autorevert-tests.el test/lisp/; make -k -C test autorevert-tests filenotify-tests SELECTOR=t

### gfilemonitor GInotifyFileMonitor / gio GInotifyFileMonitor on Emba
$ podman buildx build --target emacs-filenotify-gio --tag emacs-filenotify-gio -f test/infra/Dockerfile.emba .
$ podman run --detach --interactive --tty --env EMACS_EMBA_CI=1 --name emacs-filenotify-gio --volume /usr/local/src:/usr/local/src emacs-filenotify-gio /bin/bash
$ podman exec -it emacs-filenotify-gio /bin/bash -i
# cp --preserve=timestamps /usr/local/src/tramp/lisp/*.el lisp/net/
# cp -p /usr/local/src/emacs/lisp/filenotify.el lisp/; cp -p /usr/local/src/emacs/lisp/autorevert.el lisp/
# cp -p /usr/local/src/emacs/test/lisp/filenotify-tests.el test/lisp/; cp -p /usr/local/src/emacs/test/lisp/autorevert-tests.el test/lisp/
# make
# src/emacs test/lisp/filenotify-tests.el -f eval-buffer --eval '(setq file-notify-debug t)' -f ert
# src/emacs test/lisp/autorevert-tests.el -f eval-buffer --eval '(setq auto-revert-debug t file-notify-debug t)' -f ert
# make -k -C test autorevert-tests filenotify-tests SELECTOR=t

### inotify / gio GInotifyFileMonitor
# env REMOTE_FILE_NOTIFY_LIBRARY='gio' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/filenotify-tests.el -f eval-buffer --eval '(setq file-notify-debug t)' -f ert
# env REMOTE_FILE_NOTIFY_LIBRARY='gio' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/autorevert-tests.el -f eval-buffer --eval '(setq auto-revert-debug t file-notify-debug t)' -f ert
# env REMOTE_FILE_NOTIFY_LIBRARY='gio' make -k -C test autorevert-tests filenotify-tests SELECTOR='"remote"'

# env REMOTE_TEMPORARY_FILE_DIRECTORY='/podman:emacs-filenotify-gio:/tmp' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/filenotify-tests.el -f eval-buffer --eval '(setq file-notify-debug t)' --eval '(find-file (getenv "REMOTE_TEMPORARY_FILE_DIRECTORY"))' -f ert
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/podman:emacs-filenotify-gio:/tmp' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/autorevert-tests.el -f eval-buffer --eval '(setq auto-revert-debug t file-notify-debug t)' --eval '(find-file (getenv "REMOTE_TEMPORARY_FILE_DIRECTORY"))' -f ert

### inotify / gio GKqueueFileMonitor
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/ssh:freebsd14:~/tmp' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/filenotify-tests.el -f eval-buffer --eval '(setq file-notify-debug t)' -f ert
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/ssh:freebsd14:~/tmp' ~/src/emacs/src/emacs ~/src/emacs/test/lisp/autorevert-tests.el -f eval-buffer --eval '(setq auto-revert-debug t file-notify-debug t)' -f ert
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/ssh:freebsd14:~/tmp' make -k -C test autorevert-tests filenotify-tests SELECTOR='"remote"'

### kqueue / gio GKqueueFileMonitor
$ ssh freebsd14
# cd src/emacs; git pull; gmake
# src/emacs -Q -L /usr/local/src/tramp/lisp -L /usr/local/src/emacs/lisp -l /usr/local/src/emacs/test/lisp/filenotify-tests.el --eval '(setq file-notify-debug t)' -f ert
# src/emacs -Q -L /usr/local/src/tramp/lisp -L /usr/local/src/emacs/lisp -l /usr/local/src/emacs/test/lisp/autorevert-tests.el --eval '(setq auto-revert-debug t file-notify-debug t)' -f ert
# gmake -k -C test autorevert-tests filenotify-tests SELECTOR=t

### w32notify / inotifywait
# cd src/emacs; git pull; make
# env REMOTE_TEMPORARY_FILE_DIRECTORY='/plink:albinus@gandalf:tmp' make -k -C test autorevert-tests filenotify-tests SELECTOR=t
