Hello libart-validation
All checks were successful
on-push / build-and-test (push) Successful in 12s

This commit is contained in:
2025-10-18 00:33:41 +02:00
commit e48abc1ba1
48 changed files with 1737 additions and 0 deletions

8
tests/.gitignore vendored Normal file
View File

@@ -0,0 +1,8 @@
# Test executables.
#
driver
# Testscript output directories (can be symlinks).
#
test
test-*

1
tests/basics/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
basics

31
tests/basics/basics.cxx Normal file
View File

@@ -0,0 +1,31 @@
#include <art/validation/main.hxx>
VALIDATION_TEST_SETUP
{
}
VALIDATION_TEST_TEARDOWN
{
}
VALIDATION_TEST(test_true)
{
VALIDATION_ASSERT_TRUE(true == true);
}
VALIDATION_TEST(test_false)
{
VALIDATION_ASSERT_FALSE(true == false);
}
VALIDATION_TEST(test_null)
{
int* ptr{nullptr};
VALIDATION_ASSERT_NULL(ptr);
}
int
main(int argc, char* argv[])
{
return art::validation::main(argc, argv);
}

4
tests/basics/buildfile Normal file
View File

@@ -0,0 +1,4 @@
import libs = libart-validation%lib{art-validation}
exe{basics}: {hxx ixx txx cxx}{**} $libs testscript{**}
exe{basics}: test.options = -v -v

4
tests/build/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
/config.build
/root/
/bootstrap/
build/

View File

@@ -0,0 +1,5 @@
project = # Unnamed tests subproject.
using config
using test
using dist

16
tests/build/root.build Normal file
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
tests/buildfile Normal file
View File

@@ -0,0 +1 @@
./: {*/ -build/}