Hello BitShift Validate

This commit is contained in:
2026-06-24 14:13:35 +02:00
commit 3caa3d05d6
57 changed files with 6363 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# Test executables.
#
driver
# Testscript output directories (can be symlinks).
#
test
test-*
+4
View File
@@ -0,0 +1,4 @@
/config.build
/root/
/bootstrap/
build/
+6
View File
@@ -0,0 +1,6 @@
project = # Unnamed tests subproject.
using version
using config
using test
using dist
+16
View File
@@ -0,0 +1,16 @@
cxx.std = latest
using cxx
hxx{*}: extension = hxx
ixx{*}: extension = ixx
txx{*}: extension = txx
cxx{*}: extension = cxx
# Every exe{} in this subproject is by default a test.
#
exe{*}: test = true
# The test target for cross-testing (running tests under Wine, etc).
#
test.target = $cxx.target
+1
View File
@@ -0,0 +1 @@
./: {*/ -build/}
+4
View File
@@ -0,0 +1,4 @@
libs =
import libs = bitshift-validate%lib{validate}
./: exe{driver}: {hxx ixx txx cxx}{**} $libs
+21
View File
@@ -0,0 +1,21 @@
#include <bitshift/validate/validate.hxx>
BV_TEST(sanity, "basic sanity check")
{
BV_ASSERT_TRUE(true);
BV_ASSERT_FALSE(false);
BV_ASSERT_NULLPTR(nullptr);
BV_ASSERT_EQUAL(1, 1);
BV_ASSERT_NOT_EQUAL(0, 1);
}
BV_TEST(ignored, "ignored test")
{
BV_IGNORE;
}
int
main(int argc, char* argv[])
{
return bitshift::validate::main(argc, argv);
}