Add a zcash-gtest binary to our build with a single tautological test.

This commit is contained in:
Nathan Wilcox 2016-04-18 11:14:30 -07:00
parent 0ee1d5d133
commit 3ab0c1a790
5 changed files with 26 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
src/bitcoin
src/zcashd
src/zcash-cli
src/zcash-gtest
src/bitcoin-tx
src/test/test_bitcoin
src/qt/test/test_bitcoin-qt

View File

@ -494,3 +494,4 @@ include Makefile.qttest.include
endif
include Makefile.zcash.include
include Makefile.gtest.include

View File

@ -0,0 +1,13 @@
bin_PROGRAMS += zcash-gtest
# tool for generating our public parameters
zcash_gtest_SOURCES = \
gtest/main.cpp \
gtest/test_tautology.cpp
zcash_gtest_LDADD = \
-lgtest \
$(LIBBITCOIN_UTIL)
zcash-gtest_check: zcash-gtest FORCE
./zcash-gtest

6
src/gtest/main.cpp Normal file
View File

@ -0,0 +1,6 @@
#include "gtest/gtest.h"
int main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

View File

@ -0,0 +1,5 @@
#include <gtest/gtest.h>
TEST(tautologies, seven_eq_seven) {
ASSERT_EQ(7, 7);
}