diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-09 11:02:19 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-11 14:09:38 +0200 |
| commit | e8b04cc95fe1412e2ef369397a60f0667e99880f (patch) | |
| tree | 985d2c7f55cf16345efaa38441cb626b05d2707a /tests/run-make | |
| parent | f8e25a687e02f741075a653215a8feedc0b6e7cd (diff) | |
| download | rust-e8b04cc95fe1412e2ef369397a60f0667e99880f.tar.gz rust-e8b04cc95fe1412e2ef369397a60f0667e99880f.zip | |
Migrate `run-make/multiple-emits` to `rmake.rs`
Diffstat (limited to 'tests/run-make')
| -rw-r--r-- | tests/run-make/multiple-emits/Makefile | 7 | ||||
| -rw-r--r-- | tests/run-make/multiple-emits/rmake.rs | 13 |
2 files changed, 13 insertions, 7 deletions
diff --git a/tests/run-make/multiple-emits/Makefile b/tests/run-make/multiple-emits/Makefile deleted file mode 100644 index d1f29764485..00000000000 --- a/tests/run-make/multiple-emits/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -include ../tools.mk - -all: - $(RUSTC) foo.rs --emit=asm,llvm-ir -o $(TMPDIR)/out 2>&1 - rm $(TMPDIR)/out.ll $(TMPDIR)/out.s - $(RUSTC) foo.rs --emit=asm,llvm-ir -o $(TMPDIR)/out2.ext 2>&1 - rm $(TMPDIR)/out2.ll $(TMPDIR)/out2.s diff --git a/tests/run-make/multiple-emits/rmake.rs b/tests/run-make/multiple-emits/rmake.rs new file mode 100644 index 00000000000..67c0ebb9864 --- /dev/null +++ b/tests/run-make/multiple-emits/rmake.rs @@ -0,0 +1,13 @@ +use run_make_support::{cwd, path, rustc}; + +fn main() { + rustc().input("foo.rs").emit("asm,llvm-ir").output("out").run(); + + assert!(path("out.ll").is_file()); + assert!(path("out.s").is_file()); + + rustc().input("foo.rs").emit("asm,llvm-ir").output("out2.ext").run(); + + assert!(path("out2.ll").is_file()); + assert!(path("out2.s").is_file()); +} |
