Move only downwards in the filesystem hierarchy

This will pick up the local copies of the test data by default, without
needing to create a subdirectory in the backend/tests path and executing
the tests from there. The Current Working Directory can be set if this
proves to be insufficient
This commit is contained in:
Schaich
2021-03-22 21:15:00 +09:00
parent 98cd7b231f
commit 6de8fe1c62
8 changed files with 142 additions and 142 deletions

View File

@ -129,13 +129,13 @@ static void test_print(int index, int generate, int debug) {
char* expected_file;
};
struct item data[] = {
/* 0*/ { BARCODE_PDF417, 5, -1, -1, -1, "147AD0", "FC9630", "123", "../data/bmp/pdf417_fg_bg.bmp" },
/* 1*/ { BARCODE_ULTRA, 5, -1, -1, -1, "147AD0", "FC9630", "123", "../data/bmp/ultracode_fg_bg.bmp" },
/* 2*/ { BARCODE_PDF417COMP, 2, 2, -1, -1, "", "", "123", "../data/bmp/pdf417comp_hvwsp2.bmp" },
/* 0*/ { BARCODE_PDF417, 5, -1, -1, -1, "147AD0", "FC9630", "123", "data/bmp/pdf417_fg_bg.bmp" },
/* 1*/ { BARCODE_ULTRA, 5, -1, -1, -1, "147AD0", "FC9630", "123", "data/bmp/ultracode_fg_bg.bmp" },
/* 2*/ { BARCODE_PDF417COMP, 2, 2, -1, -1, "", "", "123", "data/bmp/pdf417comp_hvwsp2.bmp" },
};
int data_size = ARRAY_SIZE(data);
char* data_dir = "../data/bmp";
char* data_dir = "data/bmp";
char* bmp = "out.bmp";
char escaped[1024];
int escaped_size = 1024;