Skip to content

Commit

Permalink
Test OpenSSL as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
FireFragment committed May 16, 2024
1 parent 726c4e7 commit c46c694
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fast/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ args: {
git-dep-dup = import ./git-dep-dup args;
git-single-repository-with-multiple-crates = import ./git-single-repository-with-multiple-crates args;
git-symlink = import ./git-symlink args;
openssl = import ./openssl args;
post-install-hook = import ./post-install-hook args;
readme = import ./readme args;
simple-dep = import ./simple-dep args;
Expand Down
8 changes: 8 additions & 0 deletions test/fast/openssl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# OpenSSL needs `pkg-config` and `openssl` buildInputs. This tests whether we correctly supply them automatically.

{ naersk, ... }:

naersk.buildPackage {
src = ./fixtures;
doCheck = true;
}
140 changes: 140 additions & 0 deletions test/fast/openssl/fixtures/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions test/fast/openssl/fixtures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Tests that default-run doesn't break the dependency build, see
# https://github.com/nmattia/naersk/issues/123

[package]
name = "openssl-test"
version = "0.1.0"
authors = ["FireFragment <[email protected]>"]
edition = "2018"

[dependencies]
openssl = "0.10.64"
3 changes: 3 additions & 0 deletions test/fast/openssl/fixtures/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit c46c694

Please sign in to comment.