-
Notifications
You must be signed in to change notification settings - Fork 1
Tests fail in a Nix derivation #6
Comments
Good point about Could you maybe reword what you mean in your second paragraph? I'm having trouble parsing. |
OK, I see what you're saying now. My tests (specifically, |
I've found the issue! { rustPlatform
, fetchFromGitHub
, libgpgerror
, gpgme
, libgit2
, gnupg
}:
rustPlatform.buildRustPackage {
pname = "passrs";
version = "0.1.0";
# src = fetchFromGitHub { ... };
cargoSha256 = "09vqz51hg3zw48zygp4ask8d7sdml7qw6d33pcabq9advxvg9bwr";
nativeBuildInputs = [
gpgme # `gpgme-config` required by crate gpgme
libgpgerror # `gpg-error-config` required by crate libgpg-error-sys
];
buildInputs = [
gpgme
libgit2
libgpgerror
];
checkInputs = [
gnupg
];
# Some tests require the presence of a test key.
preCheck = ''
export GNUPGHOME=$(mktemp -d)
gpg --import tests/passrs@testuser.secret.asc
echo "4B0D9BBAC5C8329C035B125CF6EF0D39C5F84192:6:" | gpg --import-ownertrust
'';
} |
Sorry, I closed this by accident. I still need to find a solution to being able to run tests without the above workaround. |
As of 6f01544, this should be solved. Please let me know if that's not the case. It doesn't look like |
As of ce690f6, I've checked in the contents of a dummy Thanks for bringing this to my attention! |
I'm adding this to my nixpkgs to dogfood.
Is there a scenario supported by
run-tests.sh
, and requiring an environment variable, versus just looking for the password-store in that location by default?Also, am I understanding that it's then going to run against my actual password-store by default when running
cargo test
? That makes me very uncomfortable.The text was updated successfully, but these errors were encountered: