aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/deliverable.h2
-rw-r--r--include/utils.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/deliverable.h b/include/deliverable.h
index b528c46..85cda6b 100644
--- a/include/deliverable.h
+++ b/include/deliverable.h
@@ -129,6 +129,8 @@ struct Delivery {
char *repository; ///< Git repository of package
char *script; ///< Commands to execute
char *build_recipe; ///< Conda recipe to build (optional)
+ char *repository_info_ref; ///< Git commit hash
+ char *repository_info_tag; ///< Git tag (first parent)
struct Runtime runtime; ///< Environment variables specific to the test context
} tests[1000]; ///< An array of tests
diff --git a/include/utils.h b/include/utils.h
index f0400fb..d32a123 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -33,6 +33,7 @@ char *find_program(const char *name);
int touch(const char *filename);
int git_clone(struct Process *proc, char *url, char *destdir, char *gitref);
char *git_describe(const char *path);
+char *git_rev_parse(const char *path, char *args);
int path_store(char **destptr, size_t maxlen, const char *base, const char *path);
#define OMC_MSG_SUCCESS 0