-
Notifications
You must be signed in to change notification settings - Fork 22
Convert this repository into a test case collection for NTFC #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
nuttx-testing repository now becomes the place where NTFC compatible unit tests for Apache NuttX are kept Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com> Co-authored-by: nijie3 <nijie3@xiaomi.com> Co-authored-by: v-yangjing26 <v-yangjing26@xiaomi.com> Co-authored-by: v-wuguohui1 <v-wuguohui1@xiaomi.com> Co-authored-by: chenjiahua1 <chenjiahua1@xiaomi.com> Co-authored-by: chenzihan1 <chenzihan1@xiaomi.com> Co-authored-by: tengshuangshuang <tengshuangshuang@xiaomi.com> Co-authored-by: v-xujian5 <v-xujian5@xiaomi.com> Co-authored-by: wangxingxing <wangxingxing@xiaomi.com> Co-authored-by: guanyi <guanyi@xiaomi.com> Co-authored-by: yangsong8 <yangsong8@xiaomi.com> Co-authored-by: v-zhanhaixiang <v-zhanhaixiang@xiaomi.com> Co-authored-by: yezhonghui <yezhonghui@xiaomi.com> Co-authored-by: zhangsixuan1 <zhangsixuan1@xiaomi.com> Co-authored-by: likun17 <likun17@xiaomi.com> Co-authored-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com> Co-authored-by: chenrun1 <chenrun1@xiaomi.com> Co-authored-by: yangyumeng3 <yangyumeng3@xiaomi.com> Co-authored-by: guohao15 <guohao15@xiaomi.com> Co-authored-by: jingfei <jingfei@xiaomi.com> Co-authored-by: pengyinjie <pengyinjie@xiaomi.com> Co-authored-by: huojianchao<huojianchao@xiaomi.com> Co-authored-by: wangshaoxin <wangshaoxin@xiaomi.com> Co-authored-by: huyongkang <huyongkang@xiaomi.com> Co-authored-by: xucheng5 <xucheng5@xiaomi.com> Co-authored-by: makejian <makejian@xiaomi.com> Co-authored-by: leidonglin <leidonglin@xiaomi.com> Co-authored-by: wangmingrong1 <wangmingrong1@xiaomi.com>
CONFIG_TESTING_MM is CONFIG_TESTING_HEAP in upstream Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
ltp_interfaces_sigrelse_1_1 fails for sim/citest on CI Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
change expected string for cat011 so it pass for rv-virt/citest64 Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
Signed-off-by: raiden00pl <raiden00@railab.me>
cederom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @szafonimateusz-mi we finally have separate location for testing :-)
Would it be possible to put all NTFC tests under ntfc/ directory please? We have some more ideas for testing and each of them would have its own dedicated directory that way :-)
|
@szafonimateusz-mi so do we plan to move ALL test case from apps/ to this repo and remove them from nuttx-apps repo? |
| `describe` varchar(24) DEFAULT '' NOT NULL COMMENT '描述', | ||
| `data_sync_task_id` BIGINT(11) DEFAULT 0 NOT NULL COMMENT '数据同步任务id', | ||
| `update_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '数据更新时间' | ||
| ); No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @szafonimateusz-mi, this SQL script file was created by a MySQL database, correct? Is it necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right! I need to make sure this file isn't being used. I've now found that arch/os/performance is broken anyway by one of my previous changes
|
@cederom This needs its own repository because it's Python code, and QA will be handled by the tox. If this repository is to be used for other purposes, it's better to create a new one for the NTFC test cases only. @xiaoxiang781216 I don't see the need to move apps/testing. I think it would only introduce unnecessary complications in build process. |
|
Okay, thanks for explaining @szafonimateusz-mi.. it would be best to keep all testing tools in one repo but if there is no other way we may create a dedicated repo like |
|
|
||
|
|
||
| @pytest.mark.dep_config("CONFIG_TESTING_ATOMIC") | ||
| @pytest.mark.cmd_check("atomic_main") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it isn't valid if we change test case to elf binary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, ELF binary is not supported now. pytest.mark.cmd_check is a remnant from the Xiaomi CI, but I think it should be removed in the future. Configuration checking (pytest.mark.dep_config) should be sufficient for test auto-detection. It won't be perfect, but it will work with ELF bin. In the worst case, the test case will report a failure due to "command not found", which can also help in detecting a certain class of bugs.
Another approach is to dynamically scan whether a given directory contains ELF bin file, then we can leave pytest.mark.cmd_check and add this feature in NTFC.
| def test_vela_sched_interface_task_test07(): | ||
|
|
||
| cmd = "vela_sched_interface_task_test07" | ||
| EXPECTED_LIST = "TEST PASSED !" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @szafonimateusz-mi , I think the functions in this file need to be renamed.
| @pytest.mark.skip("No Ready") | ||
| @pytest.mark.cmd_check("vela_sched_pthreads_pth04_main") | ||
| def test_vela_sched_pthreads_pth04_integration(): | ||
| cmd = "vela_sched_pthreads_pth04" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @szafonimateusz-mi , I think the functions in this file need to be renamed.
| def test_stability_test04(self): | ||
| pytest.product.sendCommand("vela_fs_stability_test04", "TEST PASSED", timeout=180) | ||
| ret = pytest.product.sendCommand( | ||
| "vela_fs_stability_test04", "TEST PASSED", timeout=20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@szafonimateusz-mi, in this file too, the functions need to be renamed.
| @pytest.mark.cmd_check("vela_fs_stress_write_full_file_main") | ||
| def test_stress_write_full_file(self): | ||
| ret = pytest.product.sendCommand( | ||
| "vela_fs_stress_write_full_file /tmp", self.EXPECTED_LIST, timeout=120 * 60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@szafonimateusz-mi also in this file
This PR adds test cases for NTFC from https://github.com/szafonimateusz-mi/nuttx-testing
Related issue in nuttx repo: apache/nuttx#17717