forked from mirrors/nixpkgs
nixos/quicktun: add test
This commit is contained in:
parent
5672d3d8b8
commit
78f663bc0b
|
@ -692,6 +692,7 @@ in {
|
|||
qgis-ltr = handleTest ./qgis.nix { qgisPackage = pkgs.qgis-ltr; };
|
||||
qownnotes = handleTest ./qownnotes.nix {};
|
||||
quake3 = handleTest ./quake3.nix {};
|
||||
quicktun = handleTest ./quicktun.nix {};
|
||||
quorum = handleTest ./quorum.nix {};
|
||||
rabbitmq = handleTest ./rabbitmq.nix {};
|
||||
radarr = handleTest ./radarr.nix {};
|
||||
|
|
18
nixos/tests/quicktun.nix
Normal file
18
nixos/tests/quicktun.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
||||
{
|
||||
name = "quicktun";
|
||||
meta.maintainers = with lib.maintainers; [ h7x4 ];
|
||||
|
||||
nodes = {
|
||||
machine = { ... }: {
|
||||
services.quicktun."test-tunnel" = {
|
||||
protocol = "raw";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
machine.wait_for_unit("quicktun-test-tunnel.service")
|
||||
'';
|
||||
})
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, libsodium }:
|
||||
{ lib, stdenv, fetchFromGitHub, libsodium, nixosTests }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "quicktun";
|
||||
|
@ -22,6 +22,8 @@ stdenv.mkDerivation {
|
|||
install -vD out/quicktun* -t $out/bin
|
||||
'';
|
||||
|
||||
passthru.tests.quicktun = nixosTests.quicktun;
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Very simple, yet secure VPN software";
|
||||
|
|
Loading…
Reference in a new issue