Skip to content

Commit

Permalink
add run-make test for rustc_fluent_macro with hypens in package name
Browse files Browse the repository at this point in the history
  • Loading branch information
lolbinarycat committed Mar 4, 2025
1 parent 38b364b commit d1d0b9b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/run-make/rustc_fluent_macro-hyphen-package/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[package]
name = "some-name"
version = "0.0.0"
edition = "2024"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
some_name_whatever_message = hello
8 changes: 8 additions & 0 deletions tests/run-make/rustc_fluent_macro-hyphen-package/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use run_make_support::external_deps::cargo::cargo;

// test to make sure that `rustc_fluent_macro` correctly handles
// packages that have hyphens in their package name.

fn main() {
cargo().arg("build").arg("--manifest-path=./Cargo.toml").run();
}
7 changes: 7 additions & 0 deletions tests/run-make/rustc_fluent_macro-hyphen-package/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#![feature(rustc_private)]

extern crate rustc_driver;
extern crate rustc_errors;
extern crate rustc_fluent_macro;

rustc_fluent_macro::fluent_messages!("../messages.ftl");

0 comments on commit d1d0b9b

Please sign in to comment.