You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

3 years ago
3 years ago
3 years ago
3 years ago
  1. = Tests in this directory =
  2. more doc under: https://dev.pep.foundation/Engine/Testing%20p%e2%89%a1p%20Sync
  3. $ HOME=$PWD python3 basic_doctest.py -v
  4. do some basic tests of p≡p
  5. CAVEAT: set environment variable HOME to a test directory before executing
  6. this test
  7. $ python3 sync_test.py
  8. start two processes representing two devices and do a sync test
  9. Once started sync_handshake.py is creating a trace of all sent messages in
  10. TestInbox. There's a file named Laptop or Phone, respectively, which is working
  11. as a marker; the modification timestamp of this file is showing the mails being
  12. considered as “already received”. If you delete the file and start i.e.
  13. $ cd Phone
  14. $ rm ../TestInbox/Phone
  15. $ HOME=$PWD lldb python3 -- ../sync_handshake.py -e Phone
  16. Then this side is doing a replay in the debugger. Using touch to set a
  17. different timestamp on the marker will only partly replay.
  18. In order to work with IMAP you need to create a imap_settings.py file with the
  19. following variables:
  20. IMAP_HOST = 'domain.ch'
  21. IMAP_PORT = '993'
  22. IMAP_USER = 'your_username'
  23. IMAP_PWD = 'password'
  24. IMAP_EMAIL = 'user@domain.ch'
  25. = Hint =
  26. installing termcolor and lxml will beautify the output