You've already forked bitshift-validate
Hello BitShift Validate
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# Test executables.
|
||||
#
|
||||
driver
|
||||
|
||||
# Testscript output directories (can be symlinks).
|
||||
#
|
||||
test
|
||||
test-*
|
||||
@@ -0,0 +1,4 @@
|
||||
/config.build
|
||||
/root/
|
||||
/bootstrap/
|
||||
build/
|
||||
@@ -0,0 +1,6 @@
|
||||
project = # Unnamed tests subproject.
|
||||
|
||||
using version
|
||||
using config
|
||||
using test
|
||||
using dist
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
./: {*/ -build/}
|
||||
@@ -0,0 +1,4 @@
|
||||
libs =
|
||||
import libs = bitshift-validate%lib{validate}
|
||||
|
||||
./: exe{driver}: {hxx ixx txx cxx}{**} $libs
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user