···39 # fs-uae-launcher search side by side for fs-uae
40 # see $src/fsgs/plugins/pluginexecutablefinder.py#find_executable
41 ln -s ${fsuae}/bin/fs-uae $out/bin
042 '';
4344 meta = {
···39 # fs-uae-launcher search side by side for fs-uae
40 # see $src/fsgs/plugins/pluginexecutablefinder.py#find_executable
41 ln -s ${fsuae}/bin/fs-uae $out/bin
42+ ln -s ${fsuae}/bin/fs-uae-device-helper $out/bin
43 '';
4445 meta = {
···12, numpy
13, opt-einsum
14, pytestCheckHook
015, pythonOlder
16, scipy
17, stdenv
···61 jaxlib'
62 matplotlib
63 pytestCheckHook
064 ];
0006566 # NOTE: Don't run the tests in the expiremental directory as they require flax
67 # which creates a circular dependency. See https://discourse.nixos.org/t/how-to-nix-ify-python-packages-with-circular-dependencies/14648/2.
68 # Not a big deal, this is how the JAX docs suggest running the test suite
69 # anyhow.
70 pytestFlagsArray = [
071 "-W ignore::DeprecationWarning"
72 "tests/"
73 ];
···94 "test_for_loop_fixpoint_correctly_identifies_loop_varying_residuals_unrolled_for_loop"
95 "testQdwhWithRandomMatrix3"
96 "testScanGrad_jit_scan"
0000000097 ];
9899 disabledTestPaths = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
···12, numpy
13, opt-einsum
14, pytestCheckHook
15+, pytest-xdist
16, pythonOlder
17, scipy
18, stdenv
···62 jaxlib'
63 matplotlib
64 pytestCheckHook
65+ pytest-xdist
66 ];
67+68+ # high parallelism will result in the tests getting stuck
69+ dontUsePytestXdist = true;
7071 # NOTE: Don't run the tests in the expiremental directory as they require flax
72 # which creates a circular dependency. See https://discourse.nixos.org/t/how-to-nix-ify-python-packages-with-circular-dependencies/14648/2.
73 # Not a big deal, this is how the JAX docs suggest running the test suite
74 # anyhow.
75 pytestFlagsArray = [
76+ "--numprocesses=4"
77 "-W ignore::DeprecationWarning"
78 "tests/"
79 ];
···100 "test_for_loop_fixpoint_correctly_identifies_loop_varying_residuals_unrolled_for_loop"
101 "testQdwhWithRandomMatrix3"
102 "testScanGrad_jit_scan"
103+104+ # See https://github.com/google/jax/issues/17867.
105+ "test_array"
106+ "test_async"
107+ "test_copy0"
108+ "test_device_put"
109+ "test_make_array_from_callback"
110+ "test_make_array_from_single_device_arrays"
111 ];
112113 disabledTestPaths = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
···1diff --git a/CMakeLists.txt b/CMakeLists.txt
2+index 80a3bdcd6..380a1573a 100644
3--- a/CMakeLists.txt
4+++ b/CMakeLists.txt
5+@@ -61,7 +61,7 @@ option(
6+ "Link dependencies using CMake's find_package and do not use internal builds"
7+ ${SRB2_CONFIG_SYSTEM_LIBRARIES_DEFAULT}
8+ )
9+-option(SRB2_CONFIG_ENABLE_TESTS "Build the test suite" ON)
10++option(SRB2_CONFIG_ENABLE_TESTS "Build the test suite" OFF)
11+ # This option isn't recommended for distribution builds and probably won't work (yet).
12+ cmake_dependent_option(
13+ SRB2_CONFIG_SHARED_INTERNAL_LIBRARIES
14+@@ -80,25 +80,6 @@ option(SRB2_CONFIG_ZDEBUG "Compile with ZDEBUG defined." OFF)
15+ option(SRB2_CONFIG_PROFILEMODE "Compile for profiling (GCC only)." OFF)
16+ set(SRB2_CONFIG_ASSET_DIRECTORY "" CACHE PATH "Path to directory that contains all asset files for the installer. If set, assets will be part of installation and cpack.")
17+18+-if(SRB2_CONFIG_ENABLE_TESTS)
19+- # https://github.com/catchorg/Catch2
20+- CPMAddPackage(
21+- NAME Catch2
22+- VERSION 3.4.0
23+- GITHUB_REPOSITORY catchorg/Catch2
24+- OPTIONS
25+- "CATCH_INSTALL_DOCS OFF"
26+- )
27+- list(APPEND CMAKE_MODULE_PATH "${Catch2_SOURCE_DIR}/extras")
28+- include(CTest)
29+- include(Catch)
30+- add_executable(srb2tests)
31+- # To add tests, use target_sources to add individual test files to the target in subdirs.
32+- target_link_libraries(srb2tests PRIVATE Catch2::Catch2 Catch2::Catch2WithMain)
33+- target_compile_features(srb2tests PRIVATE c_std_11 cxx_std_17)
34+- catch_discover_tests(srb2tests)
35+-endif()
36+-
37+ # Enable CCache
38+ # (Set USE_CCACHE=ON to use, CCACHE_OPTIONS for options)
39+ if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL Windows)
40+@@ -113,12 +94,6 @@ if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL Windows)
41+ message(WARNING "USE_CCACHE was set but ccache is not found (set CCACHE_TOOL_PATH)")
42 endif()
43 endif()
44+-else()
45- CPMAddPackage(
46- NAME Ccache.cmake
47- GITHUB_REPOSITORY TheLartians/Ccache.cmake
48- VERSION 1.2
49- )
50 endif()
51+52 # Dependencies
53+@@ -179,7 +154,7 @@ include(GitUtilities)
54+ if("${SRB2_SDL2_EXE_NAME}" STREQUAL "")
55+ # cause a reconfigure if the branch changes
56+ get_git_dir(SRB2_GIT_DIR)
57+- configure_file("${SRB2_GIT_DIR}/HEAD" HEAD COPYONLY)
58++ #configure_file("${SRB2_GIT_DIR}/HEAD" HEAD COPYONLY)
59+60+ git_current_branch(SRB2_GIT_REVISION)
61+