-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename ndt to nsc, do not use common api PCH for the tool, update cma…
…ke/scripts/nbl/projectTargetName.cmake bug with unsetting a variable
- Loading branch information
1 parent
7a39c38
commit a07e79f
Showing
14 changed files
with
95 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
add_subdirectory(ndt) | ||
add_subdirectory(nsc) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"cmake" : | ||
{ | ||
"buildModes" : [], | ||
"configurations" : [ "Release", "Debug", "RelWithDebInfo" ], | ||
"requiredOptions" : [] | ||
}, | ||
"enableParallelBuild" : true, | ||
"input" : | ||
{ | ||
"data" : | ||
[ | ||
{ | ||
"command" : "../bin/nsc.exe", | ||
"dependencies" : [] | ||
} | ||
], | ||
"dependencies" : [] | ||
}, | ||
"isExecuted" : true, | ||
"profile" : | ||
{ | ||
"backend" : "vulkan", | ||
"buildModes" : [], | ||
"gpuArchitectures" : [], | ||
"platform" : "windows", | ||
"runConfiguration" : "Release" | ||
}, | ||
"scriptPath" : "../test/test.py", | ||
"threadsPerBuildProcess" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "nsc test module", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "nsc", | ||
"justMyCode": true, | ||
"cwd": "${workspaceFolder}/../", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"python.analysis.extraPaths": [ | ||
"../../tests/src" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
set(NBL_EXTRA_SOURCES | ||
# TODO: Cypi list extra sources if you need | ||
) | ||
|
||
nbl_create_executable_project("${NBL_EXTRA_SOURCES}" "" "" "") |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright (C) 2023 - DevSH Graphics Programming Sp. z O.O. | ||
|
||
# "nsc" target's test script, creates python environment for accessing | ||
# Nabla Python Framework module and runs the target's testing interface implementation | ||
|
||
# Example of usage | ||
# 1) python3 -m <reference to this module> | ||
# - runs all profiles found, goes through all batches found in a profile being processed | ||
# 2) python3 -m <reference to this module> <profile path/index> [OPTIONAL] <batch index/range of batches> ... [OPTIONAL] <batch index/range of batches> | ||
# - runs given profile, if batch index (or range of batches) is given then it will process only the index of the batch (or the range) | ||
|
||
import sys, os | ||
|
||
testModulePath = os.path.dirname(__file__) | ||
nblPythonFrameworkModulePath = os.path.abspath(os.path.join(testModulePath, "../../tests/src")) | ||
|
||
sys.path.append(nblPythonFrameworkModulePath) # relative path to Nabla's Python Framework module, relocatable | ||
|
||
profile_count = sum(map(lambda arg: arg=="-c", sys.argv)) | ||
profile_path = os.path.join(testModulePath, ".profiles") | ||
profile_args = list(map(lambda filename: os.path.join(profile_path, filename),\ | ||
filter(lambda file: file.endswith(".json"), os.listdir(profile_path))))\ | ||
if profile_count==0 else None | ||
repository_path = os.path.abspath(os.path.join(testModulePath, "../../")) | ||
|
||
from .test.test import main | ||
main(None, profile_args, repository_path, True) # each test target implements its testing interface by overriding common one in Nabla Python Framework module |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.