Commit Graph

110 Commits

Author SHA1 Message Date
Niq Dudfield
7a790246fb fix: upgrade CI to GCC 13 and fix compilation issues, fixes #557 (#559) 2025-08-14 17:41:49 +10:00
tequ
a1d42b7380 Improve unittests (#494)
* Match unit tests on start of test name (#4634)

* For example, without this change, to run the TxQ tests, must specify
  `--unittest=TxQ1,TxQ2` on the command line. With this change, can use
  `--unittest=TxQ`, and both will be run.
* An exact match will prevent any further partial matching.
* This could have some side effects for different tests with a common
  name beginning. For example, NFToken, NFTokenBurn, NFTokenDir. This
  might be useful. If not, the shorter-named test(s) can be renamed. For
  example, NFToken to NFTokens.
* Split the NFToken, NFTokenBurn, and Offer test classes. Potentially speeds
  up parallel tests by a factor of 5.

* SetHook_test, SetHookTSH_test, XahauGenesis_test

---------

Co-authored-by: Ed Hennis <ed@ripple.com>
2025-06-30 10:03:02 +10:00
Denis Angell
80a7197590 fix warnings (#505) 2025-04-30 11:51:58 +02:00
tequ
9018596532 HookCanEmit (#392) 2025-04-15 13:32:35 +10:00
tequ
6625d2be92 Add xpop_slot test (#470) 2025-04-09 20:20:23 +10:00
RichardAH
2fd465bb3f fix20250131 (#428)
Co-authored-by: Denis Angell <dangell@transia.co>
2025-02-03 10:33:19 +10:00
RichardAH
2fb93f874b fixPageCap (#359)
* page cap fix

---------

Co-authored-by: Denis Angell <dangell@transia.co>
2024-09-07 11:39:24 +10:00
Denis Angell
a3852763e7 Fix: Namespace Delete (OwnerCount) (#296)
* fix ns delete owner count
* add a new success code and refactor success checks, limit ns delete operations to 256 entries per txn
---------
Co-authored-by: Richard Holland <richard.holland@starstone.co.nz>
2024-03-25 08:37:08 +11:00
Denis Angell
f64e626a3f Fix: TSH Updates & Emitted Txn (#261)
fixXahauV2
* refactor tsh
* add uritoken mint/cancel tsh
* add flags to hookexections meta and nonce to hookemissions meta

Co-authored-by: Richard Holland <richard.holland@starstone.co.nz>
2024-01-22 10:25:36 +01:00
Denis Angell
475b6f7347 Amendment: Fix Xahau v1 (#231)
* FXV1: Meta Amount (#225)

* FXV1: Optional Offer Sequence (#224)

* FXV1: Patch Hooks OwnerDir (#236)

* FXV1:  Fix `Import` Quorum (#235)

* FXV1: Namespace Limit (#220)

* FXV1: allow duplicate entries in genesis mint transactor (#239)

* FXV1: Fix URIToken (#243)

* lite fixes for tsh issues (#244)

Co-authored-by: RichardAH <richard.holland@starstone.co.nz>
2023-12-21 16:21:17 +01:00
Denis Angell
70bd7c2ce7 Reintroduce Clang-Format & Levelization (#171)
* clang-format

* levelization

* clang-format

* update workflow (#172)

* update workflow

* Update build-in-docker.yml

* fix from `clang-format`

* Update Enum.h
2023-11-01 14:12:24 +01:00
Denis Angell
a2c41016b0 add ticket tests (#129) 2023-10-18 10:10:49 +02:00
Denis Angell
517c7a494b Fix warnings (#108)
* remove unused variable

* rewrite function for transparancy

* unnecessary move

* remove unused variable

* remove unused variables

* fix `nodiscard` warning and ogical-op-parentheses
2023-09-24 11:49:22 +02:00
Richard Holland
d568761fdf L2 tests done 2023-09-23 12:14:34 +00:00
Richard Holland
ba8b5a8cbe add overflow protection to sethook fee calculation 2023-07-17 11:20:15 +00:00
Richard Holland
d4b54c20ed change hook max to 10 2023-03-20 15:07:42 +00:00
Richard Holland
bf41273d2f fix for non-deterministic time bug found on testnet 2023-03-09 09:21:41 +00:00
Richard Holland
c2f99e80af uritoken bugfix, TSH for uritoken, make all txns take optional hook parameters 2023-02-03 12:53:06 +00:00
Richard Holland
039ce53c00 limit state modifications to 256 2023-01-23 12:36:07 +00:00
Richard Holland
beb0710d46 add max state object modification test to state_set unit test 2023-01-23 12:18:00 +00:00
Richard Holland
456d1ebb0d unit tests need to be run against 200/50 reserves due to widespread hardcoding in rippled 2023-01-22 13:49:16 +00:00
Richard Holland
64329a0f20 update state_foreign_set unit test to test reserve exhaustion 2023-01-22 09:22:30 +00:00
Richard Holland
713fbb3d72 namespace correction for UINT256_BIT 2023-01-19 10:31:02 +00:00
Richard Holland
7c1cc2e1d1 fix up some test cases, turn off wasmedge logging 2023-01-16 10:22:20 +00:00
Richard Holland
b12b39d3a6 make state test txn order deterministic 2023-01-13 10:29:11 +00:00
Richard Holland
296ecb3dc9 correct tests for 256bit hookon 2023-01-13 10:17:46 +00:00
Richard Holland
e75e280b25 final hook api test: ledger_keylet 2023-01-13 10:05:05 +00:00
Richard Holland
9adf190b75 otxn_field unit test 2023-01-13 10:05:05 +00:00
Richard Holland
98d8efdb6a trace test cases 2023-01-13 10:05:04 +00:00
Richard Holland
e299f099d8 trace testcase 2023-01-13 10:05:03 +00:00
Richard Holland
61e0a3766c etxn test cases finished 2023-01-13 10:05:02 +00:00
Richard Holland
f73d26b9fe emit testcase work in progress 2023-01-13 10:05:01 +00:00
Richard Holland
c9077e8c84 preliminary version of emit test cases 2023-01-13 10:05:00 +00:00
Richard Holland
480ff62f13 meta_slot testcase 2023-01-13 10:04:59 +00:00
Richard Holland
75007dc8a3 hook_param_set unit test done 2023-01-13 10:04:58 +00:00
Richard Holland
0fe8d9a72f preliminary hook_param_set unittest 2023-01-13 10:04:57 +00:00
Richard Holland
b6ca19ba4e otxn_param (not passing) 2023-01-13 10:04:55 +00:00
Richard Holland
5917dc76f9 hook_param test 2023-01-13 10:04:54 +00:00
Richard Holland
f70ddf9e65 add otxn_param hook api 2023-01-13 10:04:53 +00:00
Richard Holland
75f3b93c78 comment out unfinished str hook api 2023-01-13 10:04:52 +00:00
Richard Holland
3075a01caa preliminary hook_skip test 2023-01-13 10:04:51 +00:00
Richard Holland
708a567f10 hook_again test case 2023-01-13 10:04:49 +00:00
Richard Holland
8ede26b000 hook_pos testcase 2023-01-13 10:04:48 +00:00
Richard Holland
8a10898f23 float_sto_set testcase 2023-01-13 10:04:48 +00:00
Richard Holland
6be3f2d873 float_sto test complete 2023-01-13 10:04:47 +00:00
Richard Holland
c44e18728d most of float_sto done, some bug fixing still to do 2023-01-13 10:04:46 +00:00
Richard Holland
7d375c93fc state_foreign_set unit test passing 2023-01-13 10:04:45 +00:00
Richard Holland
10118aa61b preliminary version of state_foreign_set unit test 2023-01-13 10:04:44 +00:00
Richard Holland
3fb1d27aa9 ledger_last_hash test 2023-01-13 10:04:41 +00:00
Richard Holland
77c76c044e ledger_nonce test 2023-01-13 10:04:40 +00:00