summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-01-17 12:27:34 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-01-17 12:27:34 +0100
commit06167d6ecc3c0c87e0d582ec69c55011f3eb49f1 (patch)
tree2b6273d7207333d7f1bbf615b02db3c68be80d58
parent634f55ceed45197e743c2d1c3df0c97c6f8888ae (diff)
tests: Removing the tests dir since tests have been moved to the
individual modules
-rw-r--r--default.nix9
-rw-r--r--tests/.nix/derivation.nix37
-rw-r--r--tests/SConscript32
-rw-r--r--tests/SConstruct72
-rw-r--r--tests/window.cpp8
5 files changed, 0 insertions, 158 deletions
diff --git a/default.nix b/default.nix
index 4d2e1b0..004ef89 100644
--- a/default.nix
+++ b/default.nix
@@ -74,14 +74,5 @@ in rec {
inherit stdenv;
inherit clang-tools;
};
-
};
-
-
- forstio-test-cases = pkgs.callPackage tests/.nix/derivation.nix {
- inherit version;
- inherit forstio;
- inherit stdenv;
- inherit clang-tools;
- };
}
diff --git a/tests/.nix/derivation.nix b/tests/.nix/derivation.nix
deleted file mode 100644
index 1438fb3..0000000
--- a/tests/.nix/derivation.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-{ lib
-, stdenv
-, scons
-, clang-tools
-, version
-, forstio
-, netcdf
-}:
-
-stdenv.mkDerivation {
- pname = "forstio-test-cases";
- inherit version;
- src = ./..;
-
- enableParallelBuilding = true;
-
- nativeBuildInputs = [
- scons
- clang-tools
- forstio.async
- forstio.codec
- forstio.codec-json
- forstio.codec-netcdf
- forstio.core
- forstio.io
- forstio.window
- netcdf
- ];
-
- doCheck = true;
- checkPhase = ''
- scons test
- ./bin/tests
- '';
-
- outputs = ["out" "dev"];
-}
diff --git a/tests/SConscript b/tests/SConscript
deleted file mode 100644
index 3659c0b..0000000
--- a/tests/SConscript
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/false
-
-import os
-import os.path
-import glob
-
-
-Import('env')
-
-dir_path = Dir('.').abspath
-
-# Environment for base library
-test_cases_env = env.Clone();
-
-test_cases_env.sources = sorted(glob.glob(dir_path + "/*.cpp"))
-test_cases_env.headers = sorted(glob.glob(dir_path + "/*.h"))
-
-env.sources += test_cases_env.sources;
-env.headers += test_cases_env.headers;
-
-objects_static = []
-test_cases_env.add_source_files(objects_static, test_cases_env.sources, shared=False);
-test_cases_env.program = test_cases_env.Program('#bin/tests', objects_static);
-
-# Set Alias
-env.Alias('test', test_cases_env.program);
-env.Alias('check', test_cases_env.program);
-
-env.targets += ['test'];
-
-# Install
-env.Install('$prefix/bin/', [test_cases_env.program]);
diff --git a/tests/SConstruct b/tests/SConstruct
deleted file mode 100644
index 88477f7..0000000
--- a/tests/SConstruct
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/usr/bin/env python3
-
-import sys
-import os
-import os.path
-import glob
-import re
-
-
-if sys.version_info < (3,):
- def isbasestring(s):
- return isinstance(s,basestring)
-else:
- def isbasestring(s):
- return isinstance(s, (str,bytes))
-
-def add_kel_source_files(self, sources, filetype, lib_env=None, shared=False, target_post=""):
-
- if isbasestring(filetype):
- dir_path = self.Dir('.').abspath
- filetype = sorted(glob.glob(dir_path+"/"+filetype))
-
- for path in filetype:
- target_name = re.sub( r'(.*?)(\.cpp|\.c\+\+)', r'\1' + target_post, path )
- if shared:
- target_name+='.os'
- sources.append( self.SharedObject( target=target_name, source=path ) )
- else:
- target_name+='.o'
- sources.append( self.StaticObject( target=target_name, source=path ) )
- pass
-
-def isAbsolutePath(key, dirname, env):
- assert os.path.isabs(dirname), "%r must have absolute path syntax" % (key,)
-
-env_vars = Variables(
- args=ARGUMENTS
-)
-
-env_vars.Add('prefix',
- help='Installation target location of build results and headers',
- default='/usr/local/',
- validator=isAbsolutePath
-)
-
-env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=[],
- CPPDEFINES=['SAW_UNIX'],
- CXXFLAGS=['-std=c++20','-g','-Wall','-Wextra'],
- LIBS=[
- 'forstio-core',
- 'forstio-async',
- 'forstio-test',
- 'netcdf'
- ]
-);
-env.__class__.add_source_files = add_kel_source_files
-env.Tool('compilation_db');
-env.cdb = env.CompilationDatabase('compile_commands.json');
-
-env.objects = [];
-env.sources = [];
-env.headers = [];
-env.targets = [];
-
-Export('env')
-SConscript('SConscript')
-
-env.Alias('cdb', env.cdb);
-env.Alias('all', [env.targets]);
-env.Default('all');
-
-env.Alias('install', '$prefix')
diff --git a/tests/window.cpp b/tests/window.cpp
deleted file mode 100644
index f3db43f..0000000
--- a/tests/window.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
-#include <forstio/test/suite.h>
-#include <forstio/window/device.h>
-
-namespace {
-SAW_TEST("Device creation") {
-
-}
-}