]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/weird-output-filenames/Makefile
Disallow crate names with leading hyphens
[rust.git] / src / test / run-make / weird-output-filenames / Makefile
1 -include ../tools.mk
2
3 all:
4         cp foo.rs $(TMPDIR)/.foo.rs
5         $(RUSTC) $(TMPDIR)/.foo.rs 2>&1 \
6                 | grep "invalid character.*in crate name:"
7         cp foo.rs $(TMPDIR)/.foo.bar
8         $(RUSTC) $(TMPDIR)/.foo.bar 2>&1 \
9                 | grep "invalid character.*in crate name:"
10         cp foo.rs $(TMPDIR)/+foo+bar
11         $(RUSTC) $(TMPDIR)/+foo+bar 2>&1 \
12                 | grep "invalid character.*in crate name:"
13         cp foo.rs $(TMPDIR)/-foo.rs
14         $(RUSTC) $(TMPDIR)/-foo.rs 2>&1 \
15                 | grep "crate name cannot start with a hyphen:"