2 This file is part of GNUnet
3 (C) 2008, 2009 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file include/gnunet_testing_lib.h
23 * @brief convenience API for writing testcases for GNUnet
24 * Many testcases need to start and stop gnunetd,
25 * and this library is supposed to make that easier
26 * for TESTCASES. Normal programs should always
27 * use functions from gnunet_{util,arm}_lib.h. This API is
28 * ONLY for writing testcases!
29 * @author Christian Grothoff
32 #ifndef GNUNET_TESTING_LIB_H
33 #define GNUNET_TESTING_LIB_H
35 #include "gnunet_util_lib.h"
36 #include "gnunet_statistics_service.h"
41 #if 0 /* keep Emacsens' auto-indent happy */
47 * Handle for a GNUnet daemon (technically a set of
48 * daemons; the handle is really for the master ARM
49 * daemon) started by the testing library.
51 struct GNUNET_TESTING_Daemon;
54 * Linked list of hostnames and ports to use for starting daemons.
56 struct GNUNET_TESTING_Host
59 * Pointer to next item in the list.
61 struct GNUNET_TESTING_Host *next;
64 * Hostname to connect to.
69 * Username to use when connecting (may be null).
74 * Port to use for SSH connection (used for ssh
75 * connection forwarding, 0 to let ssh decide)
81 * Prototype of a function that will be called whenever
82 * a daemon was started by the testing library.
85 * @param id identifier for the daemon, NULL on error
86 * @param d handle for the daemon
87 * @param emsg error message (NULL on success)
89 typedef void (*GNUNET_TESTING_NotifyHostkeyCreated)(void *cls,
90 const struct GNUNET_PeerIdentity *id,
91 struct GNUNET_TESTING_Daemon *d,
95 * Prototype of a function that will be called whenever
96 * a daemon was started by the testing library.
99 * @param id identifier for the daemon, NULL on error
100 * @param cfg configuration used by this daemon
101 * @param d handle for the daemon
102 * @param emsg error message (NULL on success)
104 typedef void (*GNUNET_TESTING_NotifyDaemonRunning)(void *cls,
105 const struct GNUNET_PeerIdentity *id,
106 const struct GNUNET_CONFIGURATION_Handle *cfg,
107 struct GNUNET_TESTING_Daemon *d,
112 * Handle to an entire testbed of GNUnet peers.
114 struct GNUNET_TESTING_Testbed;
117 * Phases of starting GNUnet on a system.
119 enum GNUNET_TESTING_StartPhase
122 * Copy the configuration file to the target system.
127 * Configuration file has been copied, generate hostkey.
132 * Create the hostkey for the peer.
137 * Hostkey generated, wait for topology to be finished.
142 * Topology has been created, now start ARM.
147 * ARM has been started, check that it has properly daemonized and
148 * then try to connect to the CORE service (which should be
149 * auto-started by ARM).
154 * We're waiting for CORE to start.
159 * Core has notified us that we've established a connection to the service.
160 * The main FSM halts here and waits to be moved to UPDATE or CLEANUP.
165 * We've been asked to terminate the instance and are now waiting for
166 * the remote command to stop the gnunet-arm process and delete temporary
172 * We've received a configuration update and are currently waiting for
173 * the copy process for the update to complete. Once it is, we will
174 * return to "SP_START_DONE" (and rely on ARM to restart all affected
181 * Prototype of a function that will be called when a
182 * particular operation was completed the testing library.
185 * @param emsg NULL on success
187 typedef void (*GNUNET_TESTING_NotifyCompletion)(void *cls,
191 * Prototype of a function that will be called with the
192 * number of connections created for a particular topology.
195 * @param num_connections the number of connections created
197 typedef void (*GNUNET_TESTING_NotifyConnections)(void *cls,
198 unsigned int num_connections);
201 * Handle for a GNUnet daemon (technically a set of
202 * daemons; the handle is really for the master ARM
203 * daemon) started by the testing library.
205 struct GNUNET_TESTING_Daemon
210 struct GNUNET_CONFIGURATION_Handle *cfg;
213 * At what time to give up starting the peer
215 struct GNUNET_TIME_Absolute max_timeout;
218 * Host to run GNUnet on.
223 * Port to use for ssh, NULL to let system choose default.
228 * Result of GNUNET_i2s of this peer,
234 * Username we are using.
239 * Name of the configuration file
244 * Callback to inform initiator that the peer's
245 * hostkey has been created.
247 GNUNET_TESTING_NotifyHostkeyCreated hostkey_callback;
250 * Closure for hostkey creation callback.
255 * Function to call when the peer is running.
257 GNUNET_TESTING_NotifyDaemonRunning cb;
265 * Arguments from "daemon_stop" call.
267 GNUNET_TESTING_NotifyCompletion dead_cb;
270 * Closure for 'dead_cb'.
275 * Arguments from "daemon_stop" call.
277 GNUNET_TESTING_NotifyCompletion update_cb;
280 * Closure for 'update_cb'.
285 * Identity of this peer (once started).
287 struct GNUNET_PeerIdentity id;
290 * Flag to indicate that we've already been asked
291 * to terminate (but could not because some action
292 * was still pending).
297 * PID of the process that we started last.
299 struct GNUNET_OS_Process *proc;
302 * In which phase are we during the start of
305 enum GNUNET_TESTING_StartPhase phase;
308 * ID of the current task.
310 GNUNET_SCHEDULER_TaskIdentifier task;
313 * Handle to the server.
315 struct GNUNET_CORE_Handle *server;
318 * Handle to the transport service of this peer
320 struct GNUNET_TRANSPORT_Handle *th;
323 * HELLO message for this peer
325 struct GNUNET_HELLO_Message *hello;
328 * Handle to a pipe for reading the hostkey.
330 struct GNUNET_DISK_PipeHandle *pipe_stdout;
333 * Output from gnunet-peerinfo is read into this buffer.
335 char hostkeybuf[105];
338 * Current position in 'hostkeybuf' (for reading from gnunet-peerinfo)
340 unsigned int hostkeybufpos;
343 * Set to GNUNET_YES once the peer is up.
348 * Used to tell shutdown not to remove configuration for the peer
349 * (if it's going to be restarted later)
356 * Handle to a group of GNUnet peers.
358 struct GNUNET_TESTING_PeerGroup;
362 * Prototype of a function that will be called whenever
363 * two daemons are connected by the testing library.
366 * @param first peer id for first daemon
367 * @param second peer id for the second daemon
368 * @param distance distance between the connected peers
369 * @param first_cfg config for the first daemon
370 * @param second_cfg config for the second daemon
371 * @param first_daemon handle for the first daemon
372 * @param second_daemon handle for the second daemon
373 * @param emsg error message (NULL on success)
375 typedef void (*GNUNET_TESTING_NotifyConnection)(void *cls,
376 const struct GNUNET_PeerIdentity *first,
377 const struct GNUNET_PeerIdentity *second,
379 const struct GNUNET_CONFIGURATION_Handle *first_cfg,
380 const struct GNUNET_CONFIGURATION_Handle *second_cfg,
381 struct GNUNET_TESTING_Daemon *first_daemon,
382 struct GNUNET_TESTING_Daemon *second_daemon,
386 * Prototype of a callback function indicating that two peers
387 * are currently connected.
390 * @param first peer id for first daemon
391 * @param second peer id for the second daemon
392 * @param distance distance between the connected peers
393 * @param emsg error message (NULL on success)
395 typedef void (*GNUNET_TESTING_NotifyTopology)(void *cls,
396 const struct GNUNET_PeerIdentity *first,
397 const struct GNUNET_PeerIdentity *second,
398 struct GNUNET_TIME_Relative latency,
403 * Starts a GNUnet daemon. GNUnet must be installed on the target
404 * system and available in the PATH. The machine must furthermore be
405 * reachable via "ssh" (unless the hostname is "NULL") without the
406 * need to enter a password.
408 * @param cfg configuration to use
409 * @param timeout how long to wait starting up peers
410 * @param hostname name of the machine where to run GNUnet
411 * (use NULL for localhost).
412 * @param ssh_username ssh username to use when connecting to hostname
413 * @param sshport port to pass to ssh process when connecting to hostname
414 * @param hostkey_callback function to call once the hostkey has been
415 * generated for this peer, but it hasn't yet been started
416 * (NULL to start immediately, otherwise waits on GNUNET_TESTING_daemon_continue_start)
417 * @param hostkey_cls closure for hostkey callback
418 * @param cb function to call once peer is up, or failed to start
419 * @param cb_cls closure for cb
420 * @return handle to the daemon (actual start will be completed asynchronously)
422 struct GNUNET_TESTING_Daemon *
423 GNUNET_TESTING_daemon_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
424 struct GNUNET_TIME_Relative timeout,
425 const char *hostname,
426 const char *ssh_username,
428 GNUNET_TESTING_NotifyHostkeyCreated hostkey_callback,
430 GNUNET_TESTING_NotifyDaemonRunning cb,
434 * Continues GNUnet daemon startup when user wanted to be notified
435 * once a hostkey was generated (for creating friends files, blacklists,
438 * @param daemon the daemon to finish starting
441 GNUNET_TESTING_daemon_continue_startup(struct GNUNET_TESTING_Daemon *daemon);
444 * Check whether the given daemon is running.
446 * @param daemon the daemon to check
448 * @return GNUNET_YES if the daemon is up, GNUNET_NO if the
449 * daemon is down, GNUNET_SYSERR on error.
452 GNUNET_TESTING_daemon_running (struct GNUNET_TESTING_Daemon *daemon);
455 * Restart (stop and start) a GNUnet daemon.
457 * @param d the daemon that should be restarted
458 * @param cb function called once the daemon is (re)started
459 * @param cb_cls closure for cb
462 GNUNET_TESTING_daemon_restart (struct GNUNET_TESTING_Daemon *d,
463 GNUNET_TESTING_NotifyDaemonRunning cb, void *cb_cls);
466 * Start a peer that has previously been stopped using the daemon_stop
467 * call (and files weren't deleted and the allow restart flag)
469 * @param daemon the daemon to start (has been previously stopped)
470 * @param timeout how long to wait for restart
471 * @param cb the callback for notification when the peer is running
472 * @param cb_cls closure for the callback
475 GNUNET_TESTING_daemon_start_stopped (struct GNUNET_TESTING_Daemon *daemon,
476 struct GNUNET_TIME_Relative timeout,
477 GNUNET_TESTING_NotifyDaemonRunning cb,
481 * Get a certain testing daemon handle.
483 * @param pg handle to the set of running peers
484 * @param position the number of the peer to return
486 struct GNUNET_TESTING_Daemon *
487 GNUNET_TESTING_daemon_get (struct GNUNET_TESTING_PeerGroup *pg,
488 unsigned int position);
491 * Get a daemon by peer identity, so callers can
492 * retrieve the daemon without knowing it's offset.
494 * @param pg the peer group to retrieve the daemon from
495 * @param peer_id the peer identity of the daemon to retrieve
497 * @return the daemon on success, or NULL if no such peer identity is found
499 struct GNUNET_TESTING_Daemon *
500 GNUNET_TESTING_daemon_get_by_id (struct GNUNET_TESTING_PeerGroup *pg,
501 struct GNUNET_PeerIdentity *peer_id);
504 * Stops a GNUnet daemon.
506 * @param d the daemon that should be stopped
507 * @param timeout how long to wait for process for shutdown to complete
508 * @param cb function called once the daemon was stopped
509 * @param cb_cls closure for cb
510 * @param delete_files GNUNET_YES to remove files, GNUNET_NO
511 * to leave them (i.e. for restarting at a later time,
512 * or logfile inspection once finished)
513 * @param allow_restart GNUNET_YES to restart peer later (using this API)
514 * GNUNET_NO to kill off and clean up for good
517 GNUNET_TESTING_daemon_stop (struct GNUNET_TESTING_Daemon *d,
518 struct GNUNET_TIME_Relative timeout,
519 GNUNET_TESTING_NotifyCompletion cb, void *cb_cls,
520 int delete_files, int allow_restart);
524 * Changes the configuration of a GNUnet daemon.
526 * @param d the daemon that should be modified
527 * @param cfg the new configuration for the daemon
528 * @param cb function called once the configuration was changed
529 * @param cb_cls closure for cb
531 void GNUNET_TESTING_daemon_reconfigure (struct GNUNET_TESTING_Daemon *d,
532 struct GNUNET_CONFIGURATION_Handle *cfg,
533 GNUNET_TESTING_NotifyCompletion cb,
538 * Establish a connection between two GNUnet daemons.
540 * @param d1 handle for the first daemon
541 * @param d2 handle for the second daemon
542 * @param timeout how long is the connection attempt
544 * @param max_connect_attempts how many times should we try to reconnect
546 * @param cb function to call at the end
547 * @param cb_cls closure for cb
549 void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1,
550 struct GNUNET_TESTING_Daemon *d2,
551 struct GNUNET_TIME_Relative timeout,
552 unsigned int max_connect_attempts,
553 GNUNET_TESTING_NotifyConnection cb,
560 * Start count gnunetd processes with the same set of transports and
561 * applications. The port numbers (any option called "PORT") will be
562 * adjusted to ensure that no two peers running on the same system
563 * have the same port(s) in their respective configurations.
565 * @param cfg configuration template to use
566 * @param total number of daemons to start
567 * @param timeout total time allowed for peers to start
568 * @param hostkey_callback function to call on each peers hostkey generation
569 * if NULL, peers will be started by this call, if non-null,
570 * GNUNET_TESTING_daemons_continue_startup must be called after
571 * successful hostkey generation
572 * @param hostkey_cls closure for hostkey callback
573 * @param cb function to call on each daemon that was started
574 * @param cb_cls closure for cb
575 * @param connect_callback function to call each time two hosts are connected
576 * @param connect_callback_cls closure for connect_callback
577 * @param hostnames linked list of hosts to use to start peers on (NULL to run on localhost only)
579 * @return NULL on error, otherwise handle to control peer group
581 struct GNUNET_TESTING_PeerGroup *
582 GNUNET_TESTING_daemons_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
584 struct GNUNET_TIME_Relative timeout,
585 GNUNET_TESTING_NotifyHostkeyCreated hostkey_callback,
587 GNUNET_TESTING_NotifyDaemonRunning cb,
589 GNUNET_TESTING_NotifyConnection
590 connect_callback, void *connect_callback_cls,
591 const struct GNUNET_TESTING_Host *hostnames);
594 * Function which continues a peer group starting up
595 * after successfully generating hostkeys for each peer.
597 * @param pg the peer group to continue starting
600 GNUNET_TESTING_daemons_continue_startup(struct GNUNET_TESTING_PeerGroup *pg);
603 * Restart all peers in the given group.
605 * @param pg the handle to the peer group
606 * @param callback function to call on completion (or failure)
607 * @param callback_cls closure for the callback function
610 GNUNET_TESTING_daemons_restart (struct GNUNET_TESTING_PeerGroup *pg,
611 GNUNET_TESTING_NotifyCompletion callback,
616 * Shutdown all peers started in the given group.
618 * @param pg handle to the peer group
619 * @param timeout how long to wait for shutdown
620 * @param cb callback to notify upon success or failure
621 * @param cb_cls closure for cb
624 GNUNET_TESTING_daemons_stop (struct GNUNET_TESTING_PeerGroup *pg,
625 struct GNUNET_TIME_Relative timeout,
626 GNUNET_TESTING_NotifyCompletion cb,
631 * Count the number of running peers.
633 * @param pg handle for the peer group
635 * @return the number of currently running peers in the peer group
638 GNUNET_TESTING_daemons_running (struct GNUNET_TESTING_PeerGroup *pg);
641 * Simulate churn by stopping some peers (and possibly
642 * re-starting others if churn is called multiple times). This
643 * function can only be used to create leave-join churn (peers "never"
644 * leave for good). First "voff" random peers that are currently
645 * online will be taken offline; then "von" random peers that are then
646 * offline will be put back online. No notifications will be
647 * generated for any of these operations except for the callback upon
648 * completion. Note that the implementation is at liberty to keep
649 * the ARM service itself (but none of the other services or daemons)
650 * running even though the "peer" is being varied offline.
652 * @param pg handle for the peer group
653 * @param voff number of peers that should go offline
654 * @param von number of peers that should come back online;
655 * must be zero on first call (since "testbed_start"
656 * always starts all of the peers)
657 * @param timeout how long to wait for operations to finish before
659 * @param cb function to call at the end
660 * @param cb_cls closure for cb
663 GNUNET_TESTING_daemons_churn (struct GNUNET_TESTING_PeerGroup *pg,
666 struct GNUNET_TIME_Relative timeout,
667 GNUNET_TESTING_NotifyCompletion cb,
671 * Callback function to process statistic values.
674 * @param peer the peer the statistics belong to
675 * @param subsystem name of subsystem that created the statistic
676 * @param name the name of the datum
677 * @param value the current value
678 * @param is_persistent GNUNET_YES if the value is persistent, GNUNET_NO if not
679 * @return GNUNET_OK to continue, GNUNET_SYSERR to abort iteration
681 typedef int (*GNUNET_TESTING_STATISTICS_Iterator) (void *cls,
682 const struct GNUNET_PeerIdentity *peer,
683 const char *subsystem,
689 * Iterate over all (running) peers in the peer group, retrieve
690 * all statistics from each.
693 GNUNET_TESTING_get_statistics (struct GNUNET_TESTING_PeerGroup *pg,
694 GNUNET_STATISTICS_Callback cont,
695 GNUNET_TESTING_STATISTICS_Iterator proc, void *cls);
698 * Topologies supported for testbeds.
700 enum GNUNET_TESTING_Topology
703 * A clique (everyone connected to everyone else).
705 GNUNET_TESTING_TOPOLOGY_CLIQUE,
708 * Small-world network (2d torus plus random links).
710 GNUNET_TESTING_TOPOLOGY_SMALL_WORLD,
713 * Small-world network (ring plus random links).
715 GNUNET_TESTING_TOPOLOGY_SMALL_WORLD_RING,
720 GNUNET_TESTING_TOPOLOGY_RING,
725 GNUNET_TESTING_TOPOLOGY_2D_TORUS,
730 GNUNET_TESTING_TOPOLOGY_ERDOS_RENYI,
733 * Certain percentage of peers are unable to communicate directly
734 * replicating NAT conditions
736 GNUNET_TESTING_TOPOLOGY_INTERNAT,
739 * Scale free topology.
741 GNUNET_TESTING_TOPOLOGY_SCALE_FREE,
744 * Straight line topology.
746 GNUNET_TESTING_TOPOLOGY_LINE,
749 * All peers are disconnected.
751 GNUNET_TESTING_TOPOLOGY_NONE
755 * Options for connecting a topology.
757 enum GNUNET_TESTING_TopologyOption
760 * Try to connect all peers specified in the topology.
762 GNUNET_TESTING_TOPOLOGY_OPTION_ALL,
765 * Choose a random subset of connections to create.
767 GNUNET_TESTING_TOPOLOGY_OPTION_RANDOM,
770 * Create at least X connections for each peer.
772 GNUNET_TESTING_TOPOLOGY_OPTION_MINIMUM,
775 * Using a depth first search, create one connection
776 * per peer. If any are missed (graph disconnected)
777 * start over at those peers until all have at least one
780 GNUNET_TESTING_TOPOLOGY_OPTION_DFS,
783 * Find the N closest peers to each allowed peer in the
784 * topology and make sure a connection to those peers
785 * exists in the connect topology.
787 GNUNET_TESTING_TOPOLOGY_OPTION_ADD_CLOSEST,
790 * No options specified.
792 GNUNET_TESTING_TOPOLOGY_OPTION_NONE
797 * Get a topology from a string input.
799 * @param topology where to write the retrieved topology
800 * @param topology_string The string to attempt to
801 * get a configuration value from
802 * @return GNUNET_YES if topology string matched a
803 * known topology, GNUNET_NO if not
806 GNUNET_TESTING_topology_get(enum GNUNET_TESTING_Topology *topology,
807 const char * topology_string);
810 * Get connect topology option from string input.
812 * @param topology_option where to write the retrieved topology
813 * @param topology_string The string to attempt to
814 * get a configuration value from
815 * @return GNUNET_YES if topology string matched a
816 * known topology, GNUNET_NO if not
819 GNUNET_TESTING_topology_option_get(enum GNUNET_TESTING_TopologyOption *topology_option,
820 const char * topology_string);
824 * Takes a peer group and creates a topology based on the
825 * one specified. Creates a topology means generates friend
826 * files for the peers so they can only connect to those allowed
827 * by the topology. This will only have an effect once peers
828 * are started if the FRIENDS_ONLY option is set in the base
831 * Also takes an optional restrict topology which
832 * disallows direct connections UNLESS they are specified in
833 * the restricted topology.
835 * A simple example; if the topology option is set to LINE
836 * peers can ONLY connect in a LINE. However, if the topology
837 * option is set to 2D-torus and the restrict option is set to
838 * line with restrict_transports equal to "tcp udp", then peers
839 * may connect in a 2D-torus, but will be restricted to tcp and
840 * udp connections only in a LINE. Generally it only makes
841 * sense to do this if restrict_topology is a subset of topology.
843 * For testing peer discovery, etc. it is generally better to
844 * leave restrict_topology as GNUNET_TESTING_TOPOLOGY_NONE and
845 * then use the connect_topology function to restrict the initial
848 * @param pg the peer group struct representing the running peers
849 * @param topology which topology to connect the peers in
850 * @param restrict_topology allow only direct connections in this topology,
851 * based on those listed in restrict_transports, set to
852 * GNUNET_TESTING_TOPOLOGY_NONE for no restrictions
853 * @param restrict_transports space delimited list of transports to blacklist
854 * to create restricted topology, NULL for none
856 * @return the maximum number of connections were all allowed peers
857 * connected to each other
860 GNUNET_TESTING_create_topology (struct GNUNET_TESTING_PeerGroup *pg,
861 enum GNUNET_TESTING_Topology topology,
862 enum GNUNET_TESTING_Topology restrict_topology,
863 const char *restrict_transports);
866 * Iterate over all (running) peers in the peer group, retrieve
867 * all connections that each currently has.
869 * @param pg the peer group we are concerned with
870 * @param cb callback for topology information
871 * @param cls closure for callback
874 GNUNET_TESTING_get_topology (struct GNUNET_TESTING_PeerGroup *pg,
875 GNUNET_TESTING_NotifyTopology cb, void *cls);
878 * There are many ways to connect peers that are supported by this function.
879 * To connect peers in the same topology that was created via the
880 * GNUNET_TESTING_create_topology, the topology variable must be set to
881 * GNUNET_TESTING_TOPOLOGY_NONE. If the topology variable is specified,
882 * a new instance of that topology will be generated and attempted to be
883 * connected. This could result in some connections being impossible,
884 * because some topologies are non-deterministic.
886 * @param pg the peer group struct representing the running peers
887 * @param topology which topology to connect the peers in
888 * @param options options for connecting the topology
889 * @param option_modifier modifier for options that take a parameter
890 * @param notify_callback notification to be called once all connections completed
891 * @param notify_cls closure for notification callback
893 * @return the number of connections that will be attempted (multiple of two,
894 * each bidirectional connection counts twice!), GNUNET_SYSERR on error
898 GNUNET_TESTING_connect_topology (struct GNUNET_TESTING_PeerGroup *pg,
899 enum GNUNET_TESTING_Topology topology,
900 enum GNUNET_TESTING_TopologyOption options,
901 double option_modifier,
902 GNUNET_TESTING_NotifyCompletion notify_callback,
906 * Start or stop an individual peer from the given group.
908 * @param pg handle to the peer group
909 * @param offset which peer to start or stop
910 * @param desired_status GNUNET_YES to have it running, GNUNET_NO to stop it
911 * @param timeout how long to wait for shutdown
912 * @param cb function to call at the end
913 * @param cb_cls closure for cb
916 GNUNET_TESTING_daemons_vary (struct GNUNET_TESTING_PeerGroup *pg,
919 struct GNUNET_TIME_Relative timeout,
920 GNUNET_TESTING_NotifyCompletion cb,
924 #if 0 /* keep Emacsens' auto-indent happy */