GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 7576ce3e authored by Karsten Loesing's avatar Karsten Loesing

Do some repository housekeeping.

Fixes #40006.
parent a671736f
/.onionperf/*
onionperf-data
onionperf-private
venv
*.json.xz
*.pdf
*.csv
*.pyc
onionperf/docs/_build
.coverage
variables:
GIT_STRATEGY: clone
stages:
- test
test:
stage: test
image: debian:buster
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
script:
- apt -y update
- apt -y install git cmake make build-essential gcc libigraph0-dev libglib2.0-dev python-dev libxml2-dev python-lxml python-networkx python-scipy python-matplotlib python-numpy libevent-dev libssl-dev python-stem tor python-nose python-cov-core
- git clone https://github.com/shadow/tgen.git
- mkdir -p tgen/build
- pushd tgen/build
- cmake ..
- make
- ln -s `pwd`/tgen /usr/bin/
- popd
- python setup.py build
- python setup.py install
- ./run_tests.sh
......@@ -125,6 +125,12 @@ deactivate
However, in order to perform measurements or analyses, the virtual environment needs to be activated first. This will ensure all the paths are found.
If needed, unit tests are run with the following command:
```shell
cd ~/onionperf/
python3 -m nose --with-coverage --cover-package=onionperf
```
## Measurement
......
# -*- mode: ruby -*-
# vi: set ft=ruby :
$setup_onionperf = <<SCRIPT
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt install -y build-essential autoconf cmake libglib2.0-dev libigraph0-dev libevent-dev libssl-dev python3 git python3-stem python3-lxml python3-networkx python3-matplotlib python3-numpy python3-scipy
cd ~
git clone https://git.torproject.org/tor.git
cd tor
./autogen.sh
./configure --disable-asciidoc
make
mv src/app/tor /usr/local/bin/
cd ~
git clone https://github.com/shadow/shadow.git
cd shadow/src/plugin/shadow-plugin-tgen
mkdir build
cd build
cmake .. -DSKIP_SHADOW=ON -DCMAKE_MODULE_PATH=`pwd`/../../../../cmake/
make
mv tgen /usr/local/bin/
cd /vagrant
python3 setup.py build
python3 setup.py install
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "debian/stretch64"
config.vm.define "oniondev" do |oniondev|
oniondev.vm.provision :shell, :inline => $setup_onionperf
end
end
onionperf (2019052301) stretch-backports; urgency=medium
* Initial release.
-- Iain R. Learmonth <irl@debian.org> Thu, 23 May 2019 12:42:20 +0100
Source: onionperf
Maintainer: Tor Metrics <metrics-team@lists.torproject.org>
Section: net
Priority: optional
Build-Depends: debhelper (>= 11),
dh-python,
cmake,
make,
build-essential,
gcc,
libigraph0-dev,
libglib2.0-dev,
python,
python-ipaddress,
python-lxml,
python-matplotlib,
python-netifaces,
python-networkx,
python-nose,
python-numpy,
python-scipy,
python-stem (>=1.7)
Standards-Version: 4.1.3
Package: onionperf
Architecture: any
Depends: ${python:Depends},
${shlibs:Depends},
${misc:Depends},
python-ipaddress,
python-lxml,
python-matplotlib,
python-netifaces,
python-networkx,
python-nose,
python-numpy,
python-scipy,
python-stem (>=1.7)
Description: Tor Performance Measurement Tool
Tor Performance Measurement Tool
tgen/build/tgen usr/bin
#!/usr/bin/make -f
%:
dh $@ --with python2 --buildsystem=pybuild
override_dh_auto_test:
./run_tests.sh
override_dh_auto_build:
( cd tgen; \
mkdir build; \
cd build; \
cmake ..; \
make )
dh_auto_build
'''
OnionPerf
Authored by Rob Jansen, 2015
Copyright 2015-2020 The Tor Project
See LICENSE for licensing information
'''
......
'''
OnionPerf
Authored by Rob Jansen, 2015
Copyright 2015-2020 The Tor Project
See LICENSE for licensing information
'''
......
'''
OnionPerf
Authored by Rob Jansen, 2015
Copyright 2015-2020 The Tor Project
See LICENSE for licensing information
'''
......
'''
OnionPerf
Authored by Rob Jansen, 2015
Copyright 2015-2020 The Tor Project
See LICENSE for licensing information
'''
......
'''
OnionPerf
Authored by Rob Jansen, 2015
Copyright 2015-2020 The Tor Project
See LICENSE for licensing information
'''
......
......@@ -3,6 +3,7 @@
'''
OnionPerf
Authored by Rob Jansen, 2015
Copyright 2015-2020 The Tor Project
See LICENSE for licensing information
'''
......
'''
OnionPerf
Authored by Rob Jansen, 2015
Copyright 2015-2020 The Tor Project
See LICENSE for licensing information
'''
......
'''
OnionPerf
Authored by Rob Jansen, 2015
Copyright 2015-2020 The Tor Project
See LICENSE for licensing information
'''
......
#!/bin/sh
PYTHONPATH=. python3 -m nose --with-coverage --cover-package=onionperf
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment