sequoia-sq/tests/data/examples
Neal H. Walfield 0d1da78356
Add a framework to format and test examples.
- The `--help` output for most subcommands includes one or more
    examples.

  - We should test these, like we test everything else.

  - Add a framework to format, and test the examples.

  - Fixes #190.

  - Also, fix some broken examples.
2024-02-09 18:08:09 +01:00
..
cert-store Add a framework to format and test examples. 2024-02-09 18:08:09 +01: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
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
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
README.md Add a framework to format and test examples. 2024-02-09 18:08:09 +01: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.