Skip to content

Conversation

@baominghelly
Copy link
Contributor

Description

Create a test api and add load test case from file feature

Test evidence

test command

python test/infinicore/run.py --help

python test/infinicore/run.py --list

python test/infinicore/run.py --nvidia

python test/infinicore/run.py --ops add acos acosh --nvidia --bench

python test/infinicore/run.py --ops add acos acosh --bench --num_prerun 5 --save

python test/infinicore/run.py --load *.json --bench --num_prerun 5 --save

python test/infinicore/run.py --load ./ --bench --num_prerun 50 --save

Test output

test_log.txt

@baominghelly baominghelly linked an issue Dec 25, 2025 that may be closed by this pull request
from .utils.op_test_utils import DynamicCaseGenerator


class TestDiscoverer:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个类感觉叫TestCollector好一些

return False


class TestAPI:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个要不改叫TestManager吧?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件应该叫load_utils

main()
'''

class DynamicCaseGenerator:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dynamic是否有必要?以及这里parse出来的是file不是case是吧?

@baominghelly baominghelly requested a review from a team December 26, 2025 10:26
@wooway777 wooway777 self-requested a review December 26, 2025 10:29
@wooway777 wooway777 merged commit 27777ee into main Dec 26, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DEV] Add test load from test file

3 participants