rename _new.c to just .c for tests

This commit is contained in:
Christian Grothoff 2019-06-08 21:41:12 +02:00
parent 3684910845
commit 21edd1e903
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
5 changed files with 19 additions and 33 deletions

6
.gitignore vendored
View File

@ -38,11 +38,8 @@ src/auditor/taler-auditor-dbinit
src/auditor/taler-auditor-sign
src/bank-lib/taler-fakebank-run
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_new
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_keys_cherry_picking_home/.local/share/taler/exchange/live-keys/
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
doxygen-doc/
src/lib/test_exchange_api_keys_cherry_picking
src/lib/test_exchange_api_keys_cherry_picking_new
src/auditor/taler-wire-auditor
contrib/auditor-report.aux
contrib/auditor-report.log
@ -113,7 +109,7 @@ contrib/auditor-report.tex
contrib/auditor-report.pdf
src/bank-lib/taler-bank-transfer
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_exchange_api_overlapping_keys_bug
src/lib/test_exchange_api_home/.local/share/taler/exchange/revocations/

View File

@ -73,6 +73,7 @@ struct GNUNET_OS_Process *bankd;
*/
char *bank_url;
/**
* Main function that will tell the interpreter what commands to
* run.
@ -83,12 +84,9 @@ static void
run (void *cls,
struct TALER_TESTING_Interpreter *is)
{
extern struct TALER_BANK_AuthenticationData AUTHS[];
struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
struct TALER_TESTING_Command commands[] = {
TALER_TESTING_cmd_bank_history ("history-0",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@ -96,7 +94,6 @@ run (void *cls,
GNUNET_NO,
NULL, /* start */
5),
TALER_TESTING_cmd_bank_history_range_with_dates
("history-0-range",
bank_url,
@ -117,7 +114,6 @@ run (void *cls,
AUTHS[BANK_ACCOUNT_NUMBER -1].details.basic.password,
"subject 1",
"http://exchange.com/"),
/* bank gives to exchange */
TALER_TESTING_cmd_fakebank_transfer_with_subject
("deposit-2",
@ -129,7 +125,6 @@ run (void *cls,
AUTHS[BANK_ACCOUNT_NUMBER -1].details.basic.password,
"subject 2",
"http://exchange.com/"),
TALER_TESTING_cmd_bank_history ("history-1c",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@ -137,7 +132,6 @@ run (void *cls,
GNUNET_YES,
NULL,
5),
TALER_TESTING_cmd_bank_history ("history-1d",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@ -145,7 +139,6 @@ run (void *cls,
GNUNET_YES,
NULL,
5),
TALER_TESTING_cmd_bank_history ("history-1dr",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@ -153,7 +146,6 @@ run (void *cls,
GNUNET_YES,
NULL,
5),
TALER_TESTING_cmd_bank_history ("history-2fwd",
bank_url,
EXCHANGE_ACCOUNT_NUMBER,
@ -161,7 +153,6 @@ run (void *cls,
GNUNET_YES,
"deposit-1",
5),
/**
* Just check that the two transactions show up.
*/
@ -175,7 +166,6 @@ run (void *cls,
50),
ADDSECS (now,
5)),
TALER_TESTING_cmd_bank_reject ("reject-1",
bank_url,
"deposit-1"),

View File

@ -157,9 +157,9 @@ endif
endif
check_PROGRAMS = \
test_exchange_api_keys_cherry_picking_new \
test_exchange_api_keys_cherry_picking \
test_exchange_api_overlapping_keys_bug \
test_exchange_api_new \
test_exchange_api \
test_auditor_api_version \
test_auditor_api
@ -190,9 +190,9 @@ AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=
TESTS = \
$(check_PROGRAMS)
test_exchange_api_new_SOURCES = \
test_exchange_api_new.c
test_exchange_api_new_LDADD = \
test_exchange_api_SOURCES = \
test_exchange_api.c
test_exchange_api_LDADD = \
libtalertesting.la \
libtalerexchange.la \
$(LIBGCRYPT_LIBS) \
@ -217,9 +217,9 @@ test_exchange_api_overlapping_keys_bug_LDADD = \
-lgnunetutil \
-ljansson
test_exchange_api_keys_cherry_picking_new_SOURCES = \
test_exchange_api_keys_cherry_picking_new.c
test_exchange_api_keys_cherry_picking_new_LDADD = \
test_exchange_api_keys_cherry_picking_SOURCES = \
test_exchange_api_keys_cherry_picking.c
test_exchange_api_keys_cherry_picking_LDADD = \
libtalertesting.la \
libtalerexchange.la \
$(LIBGCRYPT_LIBS) \

View File

@ -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
* @author Sree Harsha Totakura <sreeharsha@totakura.in>
* @author Christian Grothoff

View File

@ -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
* @author Marcello Stanisci
* @author Christian Grothoff