Browse Source

test: remove obsolete directory.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
f2adb76d04
  1. 1
      Makefile
  2. 3
      test/.gitignore
  3. 19
      test/Makefile
  4. 14
      test/commits/01-offer1.script
  5. 18
      test/commits/01-offer1.script.expected
  6. 17
      test/commits/02-offer2.script
  7. 18
      test/commits/02-offer2.script.expected
  8. 24
      test/commits/03-fulfill1.script
  9. 14
      test/commits/03-fulfill1.script.expected
  10. 21
      test/commits/04-two-commits-onedir.script
  11. 18
      test/commits/04-two-commits-onedir.script.expected
  12. 28
      test/commits/06-change-while-commit-outstanding.script
  13. 18
      test/commits/06-change-while-commit-outstanding.script.expected
  14. 22
      test/commits/10-offers-crossover.script
  15. 22
      test/commits/10-offers-crossover.script.expected
  16. 27
      test/commits/11-commits-crossover.script
  17. 22
      test/commits/11-commits-crossover.script.expected
  18. 13
      test/commits/13-fee.script
  19. 16
      test/commits/13-fee.script.expected
  20. 15
      test/commits/14-fee-twice.script
  21. 16
      test/commits/14-fee-twice.script.expected
  22. 24
      test/commits/20-restore-02.script
  23. 14
      test/commits/20-restore-02.script.expected
  24. 25
      test/commits/20-restore-03.script
  25. 14
      test/commits/20-restore-03.script.expected
  26. 24
      test/commits/20-restore-04.script
  27. 14
      test/commits/20-restore-04.script.expected
  28. 23
      test/commits/20-restore-05.script
  29. 14
      test/commits/20-restore-05.script.expected
  30. 23
      test/commits/20-restore-06.script
  31. 14
      test/commits/20-restore-06.script.expected
  32. 23
      test/commits/20-restore-07.script
  33. 14
      test/commits/20-restore-07.script.expected
  34. 23
      test/commits/20-restore-08.script
  35. 14
      test/commits/20-restore-08.script.expected
  36. 23
      test/commits/20-restore-09.script
  37. 14
      test/commits/20-restore-09.script.expected
  38. 24
      test/commits/20-restore-10.script
  39. 14
      test/commits/20-restore-10.script.expected
  40. 23
      test/commits/20-restore-11.script
  41. 14
      test/commits/20-restore-11.script.expected
  42. 24
      test/commits/20-restore-12.script
  43. 14
      test/commits/20-restore-12.script.expected
  44. 23
      test/commits/20-restore-13.script
  45. 14
      test/commits/20-restore-13.script.expected
  46. 23
      test/commits/20-restore-14.script
  47. 14
      test/commits/20-restore-14.script.expected
  48. 23
      test/commits/20-restore-15.script
  49. 14
      test/commits/20-restore-15.script.expected
  50. 23
      test/commits/20-restore-16.script
  51. 14
      test/commits/20-restore-16.script.expected
  52. 23
      test/commits/20-restore-17.script
  53. 14
      test/commits/20-restore-17.script.expected
  54. 25
      test/commits/21-restore-crossover-02.script
  55. 22
      test/commits/21-restore-crossover-02.script.expected
  56. 26
      test/commits/21-restore-crossover-03.script
  57. 22
      test/commits/21-restore-crossover-03.script.expected
  58. 25
      test/commits/21-restore-crossover-04.script
  59. 22
      test/commits/21-restore-crossover-04.script.expected
  60. 24
      test/commits/21-restore-crossover-05.script
  61. 22
      test/commits/21-restore-crossover-05.script.expected
  62. 25
      test/commits/21-restore-crossover-06.script
  63. 22
      test/commits/21-restore-crossover-06.script.expected
  64. 26
      test/commits/21-restore-crossover-07.script
  65. 22
      test/commits/21-restore-crossover-07.script.expected
  66. 25
      test/commits/21-restore-crossover-08.script
  67. 22
      test/commits/21-restore-crossover-08.script.expected
  68. 23
      test/commits/21-restore-crossover-08a.script
  69. 22
      test/commits/21-restore-crossover-08a.script.expected
  70. 24
      test/commits/21-restore-crossover-09.script
  71. 22
      test/commits/21-restore-crossover-09.script.expected
  72. 24
      test/commits/21-restore-crossover-10.script
  73. 22
      test/commits/21-restore-crossover-10.script.expected
  74. 24
      test/commits/21-restore-crossover-11.script
  75. 22
      test/commits/21-restore-crossover-11.script.expected
  76. 24
      test/commits/21-restore-crossover-12.script
  77. 22
      test/commits/21-restore-crossover-12.script.expected
  78. 24
      test/commits/21-restore-crossover-13.script
  79. 22
      test/commits/21-restore-crossover-13.script.expected
  80. 24
      test/commits/21-restore-crossover-14.script
  81. 22
      test/commits/21-restore-crossover-14.script.expected
  82. 24
      test/commits/21-restore-crossover-15.script
  83. 22
      test/commits/21-restore-crossover-15.script.expected
  84. 24
      test/commits/21-restore-crossover-16.script
  85. 22
      test/commits/21-restore-crossover-16.script.expected
  86. 24
      test/commits/21-restore-crossover-17.script
  87. 22
      test/commits/21-restore-crossover-17.script.expected
  88. 1426
      test/test_protocol.c
  89. 2475
      test/test_state_coverage.c

