Lines Matching defs:mom

526 moment_assign(struct replay_runtime* runtime, struct replay_moment* mom)
528 char* value = macro_process(runtime->vars, runtime, mom->string);
530 fatal_exit("could not process macro step %d", mom->time_step);
531 log_info("assign %s = %s", mom->variable, value);
532 if(!macro_assign(runtime->vars, mom->variable, value))
541 time_passes(struct replay_runtime* runtime, struct replay_moment* mom)
544 struct timeval tv = mom->elapse;
545 if(mom->string) {
546 char* xp = macro_process(runtime->vars, runtime, mom->string);
548 if(!xp) fatal_exit("could not macro expand %s", mom->string);
549 verbose(VERB_ALGO, "EVAL %s", mom->string);
575 autotrust_check(struct replay_runtime* runtime, struct replay_moment* mom)
583 log_assert(mom->autotrust_id);
584 fake_temp_file("_auto_", mom->autotrust_id, name, sizeof(name));
587 for(p=mom->file_content; p; p=p->next) {
622 fatal_exit("autotrust_check STEP %d failed", mom->time_step);
623 log_info("autotrust %s is OK", mom->autotrust_id);
628 tempfile_check(struct replay_runtime* runtime, struct replay_moment* mom)
636 log_assert(mom->autotrust_id);
637 fake_temp_file("_temp_", mom->autotrust_id, name, sizeof(name));
640 for(p=mom->file_content; p; p=p->next) {
675 fatal_exit("tempfile_check STEP %d failed", mom->time_step);
676 log_info("tempfile %s is OK", mom->autotrust_id);
795 struct replay_moment* mom;
808 moment which may check some result of the mom step
810 mom = runtime->now;
812 fake_front_query(runtime, mom);
820 mom = runtime->now;
823 fake_pending_callback(runtime, mom, NETEVENT_TIMEOUT);
826 mom = runtime->now;
828 fake_pending_callback(runtime, mom, NETEVENT_NOERROR);
836 mom = runtime->now;
838 fake_pending_callback(runtime, mom, NETEVENT_CLOSED);