view tests/ordinary.rs @ 10:c9f42be465ca

Decrease version requirement for serde This is what `electrs` uses. We could probably lower it more, I don't have the time to figure out how much right now. PRs welcome.
author Martin Habovstiak <martin.habovstiak@gmail.com>
date Sun, 29 Nov 2020 14:04:48 +0100
parents 66c0e10c89fc
children cfef4593e207
line wrap: on
line source

use std::io;
use std::ffi::OsStr;
use std::process::{Command, Child};

mod comm;

enum Test {}

impl comm::Test for Test {
    const SOCKET_ADDR: &'static str = "localhost:4242";

    fn spawn_slave(program_name: &OsStr) -> io::Result<Child> {
        Command::new(program_name)
            .env("SYSTEMD_SOCKET_INTEGRATION_TEST", "slave")
            .spawn()
    }
}

#[test]
fn main() {
    comm::main::<Test>();
}