File: job_list.h

package info (click to toggle)
intel-gpu-tools 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 62,024 kB
  • sloc: xml: 769,439; ansic: 348,692; python: 8,307; yacc: 2,781; perl: 1,196; sh: 1,178; lex: 487; asm: 227; makefile: 27; lisp: 11
file content (44 lines) | stat: -rw-r--r-- 1,254 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef RUNNER_JOB_LIST_H
#define RUNNER_JOB_LIST_H

#include <stdbool.h>

#include "settings.h"

struct job_list_entry {
	char *binary;
	char **subtests;
	/*
	 * 0 = all, or test has no subtests.
	 *
	 * If the original job_list was to run all subtests of a
	 * binary and such a run was incomplete, resuming from the
	 * execution journal will fill the subtest array with already
	 * started subtests prepended with '!' so the test binary will
	 * not run them. subtest_count will still reflect the size of
	 * the above array.
	 */
	size_t subtest_count;
};

struct job_list
{
	struct job_list_entry *entries;
	size_t size;
};

void generate_piglit_name(const char *binary, const char *subtest,
			  char *namebuf, size_t namebuf_size);
void generate_piglit_name_for_dynamic(const char *base_piglit_name,
				      const char *dynamic_subtest,
				      char *namebuf, size_t namebuf_size);

void init_job_list(struct job_list *job_list);
void free_job_list(struct job_list *job_list);
bool create_job_list(struct job_list *job_list, struct settings *settings);

bool serialize_job_list(struct job_list *job_list, struct settings *settings);
bool read_job_list(struct job_list *job_list, int dirfd);
void list_all_tests(struct job_list *lst);

#endif