run_tests.sh 396 Bytes
Newer Older
jerrrrry's avatar
jerrrrry committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

test_base=./tests # 指定测试目录
export CUDA_VISIBLE_DEVICES=3 # 指定GPU

for file in $(find "$test_base" -maxdepth 1 -name 'test_*.sh'); do
    # 去掉路径前的 './' 以获得文件名
    filename=$(basename "$file")
    echo "################################"
    echo "Running tests in $filename..."

    bash "$file"
    echo "################################"

done