Running Tests

I am attempting to add openmp support for s390x. I created and applied a patch set and then cleanly built the necessary bits via cmake and ninja. I wanted to run the test suite but (a) I am not sure I am invoking it correctly or (b) There is something else I’ve missed that is causing the following problem:

$ ninja check-openmp
[0/2] Performing build step for 'runtimes'
ninja: no work to do.
[0/1] Running OpenMP tests
Traceback (most recent call last):
  File "/home/neale/llvm-project/llvm/build/./bin/llvm-lit", line 45, in <module>
    main(builtin_parameters)
  File "/home/neale/llvm-project/llvm/utils/lit/lit/main.py", line 46, in main
    opts.indirectlyRunCheck)
  File "/home/neale/llvm-project/llvm/utils/lit/lit/discovery.py", line 279, in find_tests_for_inputs
    local_config_cache, indirectlyRunCheck)[1])
  File "/home/neale/llvm-project/llvm/utils/lit/lit/discovery.py", line 243, in getTestsInSuite
    for res in subiter:
  File "/home/neale/llvm-project/llvm/utils/lit/lit/discovery.py", line 243, in getTestsInSuite
    for res in subiter:
  File "/home/neale/llvm-project/llvm/utils/lit/lit/discovery.py", line 243, in getTestsInSuite
    for res in subiter:
  [Previous line repeated 989 more times]
  File "/home/neale/llvm-project/llvm/utils/lit/lit/discovery.py", line 186, in getTestsInSuite
    lc = getLocalConfig(ts, path_in_suite, litConfig, localConfigCache)
  File "/home/neale/llvm-project/llvm/utils/lit/lit/discovery.py", line 125, in getLocalConfig
    return search(path_in_suite)
  File "/home/neale/llvm-project/llvm/utils/lit/lit/discovery.py", line 120, in search
    res = cache.get(key)
RecursionError: maximum recursion depth exceeded in comparison
FAILED: projects/openmp/CMakeFiles/check-openmp
cd /home/neale/llvm-project/llvm/build/projects/openmp && /usr/bin/python3.6 /home/neale/llvm-project/llvm/build/./bin/llvm-lit -sv /home/neale/llvm-project/llvm/build/projects/openmp/runtime/test /home/neale/llvm-project/llvm/build/projects/openmp/libomptarget/test/s390x-ibm-linux-gnu /home/neale/llvm-project/llvm/build/projects/openmp/libomptarget/test/s390x-ibm-linux-gnu-oldDriver
ninja: build stopped: subcommand failed.

Neale