1
Makefile

@ -189,7 +189,6 @@ include closingd/Makefile
include onchaind/Makefile
include lightningd/Makefile
include cli/Makefile
include test/Makefile
include doc/Makefile
include devtools/Makefile

3
test/.gitignore

@ -1,3 +0,0 @@
test_onion
test_state_coverage
onion_key

19
test/Makefile

@ -1,19 +0,0 @@
TEST_PROGRAMS := \
test/test_protocol
TEST_COMMON_OBJS := \
common/utils.o
$(TEST_PROGRAMS): $(TEST_COMMON_OBJS) $(BITCOIN_OBJS) $(WIRE_OBJS)
ALL_TEST_PROGRAMS += $(TEST_PROGRAMS)
ALL_OBJS += $(TEST_PROGRAMS:=.o)
test-protocol: test/test_protocol
@set -e; TMP=`mktemp`; for f in test/commits/*.script; do if ! $(VALGRIND) test/test_protocol < $$f > $$TMP; then echo "test/test_protocol < $$f FAILED" >&2; exit 1; fi; diff -u $$TMP $$f.expected; done; rm $$TMP
check: test-protocol
clean: test-clean
test-clean:
$(RM) $(TEST_PROGRAMS) $(TEST_PROGRAMS:=.o)

14
test/commits/01-offer1.script

@ -1,14 +0,0 @@
# Simple test that we can commit an HTLC
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

18
test/commits/01-offer1.script.expected

@ -1,18 +0,0 @@
***A***
LOCAL COMMIT:
Commit 1:
Our htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 1:
Our htlcs: 1
SIGNED
***B***
LOCAL COMMIT:
Commit 1:
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 1:
Their htlcs: 1
SIGNED

17
test/commits/02-offer2.script

@ -1,17 +0,0 @@
# Simple test that we can commit two HTLCs
A:offer 1
A:offer 3
A:commit
B:recvoffer
B:recvoffer
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

18
test/commits/02-offer2.script.expected

@ -1,18 +0,0 @@
***A***
LOCAL COMMIT:
Commit 1:
Our htlcs: 1 3
SIGNED
REMOTE COMMIT:
Commit 1:
Our htlcs: 1 3
SIGNED
***B***
LOCAL COMMIT:
Commit 1:
Their htlcs: 1 3
SIGNED
REMOTE COMMIT:
Commit 1:
Their htlcs: 1 3
SIGNED

24
test/commits/03-fulfill1.script

@ -1,24 +0,0 @@
# Simple test that we can fulfill (remove) an HTLC after fully settled.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/03-fulfill1.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

21
test/commits/04-two-commits-onedir.script

@ -1,21 +0,0 @@
# Test A can commit twice; queueing two commits onto B's queue.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
A:offer 3
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

18
test/commits/04-two-commits-onedir.script.expected

@ -1,18 +0,0 @@
***A***
LOCAL COMMIT:
Commit 1:
Our htlcs: 1 3
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1 3
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Their htlcs: 1 3
SIGNED
REMOTE COMMIT:
Commit 1:
Their htlcs: 1 3
SIGNED

28
test/commits/06-change-while-commit-outstanding.script

@ -1,28 +0,0 @@
# Test changes after committing but before receiving revocation.
A:offer 1
B:recvoffer
A:commit
A:offer 3
# Now B receives that commitment and counter-commits.
B:recvcommit
B:commit
A:recvrevoke
A:recvcommit
A:commit
B:recvoffer
B:recvrevoke
B:recvcommit
B:commit
A:recvrevoke
A:recvcommit
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

18
test/commits/06-change-while-commit-outstanding.script.expected

@ -1,18 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1 3
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1 3
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Their htlcs: 1 3
SIGNED
REMOTE COMMIT:
Commit 2:
Their htlcs: 1 3
SIGNED

22
test/commits/10-offers-crossover.script

@ -1,22 +0,0 @@
# Offers which cross over still get resolved.
A:offer 1
A:commit
B:offer 2
B:recvoffer
B:recvcommit
B:commit
A:recvoffer
A:recvrevoke
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/10-offers-crossover.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 1:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 1:
Our htlcs: 2
Their htlcs: 1
SIGNED

27
test/commits/11-commits-crossover.script

@ -1,27 +0,0 @@
# Commits which cross over still get resolved.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
# They've got to come into sync eventually!
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/11-commits-crossover.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

13
test/commits/13-fee.script

@ -1,13 +0,0 @@
# Simple test that we can change fee level
A:feechange
B:recvfeechange
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
echo ***A***
A:dump
echo ***B***
B:dump

16
test/commits/13-fee.script.expected

@ -1,16 +0,0 @@
***A***
LOCAL COMMIT:
Commit 1:
Fee level 1
SIGNED
REMOTE COMMIT:
Commit 1:
SIGNED
***B***
LOCAL COMMIT:
Commit 1:
SIGNED
REMOTE COMMIT:
Commit 1:
Fee level 1
SIGNED

15
test/commits/14-fee-twice.script

@ -1,15 +0,0 @@
# We can change fee level twice.
A:feechange
A:feechange
A:commit
B:recvfeechange
B:recvfeechange
B:recvcommit
B:commit
A:recvrevoke
A:recvcommit
B:recvrevoke
echo ***A***
A:dump
echo ***B***
B:dump

16
test/commits/14-fee-twice.script.expected

@ -1,16 +0,0 @@
***A***
LOCAL COMMIT:
Commit 1:
Fee level 2
SIGNED
REMOTE COMMIT:
Commit 1:
SIGNED
***B***
LOCAL COMMIT:
Commit 1:
SIGNED
REMOTE COMMIT:
Commit 1:
Fee level 2
SIGNED

24
test/commits/20-restore-02.script

@ -1,24 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
restart
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-02.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

25
test/commits/20-restore-03.script

@ -1,25 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
restart
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-03.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

24
test/commits/20-restore-04.script

@ -1,24 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
restart
B:recvoffer
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-04.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-05.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
restart
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-05.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-06.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
restart
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-06.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-07.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
restart
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-07.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-08.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
restart
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-08.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-09.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
restart
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-09.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

24
test/commits/20-restore-10.script

@ -1,24 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
restart
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-10.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-11.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
restart
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-11.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

24
test/commits/20-restore-12.script

@ -1,24 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
restart
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-12.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-13.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
restart
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-13.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-14.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
restart
A:commit
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-14.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-15.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
restart
B:recvcommit
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-15.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-16.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
restart
A:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-16.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

23
test/commits/20-restore-17.script

@ -1,23 +0,0 @@
# Variety of tests for save/restore.
A:offer 1
B:recvoffer
A:commit
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
B:remove 1
B:commit
A:recvremove
A:recvcommit
B:recvrevoke
A:commit
B:recvcommit
A:recvrevoke
restart
checksync
echo ***A***
A:dump
echo ***B***
B:dump

14
test/commits/20-restore-17.script.expected

@ -1,14 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
SIGNED
REMOTE COMMIT:
Commit 2:
SIGNED

25
test/commits/21-restore-crossover-02.script

@ -1,25 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
restart
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-02.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

26
test/commits/21-restore-crossover-03.script

@ -1,26 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
restart
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-03.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

25
test/commits/21-restore-crossover-04.script

@ -1,25 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
restart
B:offer 2
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-04.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-05.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
restart
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-05.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

25
test/commits/21-restore-crossover-06.script

@ -1,25 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
restart
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-06.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

26
test/commits/21-restore-crossover-07.script

@ -1,26 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
restart
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-07.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

25
test/commits/21-restore-crossover-08.script

@ -1,25 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
restart
B:recvoffer
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-08.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

23
test/commits/21-restore-crossover-08a.script

@ -1,23 +0,0 @@
# Restart during commits which cross over still.
# In this variant, A sends revocation *before* sending commit.
A:offer 1
B:offer 2
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
A:commit
restart
B:recvrevoke
B:recvoffer
B:recvcommit
A:recvrevoke
B:commit
A:recvcommit
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-08a.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 1:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 1:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-09.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
restart
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-09.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-10.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
restart
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-10.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-11.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
restart
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-11.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-12.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
restart
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-12.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-13.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
restart
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-13.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-14.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
restart
B:recvcommit
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-14.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-15.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
restart
A:recvrevoke
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-15.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-16.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
restart
B:recvrevoke
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-16.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

24
test/commits/21-restore-crossover-17.script

@ -1,24 +0,0 @@
# Restart during commits which cross over still.
A:offer 1
B:offer 2
A:commit
B:commit
A:recvoffer
B:recvoffer
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
A:commit
B:commit
A:recvcommit
B:recvcommit
A:recvrevoke
B:recvrevoke
restart
checksync
echo ***A***
A:dump
echo ***B***
B:dump

22
test/commits/21-restore-crossover-17.script.expected

@ -1,22 +0,0 @@
***A***
LOCAL COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 1
Their htlcs: 2
SIGNED
***B***
LOCAL COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED
REMOTE COMMIT:
Commit 2:
Our htlcs: 2
Their htlcs: 1
SIGNED

1426
test/test_protocol.c

File diff suppressed because it is too large

2475
test/test_state_coverage.c

File diff suppressed because it is too large
Loading…
Cancel
Save