<div dir="ltr"><div>Hello everyone,<br><br></div><div>I am working to run the LLVM Nightly Testsuite on embedded arm devices. Not all of these devices can mount NFS to share a common directory tree. To mitigate this I have patched test-suite/RunSafely.sh (attached) to create a temporary directory, run the test remotely, collect the output, and cleanup after itself. The patch breaks compatibility with the current remote device model in the following ways:<br>
<br></div><div>1. uses scp/rcp to copy files from the host running test-suite instead of assuming an identical tree on the remote device.<br></div><div>2. expects the remote device to have the mktemp command to create the temporary workspace (usually under /tmp/*)<br>
</div><div>3. expects the remote device to have timeit installed in its path. If timeit were compiled statically I could scp the one passed into RunSafely.sh to the destination. Hosts with a different libc than the tested compiler (Android, embedded uClibc devices) cannot run the dynamically-linked timeit.<br>
</div><div>4. It's a bit slower due to all the network copies for the entire test suite.<br><br></div><div>I'd appreciate feedback and suggestions as to how I can rework this model for inclusion upstream. I'm sure there are others out there that would find this kind of testing useful. I'm fine with a new remote-copy mode that can be passed in via lnt nt command line invocation.<br>
<br></div><div>I hope others find this useful.<br></div><div>-Brian<br><br><br></div></div>