Verified Commit 34553c9c authored by 35V LG84's avatar 35V LG84
Browse files

tep-1014: tests: enforce output order, take 2



Use separate input files file, with different transactions,
so that in final set of txns there won't be multiple transactions with the same sorting order.
This will cause unstable sorting and test as final step when equity transactions are combined

It happened by "with commodity" and "with warning" steps.
Signed-off-by: 35V LG84's avatar35V LG84 <35vlg84-x4e6b92@e257.fi>
parent 1927b2c6
Pipeline #239633642 passed with stage
in 8 minutes and 22 seconds
......@@ -13,7 +13,9 @@ exec:--cfg;tests/reporting/ok.equity-tep1014.conf;--input.file;../big-and-small.
exec:--cfg;tests/reporting/ok.equity-tep1014.conf;--input.file;equity-tep1014-as-input.txn;--reporting.accounts;a(:.*)?;--output;txnsout/out.equity-tep1014-input-02;
#
# with warning
exec:--cfg;tests/reporting/ok.equity-tep1014.conf;--input.file;equity-tep1014-as-input.txn;--reporting.accounts;a(:.*)?;e(:.*)?;--output;txnsout/out.equity-tep1014-input-03;
# Use separate file, so in final set of txns there won't be multiple transactions on the same sorting order (with commodity and with warning)
# This will cause unstable sorting and test as final step when equity transactions are combined
exec:--cfg;tests/reporting/ok.equity-tep1014.conf;--input.file;equity-tep1014-as-input2.txn;--reporting.accounts;a(:.*)?;e(:.*)?;--output;txnsout/out.equity-tep1014-input-03;
#
# combine all above as input
exec:--cfg;tests/reporting/ok.equity-tep1014.conf;--input.fs.dir;txnsout;--input.fs.glob;**.txn;--reporting.accounts;a(:.*)?;e(:.*)?;--reporting.exports;identity;--output;out.equity-tep1014-as-input;
......@@ -10,7 +10,7 @@
a0:a1:a2:a3:a4:a5:a6:a7:a8:a9 -9.0000000000000000000000009
Eq:Acc 1002003004005006007008009.1002003004005006007008009
2021-01-10T00:00:00Z 'Equity
2021-01-04T00:00:00Z 'Equity
; WARNING:
; WARNING: The sum of equity transaction is zero without equity account.
; WARNING: Therefore there is no equity posting row, and this is probably not right.
......@@ -19,11 +19,7 @@
a -1
e 1
2021-01-10T00:00:00Z 'Equity
a -1
Eq:Acc 1
2021-01-10T00:00:00Z 'Equity for ACME
2021-01-04T00:00:00Z 'Equity for ACME
; WARNING:
; WARNING: The sum of equity transaction is zero without equity account.
; WARNING: Therefore there is no equity posting row, and this is probably not right.
......@@ -32,11 +28,7 @@
a -1 ACME
e 1 ACME
2021-01-10T00:00:00Z 'Equity for ACME
a -1 ACME
Eq:Acc 1 ACME
2021-01-10T00:00:00Z 'Equity for €
2021-01-04T00:00:00Z 'Equity for €
; WARNING:
; WARNING: The sum of equity transaction is zero without equity account.
; WARNING: Therefore there is no equity posting row, and this is probably not right.
......@@ -45,6 +37,14 @@
a -1.01 €
e 1.01 €
2021-01-10T00:00:00Z 'Equity
a -1
Eq:Acc 1
2021-01-10T00:00:00Z 'Equity for ACME
a -1 ACME
Eq:Acc 1 ACME
2021-01-10T00:00:00Z 'Equity for €
a -1.01 €
Eq:Acc 1.01 €
......
2021-01-02
e 1 ACME
a
2021-01-03
e 1.01 €
a
2021-01-04
e 1
a
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment