diff options
| author | David Bremner <david@tethera.net> | 2023-04-09 11:26:26 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2023-07-21 07:41:50 -0300 |
| commit | ec26eeaeec87781dee7dbf720103a5bc9b6bba5d (patch) | |
| tree | 421ad3947e7c06066663f3e53a3c41af5605057f /test/T355-smime.sh | |
| parent | 73f3081160fb80345f3953cbdeba340975375325 (diff) | |
test: support testing notmuch as installed
We put some effort into testing the built copy rather than some
installed copy. On the other hand for people like packagers, testing
the installed copy is also of interest.
When NOTMUCH_TEST_INSTALLED is set to a nonempty value, tests do not
require a built notmuch tree or running configure.
Some of the tests marked as broken when running against installed
notmuch are probably fixable.
Diffstat (limited to 'test/T355-smime.sh')
| -rwxr-xr-x | test/T355-smime.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/T355-smime.sh b/test/T355-smime.sh index 3bd5a17e..d2118c04 100755 --- a/test/T355-smime.sh +++ b/test/T355-smime.sh @@ -183,6 +183,7 @@ test_begin_subtest "show PKCS#7 SignedData outputs valid JSON" output=$(notmuch show --format=json id:smime-onepart-signed@protected-headers.example) test_valid_json "$output" +if [ -z "${NOTMUCH_TEST_INSTALLED-}" ]; then test_begin_subtest "Verify signature on PKCS#7 SignedData message" if [ "${NOTMUCH_HAVE_64BIT_TIME_T-0}" != "1" ]; then test_subtest_known_broken @@ -194,6 +195,7 @@ test_json_nodes <<<"$output" \ 'expires:[0][0][0]["crypto"]["signed"]["status"][0]["expires"]=2611032858' \ 'fingerprint:[0][0][0]["crypto"]["signed"]["status"][0]["fingerprint"]="702BA4B157F1E2B7D16B0C6A5FFC8A7DE2057DEB"' \ 'status:[0][0][0]["crypto"]["signed"]["status"][0]["status"]="good"' +fi # NOTMUCH_TEST_INSTALLED undefined / empty test_begin_subtest "Verify signature on PKCS#7 SignedData message signer User ID" if [ $NOTMUCH_GMIME_X509_CERT_VALIDITY -ne 1 ]; then |
