mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-28 16:58:18 +01:00
This project introduces the prob_distr.c subsystem which implements all the probability distributions that WTF-PAD needs. It also adds unittests for all of them. Code and tests courtesy of Riastradh. Co-authored-by: Taylor R Campbell <campbell+tor@mumble.net> Co-authored-by: Mike Perry <mikeperry-git@torproject.org>
27 lines
650 B
C
27 lines
650 B
C
/* Copyright (c) 2001-2004, Roger Dingledine.
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
* Copyright (c) 2007-2018, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
/**
|
|
* \file test_slow.c
|
|
* \brief Slower unit tests for many pieces of the lower level Tor modules.
|
|
**/
|
|
|
|
#include "orconfig.h"
|
|
|
|
#include <stdio.h>
|
|
#ifdef HAVE_FCNTL_H
|
|
#include <fcntl.h>
|
|
#endif
|
|
|
|
#include "core/or/or.h"
|
|
#include "test/test.h"
|
|
|
|
struct testgroup_t testgroups[] = {
|
|
{ "slow/crypto/", slow_crypto_tests },
|
|
{ "slow/process/", slow_process_tests },
|
|
{ "slow/prob_distr/", slow_stochastic_prob_distr_tests },
|
|
END_OF_GROUPS
|
|
};
|
|
|