Lines Matching refs:mom

530 moment_assign(struct replay_runtime* runtime, struct replay_moment* mom)
532 char* value = macro_process(runtime->vars, runtime, mom->string);
534 fatal_exit("could not process macro step %d", mom->time_step);
535 log_info("assign %s = %s", mom->variable, value);
536 if(!macro_assign(runtime->vars, mom->variable, value))
545 time_passes(struct replay_runtime* runtime, struct replay_moment* mom)
548 struct timeval tv = mom->elapse;
549 if(mom->string) {
550 char* xp = macro_process(runtime->vars, runtime, mom->string);
552 if(!xp) fatal_exit("could not macro expand %s", mom->string);
553 verbose(VERB_ALGO, "EVAL %s", mom->string);
579 autotrust_check(struct replay_runtime* runtime, struct replay_moment* mom)
587 log_assert(mom->autotrust_id);
588 fake_temp_file("_auto_", mom->autotrust_id, name, sizeof(name));
591 for(p=mom->file_content; p; p=p->next) {
626 fatal_exit("autotrust_check STEP %d failed", mom->time_step);
627 log_info("autotrust %s is OK", mom->autotrust_id);
632 tempfile_check(struct replay_runtime* runtime, struct replay_moment* mom)
640 log_assert(mom->autotrust_id);
641 fake_temp_file("_temp_", mom->autotrust_id, name, sizeof(name));
644 for(p=mom->file_content; p; p=p->next) {
679 fatal_exit("tempfile_check STEP %d failed", mom->time_step);
680 log_info("tempfile %s is OK", mom->autotrust_id);
739 struct replay_moment* mom;
752 moment which may check some result of the mom step
754 mom = runtime->now;
756 fake_front_query(runtime, mom);
764 mom = runtime->now;
767 fake_pending_callback(runtime, mom, NETEVENT_TIMEOUT);
770 mom = runtime->now;
772 fake_pending_callback(runtime, mom, NETEVENT_NOERROR);
780 mom = runtime->now;
782 fake_pending_callback(runtime, mom, NETEVENT_CLOSED);