Make LIBSIGNAL_TESTING_ env vars available to Android and iOS tests

And adjust the existing ENCLAVE_SECRET tests and examples to use this
(including Rust and Node's).

This also requires adding an AndroidManifest.xml that notes the tests
might use the network.
This commit is contained in:
Jordan Rose
2024-04-16 14:34:34 -07:00
parent 145d6fee9c
commit 3d2471cc8b
12 changed files with 103 additions and 11 deletions

View File

@@ -102,5 +102,11 @@ Pod::Spec.new do |s|
# Don't also link into the test target.
'LIBSIGNAL_FFI_LIB_TO_LINK' => '',
}
# Ideally we'd do this at run time, not configuration time, but CocoaPods doesn't make that easy.
# This is good enough.
test_spec.scheme = {
environment_variables: ENV.select { |name, value| name.start_with?('LIBSIGNAL_TESTING_') }
}
end
end