Last active
September 7, 2015 20:10
-
-
Save juniorz/d74f7935bd258a01e280 to your computer and use it in GitHub Desktop.
Building Tor on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
brew update | |
brew install asciidoc openssl lcov dmalloc | |
# add asciidoc config to whatever shell you use | |
# required by asciidoc. See brew info asciidoc | |
echo "export XML_CATALOG_FILES=/usr/local/etc/xml/catalog" > .bashrc | |
git clone https://git.torproject.org/tor.git | |
cd tor | |
./autogen.sh | |
./configure --with-openssl-dir=$(brew --prefix openssl) --enable-coverage --with-dmalloc | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run tests with
make test
Run test coverage with
make coverage-html && open coverage_html/index.html
Run with dmalloc
export $(dmalloc -l ~/tor-dmalloc.log)
before running