You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash -e
-
- test_dirs="test megengine"
- TEST_PLAT=$1
-
- if [[ "$TEST_PLAT" == cpu ]]; then
- echo "only test cpu pytest"
- elif [[ "$TEST_PLAT" == cuda ]]; then
- echo "test both cpu and gpu pytest"
- else
- echo "Argument must cpu or cuda"
- exit 1
- fi
-
- pushd $(dirname "${BASH_SOURCE[0]}")/.. >/dev/null
- PYTHONPATH="." python3 -m pytest $test_dirs -m 'not isolated_distributed'
- if [[ "$TEST_PLAT" == cuda ]]; then
- echo "test GPU pytest now"
- PYTHONPATH="." python3 -m pytest $test_dirs -m 'isolated_distributed'
- fi
- popd >/dev/null
|