rename _new.c to just .c for tests
This commit is contained in:
parent
3684910845
commit
21edd1e903
6
.gitignore
vendored
6
.gitignore
vendored
@ -38,11 +38,8 @@ src/auditor/taler-auditor-dbinit
|
|||||||
src/auditor/taler-auditor-sign
|
src/auditor/taler-auditor-sign
|
||||||
src/bank-lib/taler-fakebank-run
|
src/bank-lib/taler-fakebank-run
|
||||||
src/bank-lib/test_bank_api
|
src/bank-lib/test_bank_api
|
||||||
src/bank-lib/test_bank_api_new
|
|
||||||
src/bank-lib/test_bank_api_with_fakebank
|
src/bank-lib/test_bank_api_with_fakebank
|
||||||
src/bank-lib/test_bank_api_with_fakebank_new
|
|
||||||
src/bank-lib/test_bank_api_with_fakebank_twisted
|
src/bank-lib/test_bank_api_with_fakebank_twisted
|
||||||
src/lib/test_exchange_api_new
|
|
||||||
src/lib/test_exchange_api
|
src/lib/test_exchange_api
|
||||||
src/lib/test_exchange_api_keys_cherry_picking_home/.local/share/taler/exchange/live-keys/
|
src/lib/test_exchange_api_keys_cherry_picking_home/.local/share/taler/exchange/live-keys/
|
||||||
src/lib/test_exchange_api_keys_cherry_picking_home/.local/share/taler/exchange/wirefees/
|
src/lib/test_exchange_api_keys_cherry_picking_home/.local/share/taler/exchange/wirefees/
|
||||||
@ -105,7 +102,6 @@ doc/manual/manual.vr
|
|||||||
contrib/taler-exchange.tag
|
contrib/taler-exchange.tag
|
||||||
doxygen-doc/
|
doxygen-doc/
|
||||||
src/lib/test_exchange_api_keys_cherry_picking
|
src/lib/test_exchange_api_keys_cherry_picking
|
||||||
src/lib/test_exchange_api_keys_cherry_picking_new
|
|
||||||
src/auditor/taler-wire-auditor
|
src/auditor/taler-wire-auditor
|
||||||
contrib/auditor-report.aux
|
contrib/auditor-report.aux
|
||||||
contrib/auditor-report.log
|
contrib/auditor-report.log
|
||||||
@ -113,7 +109,7 @@ contrib/auditor-report.tex
|
|||||||
contrib/auditor-report.pdf
|
contrib/auditor-report.pdf
|
||||||
src/bank-lib/taler-bank-transfer
|
src/bank-lib/taler-bank-transfer
|
||||||
src/bank-lib/test_bank_api_twisted
|
src/bank-lib/test_bank_api_twisted
|
||||||
src/lib/test_exchange_api_new
|
src/lib/test_exchange_api
|
||||||
src/lib/test_auditor_api
|
src/lib/test_auditor_api
|
||||||
src/lib/test_exchange_api_overlapping_keys_bug
|
src/lib/test_exchange_api_overlapping_keys_bug
|
||||||
src/lib/test_exchange_api_home/.local/share/taler/exchange/revocations/
|
src/lib/test_exchange_api_home/.local/share/taler/exchange/revocations/
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public
|
You should have received a copy of the GNU General Public
|
||||||
License along with TALER; see the file COPYING. If not,
|
License along with TALER; see the file COPYING. If not,
|
||||||
see <http://www.gnu.org/licenses/>
|
see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -73,6 +73,7 @@ struct GNUNET_OS_Process *bankd;
|
|||||||
*/
|
*/
|
||||||
char *bank_url;
|
char *bank_url;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main function that will tell the interpreter what commands to
|
* Main function that will tell the interpreter what commands to
|
||||||
* run.
|
* run.
|
||||||
@ -83,12 +84,9 @@ static void
|
|||||||
run (void *cls,
|
run (void *cls,
|
||||||
struct TALER_TESTING_Interpreter *is)
|
struct TALER_TESTING_Interpreter *is)
|
||||||
{
|
{
|
||||||
|
|
||||||
extern struct TALER_BANK_AuthenticationData AUTHS[];
|
extern struct TALER_BANK_AuthenticationData AUTHS[];
|
||||||
struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
|
struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
|
||||||
|
|
||||||
struct TALER_TESTING_Command commands[] = {
|
struct TALER_TESTING_Command commands[] = {
|
||||||
|
|
||||||
TALER_TESTING_cmd_bank_history ("history-0",
|
TALER_TESTING_cmd_bank_history ("history-0",
|
||||||
bank_url,
|
bank_url,
|
||||||
EXCHANGE_ACCOUNT_NUMBER,
|
EXCHANGE_ACCOUNT_NUMBER,
|
||||||
@ -96,7 +94,6 @@ run (void *cls,
|
|||||||
GNUNET_NO,
|
GNUNET_NO,
|
||||||
NULL, /* start */
|
NULL, /* start */
|
||||||
5),
|
5),
|
||||||
|
|
||||||
TALER_TESTING_cmd_bank_history_range_with_dates
|
TALER_TESTING_cmd_bank_history_range_with_dates
|
||||||
("history-0-range",
|
("history-0-range",
|
||||||
bank_url,
|
bank_url,
|
||||||
@ -117,7 +114,6 @@ run (void *cls,
|
|||||||
AUTHS[BANK_ACCOUNT_NUMBER -1].details.basic.password,
|
AUTHS[BANK_ACCOUNT_NUMBER -1].details.basic.password,
|
||||||
"subject 1",
|
"subject 1",
|
||||||
"http://exchange.com/"),
|
"http://exchange.com/"),
|
||||||
|
|
||||||
/* bank gives to exchange */
|
/* bank gives to exchange */
|
||||||
TALER_TESTING_cmd_fakebank_transfer_with_subject
|
TALER_TESTING_cmd_fakebank_transfer_with_subject
|
||||||
("deposit-2",
|
("deposit-2",
|
||||||
@ -129,7 +125,6 @@ run (void *cls,
|
|||||||
AUTHS[BANK_ACCOUNT_NUMBER -1].details.basic.password,
|
AUTHS[BANK_ACCOUNT_NUMBER -1].details.basic.password,
|
||||||
"subject 2",
|
"subject 2",
|
||||||
"http://exchange.com/"),
|
"http://exchange.com/"),
|
||||||
|
|
||||||
TALER_TESTING_cmd_bank_history ("history-1c",
|
TALER_TESTING_cmd_bank_history ("history-1c",
|
||||||
bank_url,
|
bank_url,
|
||||||
EXCHANGE_ACCOUNT_NUMBER,
|
EXCHANGE_ACCOUNT_NUMBER,
|
||||||
@ -137,7 +132,6 @@ run (void *cls,
|
|||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
NULL,
|
NULL,
|
||||||
5),
|
5),
|
||||||
|
|
||||||
TALER_TESTING_cmd_bank_history ("history-1d",
|
TALER_TESTING_cmd_bank_history ("history-1d",
|
||||||
bank_url,
|
bank_url,
|
||||||
EXCHANGE_ACCOUNT_NUMBER,
|
EXCHANGE_ACCOUNT_NUMBER,
|
||||||
@ -145,7 +139,6 @@ run (void *cls,
|
|||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
NULL,
|
NULL,
|
||||||
5),
|
5),
|
||||||
|
|
||||||
TALER_TESTING_cmd_bank_history ("history-1dr",
|
TALER_TESTING_cmd_bank_history ("history-1dr",
|
||||||
bank_url,
|
bank_url,
|
||||||
EXCHANGE_ACCOUNT_NUMBER,
|
EXCHANGE_ACCOUNT_NUMBER,
|
||||||
@ -153,7 +146,6 @@ run (void *cls,
|
|||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
NULL,
|
NULL,
|
||||||
5),
|
5),
|
||||||
|
|
||||||
TALER_TESTING_cmd_bank_history ("history-2fwd",
|
TALER_TESTING_cmd_bank_history ("history-2fwd",
|
||||||
bank_url,
|
bank_url,
|
||||||
EXCHANGE_ACCOUNT_NUMBER,
|
EXCHANGE_ACCOUNT_NUMBER,
|
||||||
@ -161,7 +153,6 @@ run (void *cls,
|
|||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
"deposit-1",
|
"deposit-1",
|
||||||
5),
|
5),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Just check that the two transactions show up.
|
* Just check that the two transactions show up.
|
||||||
*/
|
*/
|
||||||
@ -175,7 +166,6 @@ run (void *cls,
|
|||||||
50),
|
50),
|
||||||
ADDSECS (now,
|
ADDSECS (now,
|
||||||
5)),
|
5)),
|
||||||
|
|
||||||
TALER_TESTING_cmd_bank_reject ("reject-1",
|
TALER_TESTING_cmd_bank_reject ("reject-1",
|
||||||
bank_url,
|
bank_url,
|
||||||
"deposit-1"),
|
"deposit-1"),
|
||||||
@ -208,16 +198,16 @@ main(int argc,
|
|||||||
if (NULL == (bankd =
|
if (NULL == (bankd =
|
||||||
TALER_TESTING_run_bank (CONFIG_FILE, bank_url)))
|
TALER_TESTING_run_bank (CONFIG_FILE, bank_url)))
|
||||||
return 77;
|
return 77;
|
||||||
|
|
||||||
ret = TALER_TESTING_setup (&run,
|
ret = TALER_TESTING_setup (&run,
|
||||||
NULL,
|
NULL,
|
||||||
CONFIG_FILE,
|
CONFIG_FILE,
|
||||||
NULL,
|
NULL,
|
||||||
GNUNET_NO); // means no exchange.
|
GNUNET_NO); // means no exchange.
|
||||||
|
|
||||||
GNUNET_OS_process_kill (bankd, SIGKILL);
|
GNUNET_OS_process_kill (bankd, SIGKILL);
|
||||||
GNUNET_OS_process_wait (bankd);
|
GNUNET_OS_process_wait (bankd);
|
||||||
GNUNET_OS_process_destroy (bankd);
|
GNUNET_OS_process_destroy (bankd);
|
||||||
GNUNET_free (bank_url);
|
GNUNET_free (bank_url);
|
||||||
|
|
||||||
if (GNUNET_OK == ret)
|
if (GNUNET_OK == ret)
|
||||||
|
@ -157,9 +157,9 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
check_PROGRAMS = \
|
check_PROGRAMS = \
|
||||||
test_exchange_api_keys_cherry_picking_new \
|
test_exchange_api_keys_cherry_picking \
|
||||||
test_exchange_api_overlapping_keys_bug \
|
test_exchange_api_overlapping_keys_bug \
|
||||||
test_exchange_api_new \
|
test_exchange_api \
|
||||||
test_auditor_api_version \
|
test_auditor_api_version \
|
||||||
test_auditor_api
|
test_auditor_api
|
||||||
|
|
||||||
@ -190,9 +190,9 @@ AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=
|
|||||||
TESTS = \
|
TESTS = \
|
||||||
$(check_PROGRAMS)
|
$(check_PROGRAMS)
|
||||||
|
|
||||||
test_exchange_api_new_SOURCES = \
|
test_exchange_api_SOURCES = \
|
||||||
test_exchange_api_new.c
|
test_exchange_api.c
|
||||||
test_exchange_api_new_LDADD = \
|
test_exchange_api_LDADD = \
|
||||||
libtalertesting.la \
|
libtalertesting.la \
|
||||||
libtalerexchange.la \
|
libtalerexchange.la \
|
||||||
$(LIBGCRYPT_LIBS) \
|
$(LIBGCRYPT_LIBS) \
|
||||||
@ -217,9 +217,9 @@ test_exchange_api_overlapping_keys_bug_LDADD = \
|
|||||||
-lgnunetutil \
|
-lgnunetutil \
|
||||||
-ljansson
|
-ljansson
|
||||||
|
|
||||||
test_exchange_api_keys_cherry_picking_new_SOURCES = \
|
test_exchange_api_keys_cherry_picking_SOURCES = \
|
||||||
test_exchange_api_keys_cherry_picking_new.c
|
test_exchange_api_keys_cherry_picking.c
|
||||||
test_exchange_api_keys_cherry_picking_new_LDADD = \
|
test_exchange_api_keys_cherry_picking_LDADD = \
|
||||||
libtalertesting.la \
|
libtalertesting.la \
|
||||||
libtalerexchange.la \
|
libtalerexchange.la \
|
||||||
$(LIBGCRYPT_LIBS) \
|
$(LIBGCRYPT_LIBS) \
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file exchange/test_exchange_api_new.c
|
* @file exchange/test_exchange_api.c
|
||||||
* @brief testcase to test exchange's HTTP API interface
|
* @brief testcase to test exchange's HTTP API interface
|
||||||
* @author Sree Harsha Totakura <sreeharsha@totakura.in>
|
* @author Sree Harsha Totakura <sreeharsha@totakura.in>
|
||||||
* @author Christian Grothoff
|
* @author Christian Grothoff
|
||||||
@ -879,7 +879,7 @@ run (void *cls,
|
|||||||
struct TALER_TESTING_Command reserve_open_close
|
struct TALER_TESTING_Command reserve_open_close
|
||||||
[(RESERVE_OPEN_CLOSE_ITERATIONS
|
[(RESERVE_OPEN_CLOSE_ITERATIONS
|
||||||
* RESERVE_OPEN_CLOSE_CHUNK) + 1];
|
* RESERVE_OPEN_CLOSE_CHUNK) + 1];
|
||||||
|
|
||||||
for (unsigned int i = 0;
|
for (unsigned int i = 0;
|
||||||
i < RESERVE_OPEN_CLOSE_ITERATIONS;
|
i < RESERVE_OPEN_CLOSE_ITERATIONS;
|
||||||
i++)
|
i++)
|
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file exchange-lib/test_exchange_api_keys_cherry_picking_new.c
|
* @file exchange-lib/test_exchange_api_keys_cherry_picking.c
|
||||||
* @brief testcase to test exchange's /keys cherry picking ability
|
* @brief testcase to test exchange's /keys cherry picking ability
|
||||||
* @author Marcello Stanisci
|
* @author Marcello Stanisci
|
||||||
* @author Christian Grothoff
|
* @author Christian Grothoff
|
||||||
@ -215,7 +215,7 @@ run (void *cls,
|
|||||||
|
|
||||||
TALER_TESTING_cmd_check_keys_with_now
|
TALER_TESTING_cmd_check_keys_with_now
|
||||||
("check-keys-3",
|
("check-keys-3",
|
||||||
3,
|
3,
|
||||||
NDKS_RIGHT_BEFORE_SERIALIZATION,
|
NDKS_RIGHT_BEFORE_SERIALIZATION,
|
||||||
TTH_parse_time (JAN2030)),
|
TTH_parse_time (JAN2030)),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user