Skip to content

Conversation

@baominghelly
Copy link

Description

Add a new test tool which allows external test cases

Test

python test/infinicore/run_with_external_test_cases.py --nvidia

--- Scenario A: Single Case ---
🚀 Running 1 externally injected Case(s) for 'add'...

============================================================
Testing Add on NVIDIA
============================================================
TestCase(Custom Small Case - inputs=[in_0: tensor(2, 4), float32; in_0: tensor(2, 4), float32])
✓ Passed

============================================================
TEST SUMMARY
Total tests: 1
Passed: 1
Success rate: 100.0%

All tests passed!
============================================================

--- Scenario B: Multiple Cases List ---
🚀 Running 2 externally injected Case(s) for 'add'...

============================================================
Testing Add on NVIDIA
============================================================
TestCase(Custom Small Case - inputs=[in_0: tensor(2, 4), float32; in_0: tensor(2, 4), float32])
✓ Passed
TestCase(Custom Large Case - inputs=[in_0: tensor(16, 16), float32; in_0: tensor(16, 16), float32])
✓ Passed

============================================================
TEST SUMMARY
Total tests: 2
Passed: 2
Success rate: 100.0%

All tests passed!
============================================================
[1]    2837324 IOT instruction (core dumped)  python test/infinicore/run_with_external_test_cases.py --nvidia

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.

2 participants