sequoia-sq/tests/data/examples
Justus Winter 846d819368
Port sq verify's examples to the example framework.
- Port `sq verify`'s examples to the example framework and improve
    them.

  - See #196.
2024-06-20 18:00:47 +02:00
..
cert-store Add a framework to format and test examples. 2024-02-09 18:08:09 +01:00
alice-new-secret.pgp Add examples for sq key subkey adopt. 2024-06-13 10:47:00 +02:00
alice-secret.pgp Add a framework to format and test examples. 2024-02-09 18:08:09 +01:00
alice.pgp.rev Add a framework to format and test examples. 2024-02-09 18:08:09 +01:00
autocrypt.eml Port sq autocrypt's examples to the example framework. 2024-06-20 15:48:43 +02:00
bob-secret.pgp Add a framework to format and test examples. 2024-02-09 18:08:09 +01:00
bob.pgp.rev Add a framework to format and test examples. 2024-02-09 18:08:09 +01:00
ciphertext.pgp Convert sq decrypt examples to use the example framework. 2024-05-27 13:36:35 +02:00
document.pgp Port sq verify's examples to the example framework. 2024-06-20 18:00:47 +02:00
document.sig Port sq inspect's examples to the example framework. 2024-03-13 10:26:32 +01:00
document.txt Port sq inspect's examples to the example framework. 2024-03-13 10:26:32 +01:00
juliet-secret.pgp Add a framework to format and test examples. 2024-02-09 18:08:09 +01:00
juliet.pgp Add a framework to format and test examples. 2024-02-09 18:08:09 +01:00
juliet.pgp.rev Add a framework to format and test examples. 2024-02-09 18:08:09 +01:00
message.pgp Port sq inspect's examples to the example framework. 2024-03-13 10:26:32 +01:00
password-file.txt Port sq key password's examples to the example framework. 2024-06-13 10:25:00 +02:00
README.md Port sq verify's examples to the example framework. 2024-06-20 18:00:47 +02:00
romeo-secret.pgp Convert sq decrypt examples to use the example framework. 2024-05-27 13:36:35 +02:00
romeo.pgp Convert sq decrypt examples to use the example framework. 2024-05-27 13:36:35 +02:00

Introduction

This directory contains data for the examples.

The test suite executes each subcommand's examples. Each subcommand has its own context (temporary directory), which is set to the current working directory. The contents of this directory are copied into that directory. If a subcommand has multiple examples, they are execute after each other in the same context.

By using static data, we can use known fingerprints in the examples.

Contents

  • alice-secret.pgp: A general-purpose certificate for Alice alice@example.org.

    • Imported into the cert store.
  • bob-secret.pgp: A general-purpose certificate for Bob bob@example.org.

    • Imported into the cert store.
    • Certified by Alice.
  • juliet.pgp: A general-purpose certificate for Juliet Capulet juliet@example.org.

    • NOT imported into the cert store.
  • romeo.pgp: A general-purpose certificate for Romeo Montague romeo@example.org.

    • NOT imported into the cert store.
  • document.txt, document.sig: A document, and a detached signatured.

    • sq sign --detached --signer-file juliet-secret.pgp document.txt > document.sig
    • sq verify --signer-file juliet-secret.pgp --detached document.sig document.txt
  • document.pgp: An inline-signed document, equivalent to the above.

  • message.pgp: A document encrypted for Bob, and signed by Alice.

    • echo 'Golf this afternoon?' | sq encrypt --recipient-file bob-secret.pgp --signer-file alice-secret.pgp > message.pgp