Add test utils
This commit is contained in:
parent
31d78bfcd3
commit
7beac7e475
11
include/test_utils.h
Normal file
11
include/test_utils.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef TEST_UTILS_H
|
||||
#define TEST_UTILS_H
|
||||
|
||||
#define ARRLEN(ARR) (sizeof ARR / sizeof ARR[0])
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const char *contents;
|
||||
} asset_t;
|
||||
|
||||
#endif // !TEST_UTILS_H
|
@ -1,19 +1,13 @@
|
||||
#include "aliases.h"
|
||||
#include "io.h"
|
||||
#include "pak.h"
|
||||
#include "test_utils.h"
|
||||
#include <linux/limits.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define ARRLEN(ARR) (sizeof ARR / sizeof ARR[0])
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const char *contents;
|
||||
} asset_t;
|
||||
|
||||
i32 main(i32 argc, char *argv[]) {
|
||||
char filepath[PATH_MAX] = {0};
|
||||
realpath("assets.pak", filepath);
|
||||
|
Loading…
Reference in New Issue
Block a user