test: Initial testing framework

Configure with --enable-testtools.

BLD_ROOT is now the top build directory.

Current test requires ttynvt to be started (by root) like
 # BLD_ROOT/src/ttynvt -d -E -S localhost:1234 -n ttyNVT99
Device and server name parameters must be as shown above.

Run tests like
 $ make -C BLD_ROOT test 	# Builds the other programs too
 $ make -C BLD_ROOT/test	# Only running tests
 $ make -C BLD_ROOT/test V=1 RUN_OPTS="--gtest_filter=Test1.t1"
This commit is contained in:
Kim Woelders
2024-11-08 06:58:55 +01:00
parent 55c5d0d226
commit 1f516288ab
7 changed files with 377 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
#include "test.h"
TEST(Misc, dummy)
{
EXPECT_EQ(1, 1);
}