Skip to content
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

xmake 项目测试用例运行失败 #4567

Closed
TOMO-CAT opened this issue Jan 4, 2024 · 4 comments
Closed

xmake 项目测试用例运行失败 #4567

TOMO-CAT opened this issue Jan 4, 2024 · 4 comments
Labels

Comments

@TOMO-CAT
Copy link

TOMO-CAT commented Jan 4, 2024

Xmake 版本

xmake v2.8.5+HEAD.b5e571f97

操作系统版本和架构

Linux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

描述问题

源码安装 xmake:

git clone https://github.com/xmake-io/xmake.git
git checkout b5e571f970716e31c24e7c98112e16ac55ead624
git submodule update --init
./configure
./scripts/get.sh __local__ __install_only__
source ~/.xmake/profile

运行单测:

xmake l tests/run.lua

报错:
image
image

期待的结果

fork xmake 做一些修改,想通过 tests 下的测试用例自测。
有几个问题希望解答一下:

  1. 当前 xmake 项目运行单测用例是 xmake l tests/run.lua 吗,tests/runner.lua 是什么作用
  2. 对于一些平台或者操作系统,测试用例可能完全无法通过,怎么跳过这些测试用例

工程配置

附加信息和错误日志

image

@TOMO-CAT TOMO-CAT added the bug label Jan 4, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: xmake project test case failed to run

Xmake version

xmake v2.8.5+HEAD.b5e571f97

Operating system version and architecture

Linux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Describe the problem

Install xmake from source:

git clone https://github.com/xmake-io/xmake.git
git checkout b5e571f970716e31c24e7c98112e16ac55ead624
git submodule update --init
./configure
./scripts/get.sh __local__ __install_only__
source ~/.xmake/profile

Run a single test:

xmake l tests/run.lua

Error reported:
image
image

Expected results

Fork xmake to make some modifications and want to test myself through the test cases under tests.
I have a few questions I would like answered:

  1. Is the single test case for running the current xmake project xmake l tests/run.lua? What is the role of tests/runner.lua?
  2. For some platforms or operating systems, the test cases may not pass at all. How to skip these test cases?

Project configuration

none

Additional information and error logs

image

@TOMO-CAT
Copy link
Author

TOMO-CAT commented Jan 4, 2024

应该是 xmake/tests/projects/linux/bpf/minimal 下载 libelf 失败

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It should be xmake/tests/projects/linux/bpf/minimal. Downloading libelf failed.

@TOMO-CAT
Copy link
Author

TOMO-CAT commented Jan 4, 2024

@TOMO-CAT TOMO-CAT closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants