]> git.lizzy.rs Git - rust.git/commitdiff
Expand run-make test with regression tests for #30204
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 4 Dec 2015 21:02:48 +0000 (22:02 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 4 Dec 2015 21:02:48 +0000 (22:02 +0100)
Fix #30204.

src/test/run-make/output-type-permutations/Makefile

index b4b2e827e947eb32e65754fe88f16a99496d024f..6cfa7043a2e382b53adf69da58d03782dbe1ab19 100644 (file)
@@ -27,30 +27,40 @@ all:
        rm $(TMPDIR)/foo
        $(RUSTC) foo.rs --emit asm=$(TMPDIR)/foo
        rm $(TMPDIR)/foo
+       $(RUSTC) foo.rs --emit=asm=$(TMPDIR)/foo
+       rm $(TMPDIR)/foo
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
        $(RUSTC) foo.rs --emit llvm-bc -o $(TMPDIR)/foo
        rm $(TMPDIR)/foo
        $(RUSTC) foo.rs --emit llvm-bc=$(TMPDIR)/foo
        rm $(TMPDIR)/foo
+       $(RUSTC) foo.rs --emit=llvm-bc=$(TMPDIR)/foo
+       rm $(TMPDIR)/foo
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
        $(RUSTC) foo.rs --emit llvm-ir -o $(TMPDIR)/foo
        rm $(TMPDIR)/foo
        $(RUSTC) foo.rs --emit llvm-ir=$(TMPDIR)/foo
        rm $(TMPDIR)/foo
+       $(RUSTC) foo.rs --emit=llvm-ir=$(TMPDIR)/foo
+       rm $(TMPDIR)/foo
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
        $(RUSTC) foo.rs --emit obj -o $(TMPDIR)/foo
        rm $(TMPDIR)/foo
        $(RUSTC) foo.rs --emit obj=$(TMPDIR)/foo
        rm $(TMPDIR)/foo
+       $(RUSTC) foo.rs --emit=obj=$(TMPDIR)/foo
+       rm $(TMPDIR)/foo
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
        $(RUSTC) foo.rs --emit link -o $(TMPDIR)/$(call BIN,foo)
        rm $(TMPDIR)/$(call BIN,foo)
        $(RUSTC) foo.rs --emit link=$(TMPDIR)/$(call BIN,foo)
        rm $(TMPDIR)/$(call BIN,foo)
+       $(RUSTC) foo.rs --emit=link=$(TMPDIR)/$(call BIN,foo)
+       rm $(TMPDIR)/$(call BIN,foo)
        rm -f $(TMPDIR)/foo.pdb
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
@@ -58,12 +68,16 @@ all:
        rm $(TMPDIR)/foo
        $(RUSTC) foo.rs --crate-type=rlib --emit link=$(TMPDIR)/foo
        rm $(TMPDIR)/foo
+       $(RUSTC) foo.rs --crate-type=rlib --emit=link=$(TMPDIR)/foo
+       rm $(TMPDIR)/foo
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
        $(RUSTC) foo.rs --crate-type=dylib -o $(TMPDIR)/$(call BIN,foo)
        rm $(TMPDIR)/$(call BIN,foo)
        $(RUSTC) foo.rs --crate-type=dylib --emit link=$(TMPDIR)/$(call BIN,foo)
        rm $(TMPDIR)/$(call BIN,foo)
+       $(RUSTC) foo.rs --crate-type=dylib --emit=link=$(TMPDIR)/$(call BIN,foo)
+       rm $(TMPDIR)/$(call BIN,foo)
        rm -f $(TMPDIR)/foo.{exp,lib,pdb}
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
@@ -71,12 +85,16 @@ all:
        rm $(TMPDIR)/foo
        $(RUSTC) foo.rs --crate-type=staticlib --emit link=$(TMPDIR)/foo
        rm $(TMPDIR)/foo
+       $(RUSTC) foo.rs --crate-type=staticlib --emit=link=$(TMPDIR)/foo
+       rm $(TMPDIR)/foo
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
        $(RUSTC) foo.rs --crate-type=bin -o $(TMPDIR)/$(call BIN,foo)
        rm $(TMPDIR)/$(call BIN,foo)
        $(RUSTC) foo.rs --crate-type=bin --emit link=$(TMPDIR)/$(call BIN,foo)
        rm $(TMPDIR)/$(call BIN,foo)
+       $(RUSTC) foo.rs --crate-type=bin --emit=link=$(TMPDIR)/$(call BIN,foo)
+       rm $(TMPDIR)/$(call BIN,foo)
        rm -f $(TMPDIR)/foo.pdb
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
@@ -98,6 +116,17 @@ all:
        rm $(TMPDIR)/bc
        rm $(TMPDIR)/obj
        rm $(TMPDIR)/link
+       $(RUSTC) foo.rs --emit=asm=$(TMPDIR)/asm \
+                       --emit llvm-ir=$(TMPDIR)/ir \
+                       --emit=llvm-bc=$(TMPDIR)/bc \
+                       --emit obj=$(TMPDIR)/obj \
+                       --emit=link=$(TMPDIR)/link \
+                       --crate-type=staticlib
+       rm $(TMPDIR)/asm
+       rm $(TMPDIR)/ir
+       rm $(TMPDIR)/bc
+       rm $(TMPDIR)/obj
+       rm $(TMPDIR)/link
        [ "$$(ls -1 $(TMPDIR) | wc -l)" -eq "0" ]
 
        $(RUSTC) foo.rs --emit=asm,llvm-ir,llvm-bc,obj,link --crate-type=staticlib