Home | History | Annotate | Download | only in testcode

Lines Matching refs:mom

540 moment_assign(struct replay_runtime* runtime, struct replay_moment* mom)
542 char* value = macro_process(runtime->vars, runtime, mom->string);
544 fatal_exit("could not process macro step %d", mom->time_step);
545 log_info("assign %s = %s", mom->variable, value);
546 if(!macro_assign(runtime->vars, mom->variable, value))
555 time_passes(struct replay_runtime* runtime, struct replay_moment* mom)
558 struct timeval tv = mom->elapse;
559 if(mom->string) {
560 char* xp = macro_process(runtime->vars, runtime, mom->string);
562 if(!xp) fatal_exit("could not macro expand %s", mom->string);
563 verbose(VERB_ALGO, "EVAL %s", mom->string);
589 autotrust_check(struct replay_runtime* runtime, struct replay_moment* mom)
597 log_assert(mom->autotrust_id);
598 fake_temp_file("_auto_", mom->autotrust_id, name, sizeof(name));
601 for(p=mom->file_content; p; p=p->next) {
636 fatal_exit("autotrust_check STEP %d failed", mom->time_step);
637 log_info("autotrust %s is OK", mom->autotrust_id);
642 tempfile_check(struct replay_runtime* runtime, struct replay_moment* mom)
650 log_assert(mom->autotrust_id);
651 fake_temp_file("_temp_", mom->autotrust_id, name, sizeof(name));
654 for(p=mom->file_content; p; p=p->next) {
689 fatal_exit("tempfile_check STEP %d failed", mom->time_step);
690 log_info("tempfile %s is OK", mom->autotrust_id);
809 struct replay_moment* mom;
822 moment which may check some result of the mom step
824 mom = runtime->now;
826 fake_front_query(runtime, mom);
834 mom = runtime->now;
837 fake_pending_callback(runtime, mom, NETEVENT_TIMEOUT);
840 mom = runtime->now;
842 fake_pending_callback(runtime, mom, NETEVENT_NOERROR);
850 mom = runtime->now;
852 fake_pending_callback(runtime, mom, NETEVENT_CLOSED);