Skip to content

Instantly share code, notes, and snippets.

@juniorz
Last active September 7, 2015 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juniorz/d74f7935bd258a01e280 to your computer and use it in GitHub Desktop.
Save juniorz/d74f7935bd258a01e280 to your computer and use it in GitHub Desktop.
Building Tor on OSX
#!/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
@juniorz
Copy link
Author

juniorz commented Aug 18, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment