mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-07-21 19:26:22 +03:00
13 lines
348 B
Bash
13 lines
348 B
Bash
#!/bin/bash
|
|
set -ex
|
|
TEST_EXECUTABLES_DIR=$1
|
|
SUFFIX=$2
|
|
|
|
ls ${TEST_EXECUTABLES_DIR}/* | sort -u | while read -r executable; do
|
|
output=$("$executable" --list 2>/dev/null)
|
|
exit_code=$?
|
|
if [ $exit_code -eq 0 ] && echo "$output" | grep -q "_${SUFFIX}: test$"; then
|
|
mv "$executable" "${TEST_EXECUTABLES_DIR}/../${SUFFIX}/"
|
|
fi
|
|
done
|