You've already forked libart-validation
Hello libart-validation
All checks were successful
on-push / build-and-test (push) Successful in 12s
All checks were successful
on-push / build-and-test (push) Successful in 12s
This commit is contained in:
8
tests/.gitignore
vendored
Normal file
8
tests/.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Test executables.
|
||||
#
|
||||
driver
|
||||
|
||||
# Testscript output directories (can be symlinks).
|
||||
#
|
||||
test
|
||||
test-*
|
||||
1
tests/basics/.gitignore
vendored
Normal file
1
tests/basics/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
basics
|
||||
31
tests/basics/basics.cxx
Normal file
31
tests/basics/basics.cxx
Normal 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
4
tests/basics/buildfile
Normal 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
4
tests/build/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/config.build
|
||||
/root/
|
||||
/bootstrap/
|
||||
build/
|
||||
5
tests/build/bootstrap.build
Normal file
5
tests/build/bootstrap.build
Normal file
@@ -0,0 +1,5 @@
|
||||
project = # Unnamed tests subproject.
|
||||
|
||||
using config
|
||||
using test
|
||||
using dist
|
||||
16
tests/build/root.build
Normal file
16
tests/build/root.build
Normal 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
1
tests/buildfile
Normal file
@@ -0,0 +1 @@
|
||||
./: {*/ -build/}
|
||||
Reference in New Issue
Block a user