2023-12-02 12:15:55 -06:00
|
|
|
# ignore-cross-compile because we run the compiled code
|
|
|
|
# needs-unwind because #[bench] and -Cpanic=abort requires -Zpanic-abort-tests
|
|
|
|
include ../tools.mk
|
|
|
|
|
2024-05-05 15:38:39 -05:00
|
|
|
NORMALIZE=sed 's%[0-9,\.]\{1,\} ns/iter (+/- [0-9,\.]\{1,\})%?? ns/iter (+/- ??)%' | sed 's%finished in [0-9\.]\{1,\}%finished in ??%'
|
2023-12-02 12:15:55 -06:00
|
|
|
|
|
|
|
all:
|
|
|
|
$(RUSTC) --test tests.rs
|
|
|
|
|
|
|
|
$(call RUN,tests) --test-threads=1 | $(NORMALIZE) > "$(TMPDIR)"/test.stdout
|
|
|
|
$(RUSTC_TEST_OP) "$(TMPDIR)"/test.stdout test.stdout
|
|
|
|
|
|
|
|
$(call RUN,tests) --test-threads=1 --bench | $(NORMALIZE) > "$(TMPDIR)"/bench.stdout
|
|
|
|
$(RUSTC_TEST_OP) "$(TMPDIR)"/bench.stdout bench.stdout
|