-
Notifications
You must be signed in to change notification settings - Fork 156
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
gnu gcc testsuite测试方法咨询 #146
Comments
这里好像是configure报错了,可以参考https://github.com/plctlab/riscv-ci/blob/main/gnu-toolchain-rvi.sh |
可以试试直接使用 |
你好,由于我不想测试g++等其他测试或者指定测试案例执行,所有需要make check-gcc命令而不用make report-linux,congure之后make linux,再次执行make check-gcc,他会再次安装riscv64-unknown-elf-命令,执行的测试的target是riscv64-unknown-elf,请问怎么才能让make check-gcc执行的测试的target是riscv64-unknown-linux-gnu呢 |
可以试试 |
感谢老师指定,也就是说compile.exp也只是定义了测试行为,即调用gcc -s gcc.c-torture/compile/xxx.c,编译通过证明测试通过,编译出错则证明测试出错,结果保存在comp_output列表中,而对于需要特定的测试条件和判断通过与否标准的测试可在.c中单独设置。例如 gcc.c-torture/execute/builtins/abs-2.c,部分截图及完整文件如下所示 |
你说的测试用例不完整的问题是因为只看了单个测试文件,例如 它不止编译了 同理 |
好的,多谢老师指点。 |
安装好riscv-gnutoolchain之后在编译目录下执行make check-gcc RUNTESTFLAGS="--
target_board=riscv-sim testfile.exp execute.exp",compile测试pass,execute测试fail,结果如下:
分析:可能是测试平台的原因,x86平台上执行riscv测试,解决方法如下:
2.按照PLCT实验室测试方法(https://github.com/liujiawei929/GNU-Toolchain),../configure --prefix=$RISCV
make -j4 , make report-gcc-newlib 2>&1|tee rv64_newlib-reportgccnewlib.log出现如下问题:
请问我该用哪种方法可以顺利执行execute测试,上面两种问题该怎么解决,谢谢。
The text was updated successfully, but these errors were encountered: