fix compiletest to search for two dash and run make fulldeps test

This commit is contained in:
Aliénore Bouttefeux 2021-05-09 14:46:00 +02:00
parent f6b8b78063
commit 4ce2e335d9
3 changed files with 3 additions and 3 deletions

View file

@ -4,4 +4,4 @@ all: foo.rs
$(RUSTC) --cfg 'feature="bar"' --crate-type lib foo.rs
$(RUSTDOC) --test --cfg 'feature="bar"' \
-L $(TMPDIR) foo.rs |\
$(CGREP) 'foo.rs - foo (line 1) ... ok'
$(CGREP) 'foo.rs - foo (line 1) - run ... ok'

View file

@ -3,6 +3,6 @@
all:
# check that #[cfg_attr(..., ignore)] does the right thing.
$(RUSTC) --test test-ignore-cfg.rs --cfg ignorecfg
$(call RUN,test-ignore-cfg) | $(CGREP) 'shouldnotignore ... ok' 'shouldignore ... ignored'
$(call RUN,test-ignore-cfg) | $(CGREP) 'shouldnotignore - run ... ok' 'shouldignore - ignore ... ignored'
$(call RUN,test-ignore-cfg --quiet) | $(CGREP) -e "^i\.$$"
$(call RUN,test-ignore-cfg --quiet) | $(CGREP) -v 'should'