16 import validationserver
18 from validationtestutil
import check_execute, check_path_exists
23 Runs two test validations, starts the web server and queries data
26 rev_to_gen =
"test_folder_creation"
27 all_tags = [
"reference", rev_to_gen]
30 with tempfile.TemporaryDirectory()
as tmpdir:
31 print(f
"Created temporary test folder {tmpdir}")
49 str(tmpdir), rev_to_gen
54 "validationTestPlots.py.log",
59 "validationTestPlots.root",
61 expect_html_plots_comparison_json,
62 expect_html_plots_comparison_folder,
65 check_path_exists(path_to_check)
74 os.path.join(str(tmpdir), validationpath.folder_name_html),
77 validationpath.folder_name_html,
78 validationpath.folder_name_plots,
81 check_path_exists(path_to_check)
85 shutil.rmtree(expect_html_plots_comparison_folder)
90 check_execute(
"create_validation_plots.py")
91 check_path_exists(path_to_check)
94 if __name__ ==
"__main__":
int main(int argc, char **argv)
Run all tests.
def execute(tag=None, is_test=None)
def get_results_tag_folder(output_base_dir, tag)
def get_html_plots_tag_comparison_json(output_base_dir, tags)
def get_html_plots_tag_comparison_folder(output_base_dir, tags)
def get_results_tag_revision_file(output_base_dir, tag)
def run_server(ip="127.0.0.1", port=8000, parse_command_line=False, open_site=False, dry_run=False)