jasonmolenda added a comment. In https://reviews.llvm.org/D41962#975168, @aprantl wrote:
> > there's a new skipUnlessFeature() method added to decorators.py which runs > > sysctl to detect hardware features (in this case, hw.optional.avx512f) > > How does one execute a program like `sysctl` on the remote? I have seen code > in TestLldbGdbServer.py that uses `platform get-file /proc/cpuinfo` to > achieve something similar for Linux, but that works without executing a new > process. this skipUnlessFeature sysctl check was all performed on the system running the testsuite. Checking whether the feature exists in the program (the approach you're taking) is more correct. We usually do host != target testsuite runs for arm devices, but there's no reason why someone couldn't do a macos x freebsd testsuite run and the sysctl check would be invalid in that case. https://reviews.llvm.org/D41962 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits