[hb-shape-threads] Adjustments similar to benchmark-shape
Duplication sighz.
This commit is contained in:
parent
d7c9cc34ae
commit
c03a31417b
|
@ -18,36 +18,34 @@
|
||||||
|
|
||||||
struct test_input_t
|
struct test_input_t
|
||||||
{
|
{
|
||||||
const char *text_path;
|
|
||||||
const char *font_path;
|
const char *font_path;
|
||||||
|
const char *text_path;
|
||||||
bool is_variable;
|
bool is_variable;
|
||||||
} default_tests[] =
|
} default_tests[] =
|
||||||
{
|
{
|
||||||
{"perf/texts/fa-thelittleprince.txt",
|
|
||||||
"perf/fonts/Amiri-Regular.ttf",
|
{"perf/fonts/NotoNastaliqUrdu-Regular.ttf",
|
||||||
|
"perf/texts/fa-thelittleprince.txt",
|
||||||
false},
|
false},
|
||||||
|
|
||||||
{"perf/texts/fa-thelittleprince.txt",
|
{"perf/fonts/Amiri-Regular.ttf",
|
||||||
"perf/fonts/NotoNastaliqUrdu-Regular.ttf",
|
"perf/texts/fa-thelittleprince.txt",
|
||||||
false},
|
false},
|
||||||
|
|
||||||
{"perf/texts/en-thelittleprince.txt",
|
{"perf/fonts/Roboto-Regular.ttf",
|
||||||
"perf/fonts/Roboto-Regular.ttf",
|
"perf/texts/en-thelittleprince.txt",
|
||||||
false},
|
false},
|
||||||
|
|
||||||
{"perf/texts/en-thelittleprince.txt",
|
{"perf/fonts/Roboto-Regular.ttf",
|
||||||
SUBSET_FONT_BASE_PATH "SourceSerifVariable-Roman.ttf",
|
"perf/texts/en-words.txt",
|
||||||
true},
|
|
||||||
|
|
||||||
{"perf/texts/en-words.txt",
|
|
||||||
"perf/fonts/Roboto-Regular.ttf",
|
|
||||||
false},
|
false},
|
||||||
|
|
||||||
{"perf/texts/en-words.txt",
|
{SUBSET_FONT_BASE_PATH "SourceSerifVariable-Roman.ttf",
|
||||||
SUBSET_FONT_BASE_PATH "SourceSerifVariable-Roman.ttf",
|
"perf/texts/en-thelittleprince.txt",
|
||||||
true},
|
true},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static test_input_t *tests = default_tests;
|
static test_input_t *tests = default_tests;
|
||||||
static unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
|
static unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
|
||||||
|
|
||||||
|
@ -113,11 +111,11 @@ static void test_backend (backend_t backend,
|
||||||
char name[1024] = "shape";
|
char name[1024] = "shape";
|
||||||
const char *p;
|
const char *p;
|
||||||
strcat (name, "/");
|
strcat (name, "/");
|
||||||
p = strrchr (test_input.text_path, '/');
|
|
||||||
strcat (name, p ? p + 1 : test_input.text_path);
|
|
||||||
strcat (name, "/");
|
|
||||||
p = strrchr (test_input.font_path, '/');
|
p = strrchr (test_input.font_path, '/');
|
||||||
strcat (name, p ? p + 1 : test_input.font_path);
|
strcat (name, p ? p + 1 : test_input.font_path);
|
||||||
|
strcat (name, "/");
|
||||||
|
p = strrchr (test_input.text_path, '/');
|
||||||
|
strcat (name, p ? p + 1 : test_input.text_path);
|
||||||
strcat (name, variable ? "/var" : "");
|
strcat (name, variable ? "/var" : "");
|
||||||
strcat (name, "/");
|
strcat (name, "/");
|
||||||
strcat (name, backend_name);
|
strcat (name, backend_name);
|
||||||
|
|
Loading…
Reference in New Issue