summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-04-03 16:07:04 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-04-03 16:07:04 +0200
commit35c064b93739795832598893b1885ff7cfd9faf8 (patch)
tree36dc79df5790f97ec56604f395e01e8ea5c73311 /src/include
parent219f702926c61adedea9458e07a6936e76cfe13e (diff)
downloadexchange-35c064b93739795832598893b1885ff7cfd9faf8.tar.gz
exchange-35c064b93739795832598893b1885ff7cfd9faf8.tar.bz2
exchange-35c064b93739795832598893b1885ff7cfd9faf8.zip
Faking the time.
Cherry-pick tests now uses the now-faked version of taler-exchange-keyup. Fails.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_testing_lib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 711a13235..7c2f6f29a 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -920,6 +920,22 @@ TALER_TESTING_cmd_exec_keyup (const char *label,
const char *config_filename);
/**
+ * Make the "keyup" CMD, with "--timestamp" option.
+ *
+ * @param label command label.
+ * @param config_filename configuration filename.
+ * @param now Unix timestamp representing the fake "now".
+ *
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_exec_keyup_with_now
+ (const char *label,
+ const char *config_filename,
+ struct GNUNET_TIME_Absolute now);
+
+
+/**
* Make a "auditor sign" CMD.
*
* @param label command label