summaryrefslogtreecommitdiffstats
path: root/sqv/tests/duplicate-signatures.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sqv/tests/duplicate-signatures.rs')
-rw-r--r--sqv/tests/duplicate-signatures.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/sqv/tests/duplicate-signatures.rs b/sqv/tests/duplicate-signatures.rs
deleted file mode 100644
index e48cb3ad..00000000
--- a/sqv/tests/duplicate-signatures.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-
-use assert_cli::Assert;
-
-fn p(filename: &str) -> String {
- format!("../openpgp/tests/data/{}", filename)
-}
-
-/// Asserts that duplicate signatures are properly ignored.
-#[test]
-fn ignore_duplicates() {
- // Duplicate is ignored, but remaining one is ok.
- Assert::cargo_binary("sqv")
- .with_args(
- &["--keyring",
- &p("keys/emmelie-dorothea-dina-samantha-awina-ed25519.pgp"),
- &p("messages/a-cypherpunks-manifesto.txt.ed25519.sig.duplicated"),
- &p("messages/a-cypherpunks-manifesto.txt")])
- .unwrap();
-
- // Duplicate is ignored, and fails to meet the threshold.
- Assert::cargo_binary("sqv")
- .with_args(
- &["--keyring",
- &p("keys/emmelie-dorothea-dina-samantha-awina-ed25519.pgp"),
- "--signatures=2",
- &p("messages/a-cypherpunks-manifesto.txt.ed25519.sig.duplicated"),
- &p("messages/a-cypherpunks-manifesto.txt")])
- .fails()
- .unwrap();
-}