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

Add a few tests for --compile --target #10523

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Jarred-Sumner
Copy link
Collaborator

What does this PR do?

Add a few tests for --compile --target

How did you verify your code works?

Tests

const name_value = callframe.arguments(1).ptr[0];
const input = name_value.toSlice(global, bun.default_allocator);
defer input.deinit();
const target = CompileTarget.from(input.slice());
Copy link
Collaborator

Choose a reason for hiding this comment

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

lol doesnt this function exit the program on failure.

would be cool if we could test the parser. its fine of course.

var i = 0;
var list = [];
while (i < text.length) {
let errorLineI = text.indexOf(prefix, i);
if (errorLineI === -1) {
// Sometimes, our errors start with the error name itself
Copy link
Collaborator

Choose a reason for hiding this comment

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

ah i understand alot more now. thanks for the comment

Copy link

github-actions bot commented Apr 25, 2024

@Jarred-Sumner, your commit has failing tests :(

💪 1 failing tests Darwin AARCH64

💻 1 failing tests Darwin x64 baseline

💻 1 failing tests Darwin x64

🐧💪 1 failing tests Linux AARCH64

🐧🖥 1 failing tests Linux x64

🪟💻 10 failing tests Windows x64 baseline

🪟💻 9 failing tests Windows x64

View logs

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.

None yet

2 participants