Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
3f072e15
Commit
3f072e15
authored
Oct 15, 2019
by
Dan Sinclair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move TARGETDIR as well
parent
16720143
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
CMakeLists.txt
CMakeLists.txt
+8
-0
runtests
Test/runtests
+7
-7
No files found.
CMakeLists.txt
View file @
3f072e15
...
...
@@ -197,4 +197,12 @@ if(BUILD_TESTING)
ENVIRONMENT GLSLANG_PATH=
${
CMAKE_CURRENT_BINARY_DIR
}
/StandAlone/glslangValidator
)
set_property
(
TEST glslang-testsuite APPEND PROPERTY
ENVIRONMENT SPIRV_REMAP_PATH=
${
CMAKE_CURRENT_BINARY_DIR
}
/StandAlone/spirv-remap
)
if
(
CMAKE_CONFIGURATION_TYPES
)
set_property
(
TEST glslang-testsuite APPEND PROPERTY
ENVIRONMENT GLSLANG_TEST_RESULTS=
${
CMAKE_CURRENT_BINARY_DIR
}
/$<CONFIGURATION>/localResults
)
else
(
CMAKE_CONFIGURATION_TYPES
)
set_property
(
TEST glslang-testsuite APPEND PROPERTY
ENVIRONMENT GLSLANG_TEST_RESULTS=
${
CMAKE_CURRENT_BINARY_DIR
}
/localResults
)
endif
(
CMAKE_CONFIGURATION_TYPES
)
endif
(
BUILD_TESTING
)
Test/runtests
View file @
3f072e15
#!/usr/bin/env bash
TARGETDIR
=
localResults
TARGETDIR
=
${
GLSLANG_TEST_RESULTS
:-
localResults
}
BASEDIR
=
baseResults
EXE
=
${
GLSLANG_PATH
:-
../build/install/bin/glslangValidator
}
REMAPEXE
=
${
SPIRV_REMAP_PATH
:-
../build/install/bin/spirv-remap
}
HASERROR
=
0
mkdir
-p
localResults
mkdir
-p
$TARGETDIR
if
[
-a
localtestlist
]
then
...
...
@@ -55,13 +55,13 @@ diff -b $BASEDIR/hlsl.automap.frag.out $TARGETDIR/hlsl.automap.frag.out || HASER
# multi-threaded test
#
echo
Comparing single thread to multithread
for
all tests
in
current directory...
$EXE
-i
-C
*
.vert
*
.geom
*
.frag
*
.tesc
*
.tese
*
.comp
>
singleThread.out
$EXE
-i
-C
*
.vert
*
.geom
*
.frag
*
.tesc
*
.tese
*
.comp
-t
>
multiThread.out
diff
singleThread.out
multiThread.out
||
HASERROR
=
1
$EXE
-i
-C
*
.vert
*
.geom
*
.frag
*
.tesc
*
.tese
*
.comp
>
$TARGETDIR
/
singleThread.out
$EXE
-i
-C
*
.vert
*
.geom
*
.frag
*
.tesc
*
.tese
*
.comp
-t
>
$TARGETDIR
/
multiThread.out
diff
$TARGETDIR
/singleThread.out
$TARGETDIR
/
multiThread.out
||
HASERROR
=
1
if
[
$HASERROR
-eq
0
]
then
rm
singleThread.out
rm
multiThread.out
rm
$TARGETDIR
/
singleThread.out
rm
$TARGETDIR
/
multiThread.out
fi
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment