diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-02-28 12:16:44 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-03-03 20:23:50 +0200 |
commit | 7167422cbf66252cc7d4978ee66216fb46280ffb (patch) | |
tree | 1ac384da67e2b3c20806a213bc09a606bbbdca32 /tests/test_helpers.h | |
parent | 705a90ec9e71fbc7ab8b01a8572ca5f953cd81a2 (diff) | |
download | libgit2-7167422cbf66252cc7d4978ee66216fb46280ffb.tar.gz |
Refactored some test related constants.
Diffstat (limited to 'tests/test_helpers.h')
-rw-r--r-- | tests/test_helpers.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/test_helpers.h b/tests/test_helpers.h index c757eb6bc..57152b550 100644 --- a/tests/test_helpers.h +++ b/tests/test_helpers.h @@ -29,11 +29,15 @@ #include "test_lib.h" #include <git2.h> -#define ODB_FOLDER (TEST_RESOURCES "/testrepo.git/objects/") -#define REPOSITORY_FOLDER (TEST_RESOURCES "/testrepo.git/") -#define TEST_INDEX_PATH (TEST_RESOURCES "/testrepo.git/index") -#define TEST_INDEX2_PATH (TEST_RESOURCES "/gitgit.index") -#define TEST_INDEXBIG_PATH (TEST_RESOURCES "/big.index") +#define TEST_REPOSITORY_NAME "testrepo.git" +#define REPOSITORY_FOLDER TEST_RESOURCES "/" TEST_REPOSITORY_NAME "/" +#define ODB_FOLDER (REPOSITORY_FOLDER "objects/") +#define TEST_INDEX_PATH (REPOSITORY_FOLDER "index") +#define TEST_INDEX2_PATH (TEST_RESOURCES "/gitgit.index") +#define TEST_INDEXBIG_PATH (TEST_RESOURCES "/big.index") + +#define TEMP_DIR_WITHOUT_TRAILING_SLASH TEST_RESOURCES "/temp_working" +#define TEMP_DIR TEMP_DIR_WITHOUT_TRAILING_SLASH "/" typedef struct object_data { unsigned char *bytes; /* (compressed) bytes stored in object store */ |