]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make "make test-stem" run stem tests on tor
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Jan 2015 16:52:36 +0000 (11:52 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 Jan 2015 14:03:44 +0000 (09:03 -0500)
Closes ticket 14107.

Makefile.am
changes/ticket14107 [new file with mode: 0644]
src/or/include.am

index 3de7f7a8275033eccb6f3697a2383a1b580cfe7a..f6a1bcf52015b5ef3b0bc1046ac14460bb7a8988 100644 (file)
@@ -70,6 +70,15 @@ test: all
 test-network: all
        ./src/test/test-network.sh
 
+test-stem: $(TESTING_TOR_BINARY)
+       @if test -d "$$STEM_SOURCE_DIR"; then \
+               "$$STEM_SOURCE_DIR"/run_tests.py --tor $(TESTING_TOR_BINARY) --all --log notice --target RUN_ALL; \
+       else \
+               echo '$$STEM_SOURCE_DIR was not set.'; echo; \
+               echo "To run these tests, git clone https://git.torproject.org/stem.git/ ; export STEM_SOURCE_DIR=\`pwd\`/stem"; \
+       fi
+
+
 reset-gcov:
        rm -f src/*/*.gcda
 
diff --git a/changes/ticket14107 b/changes/ticket14107
new file mode 100644 (file)
index 0000000..e4ba6be
--- /dev/null
@@ -0,0 +1,6 @@
+  o Testing:
+
+    - New "make test-stem" target to run stem integration tests.
+      Requires that the "STEM_SOURCE_DIR" environment variable be set.
+      Closes ticket 14107.
+
index fb1581c463b74a669538e078ce23bb0661de0dfe..b44e1099dcf4cc8753e5f54e093222da35c7c99a 100644 (file)
@@ -123,6 +123,9 @@ src_or_tor_cov_LDADD = src/or/libtor-testing.a src/common/libor-testing.a \
        src/common/libor-event-testing.a \
        @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
        @TOR_LIB_WS32@ @TOR_LIB_GDI@ @CURVE25519_LIBS@ @TOR_SYSTEMD_LIBS@
+TESTING_TOR_BINARY = ./src/or/tor-cov
+else
+TESTING_TOR_BINARY = ./src/or/tor
 endif
 
 ORHEADERS = \