-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Add gcc-target-tests for 32 and 64 bit
- Loading branch information
Stefanos Kornilios Mitsis Poiitidis
committed
Jan 25, 2021
1 parent
239c8f4
commit d0aa661
Showing
13 changed files
with
112 additions
and
2 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
Submodule fex-gcc-target-tests-bins
added at
9f83d4
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
# Careful. Globbing can't see changes to the contents of files | ||
# Need to do a fresh clean to see changes | ||
file(GLOB_RECURSE TESTS CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/External/fex-gcc-target-tests-bins/32/*) | ||
|
||
foreach(TEST ${TESTS}) | ||
|
||
string(REPLACE "/fex-gcc-target-tests-bins/32/" ";" TEST_NAME_LIST ${TEST}) | ||
list(GET TEST_NAME_LIST 1 TEST_NAME) | ||
string(REPLACE "/" "-" TEST_NAME ${TEST_NAME}) | ||
|
||
# Interpreter is too slow to run these tests, only generate for jit | ||
|
||
add_test(NAME "${TEST_NAME}.jit.gcc-target-32" | ||
COMMAND "python3" "${CMAKE_SOURCE_DIR}/Scripts/guest_test_runner.py" | ||
"${CMAKE_SOURCE_DIR}/unittests/gcc-target-tests-32/Known_Failures" | ||
"${CMAKE_SOURCE_DIR}/unittests/gcc-target-tests-32/Expected_Output" | ||
"${CMAKE_SOURCE_DIR}/unittests/gcc-target-tests-32/Disabled_Tests" | ||
"${TEST_NAME}" | ||
"${CMAKE_BINARY_DIR}/Bin/FEXLoader" | ||
"-c" "irjit" "-n" "500" "-R" $ENV{ROOTFS} "--" | ||
"${TEST}") | ||
|
||
endforeach() | ||
|
||
execute_process(COMMAND "nproc" OUTPUT_VARIABLE CORES) | ||
string(STRIP ${CORES} CORES) | ||
|
||
add_custom_target( | ||
gcc_target_tests_32 | ||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" | ||
USES_TERMINAL | ||
COMMAND "ctest" "--timeout" "20" "-j${CORES}" "-R" "\.*.gcc-target-32$$") |
Empty file.
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 @@ | ||
# default to zero |
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,9 @@ | ||
pr72867.c.gcc-target-test-32 | ||
pr88240.c.gcc-target-test-32 | ||
sse2-mmx-cvtps2pi.c.gcc-target-test-32 | ||
sse2-mmx-cvttps2pi.c.gcc-target-test-32 | ||
sse2-mmx-pextrw.c.gcc-target-test-32 | ||
sse2-mmx-psraw.c.gcc-target-test-32 | ||
sse2-mmx-psrawi.c.gcc-target-test-32 | ||
sse2-psraw-1.c.gcc-target-test-32 | ||
sse2-shiftqihi-constant-2.c.gcc-target-test-32 |
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,33 @@ | ||
|
||
# Careful. Globbing can't see changes to the contents of files | ||
# Need to do a fresh clean to see changes | ||
file(GLOB_RECURSE TESTS CONFIGURE_DEPENDS ${CMAKE_SOURCE_DIR}/External/fex-gcc-target-tests-bins/64/*) | ||
|
||
foreach(TEST ${TESTS}) | ||
|
||
string(REPLACE "/fex-gcc-target-tests-bins/64/" ";" TEST_NAME_LIST ${TEST}) | ||
list(GET TEST_NAME_LIST 1 TEST_NAME) | ||
string(REPLACE "/" "-" TEST_NAME ${TEST_NAME}) | ||
|
||
# Interpreter is too slow to run these tests, only generate for jit | ||
|
||
add_test(NAME "${TEST_NAME}.jit.gcc-target-64" | ||
COMMAND "python3" "${CMAKE_SOURCE_DIR}/Scripts/guest_test_runner.py" | ||
"${CMAKE_SOURCE_DIR}/unittests/gcc-target-tests-64/Known_Failures" | ||
"${CMAKE_SOURCE_DIR}/unittests/gcc-target-tests-64/Expected_Output" | ||
"${CMAKE_SOURCE_DIR}/unittests/gcc-target-tests-64/Disabled_Tests" | ||
"${TEST_NAME}" | ||
"${CMAKE_BINARY_DIR}/Bin/FEXLoader" | ||
"-c" "irjit" "-n" "500" "-R" $ENV{ROOTFS} "--" | ||
"${TEST}") | ||
|
||
endforeach() | ||
|
||
execute_process(COMMAND "nproc" OUTPUT_VARIABLE CORES) | ||
string(STRIP ${CORES} CORES) | ||
|
||
add_custom_target( | ||
gcc_target_tests_64 | ||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}" | ||
USES_TERMINAL | ||
COMMAND "ctest" "--timeout" "20" "-j${CORES}" "-R" "\.*.gcc-target-64$$") |
Empty file.
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 @@ | ||
# default to zero |
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,9 @@ | ||
asm-5.c.gcc-target-test-64 | ||
pr88240.c.gcc-target-test-64 | ||
sse2-mmx-cvtps2pi.c.gcc-target-test-64 | ||
sse2-mmx-cvttps2pi.c.gcc-target-test-64 | ||
sse2-mmx-pextrw.c.gcc-target-test-64 | ||
sse2-mmx-psraw.c.gcc-target-test-64 | ||
sse2-mmx-psrawi.c.gcc-target-test-64 | ||
sse2-psraw-1.c.gcc-target-test-64 | ||
sse2-shiftqihi-constant-2.c.gcc-target-test-64 |