summaryrefslogtreecommitdiff
path: root/runner/results.c
blob: 3eb7cb1553b8bf8f12f835f1331f41dbe57a9b09 (plain)
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
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "resultgen.h"

int main(int argc, char **argv)
{
	int dirfd;

	if (argc < 2)
		exit(1);

	dirfd = open(argv[1], O_DIRECTORY | O_RDONLY);
	if (dirfd < 0)
		exit(1);

	if (generate_results(dirfd)) {
		printf("Results generated\n");
		exit(0);
	}

	exit(1);
}