@@ -42,6 +42,7 @@ fn cargo_bench_simple() {
42
42
assert_that ( p. cargo ( "bench" ) ,
43
43
execs ( ) . with_stderr ( & format ! ( "\
44
44
[COMPILING] foo v0.5.0 ({})
45
+ [FINISHED] release [optimized] target(s) in [..]
45
46
[RUNNING] target[..]release[..]foo-[..]" , p. url( ) ) )
46
47
. with_stdout ( "
47
48
running 1 test
@@ -76,6 +77,7 @@ fn bench_tarname() {
76
77
execs ( ) . with_status ( 0 )
77
78
. with_stderr ( format ! ( "\
78
79
[COMPILING] foo v0.0.1 ({dir})
80
+ [FINISHED] release [optimized] target(s) in [..]
79
81
[RUNNING] target[..]release[..]bin2[..]
80
82
" , dir = prj. url( ) ) )
81
83
. with_stdout ( "
@@ -104,6 +106,7 @@ fn cargo_bench_verbose() {
104
106
execs ( ) . with_stderr ( & format ! ( "\
105
107
[COMPILING] foo v0.5.0 ({url})
106
108
[RUNNING] `rustc src[..]foo.rs [..]`
109
+ [FINISHED] release [optimized] target(s) in [..]
107
110
[RUNNING] `[..]target[..]release[..]foo-[..] hello --bench`" , url = p. url( ) ) )
108
111
. with_stdout ( "
109
112
running 1 test
@@ -186,6 +189,7 @@ running 1 test
186
189
test bench_hello ... " )
187
190
. with_stderr_contains ( format ! ( "\
188
191
[COMPILING] foo v0.5.0 ({})
192
+ [FINISHED] release [optimized] target(s) in [..]
189
193
[RUNNING] target[..]release[..]foo-[..]
190
194
thread '[..]' panicked at 'assertion failed: \
191
195
`(left == right)` (left: \
@@ -238,6 +242,7 @@ fn bench_with_lib_dep() {
238
242
assert_that ( p. cargo_process ( "bench" ) ,
239
243
execs ( ) . with_stderr ( & format ! ( "\
240
244
[COMPILING] foo v0.0.1 ({})
245
+ [FINISHED] release [optimized] target(s) in [..]
241
246
[RUNNING] target[..]release[..]baz-[..]
242
247
[RUNNING] target[..]release[..]foo-[..]" , p. url( ) ) )
243
248
. with_stdout ( "
@@ -301,6 +306,7 @@ fn bench_with_deep_lib_dep() {
301
306
. with_stderr ( & format ! ( "\
302
307
[COMPILING] foo v0.0.1 ([..])
303
308
[COMPILING] bar v0.0.1 ({dir})
309
+ [FINISHED] release [optimized] target(s) in [..]
304
310
[RUNNING] target[..]" , dir = p. url( ) ) )
305
311
. with_stdout ( "
306
312
running 1 test
@@ -346,6 +352,7 @@ fn external_bench_explicit() {
346
352
assert_that ( p. cargo_process ( "bench" ) ,
347
353
execs ( ) . with_stderr ( & format ! ( "\
348
354
[COMPILING] foo v0.0.1 ({})
355
+ [FINISHED] release [optimized] target(s) in [..]
349
356
[RUNNING] target[..]release[..]bench-[..]
350
357
[RUNNING] target[..]release[..]foo-[..]" , p. url( ) ) )
351
358
. with_stdout ( "
@@ -395,6 +402,7 @@ fn external_bench_implicit() {
395
402
assert_that ( p. cargo_process ( "bench" ) ,
396
403
execs ( ) . with_stderr ( & format ! ( "\
397
404
[COMPILING] foo v0.0.1 ({})
405
+ [FINISHED] release [optimized] target(s) in [..]
398
406
[RUNNING] target[..]release[..]external-[..]
399
407
[RUNNING] target[..]release[..]foo-[..]" , p. url( ) ) )
400
408
. with_stdout ( "
@@ -455,6 +463,7 @@ fn pass_through_command_line() {
455
463
execs ( ) . with_status ( 0 )
456
464
. with_stderr ( & format ! ( "\
457
465
[COMPILING] foo v0.0.1 ({dir})
466
+ [FINISHED] release [optimized] target(s) in [..]
458
467
[RUNNING] target[..]release[..]foo-[..]" , dir = p. url( ) ) )
459
468
. with_stdout ( "
460
469
running 1 test
@@ -466,7 +475,7 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
466
475
467
476
assert_that ( p. cargo ( "bench" ) . arg ( "foo" ) ,
468
477
execs ( ) . with_status ( 0 )
469
- . with_stderr ( "\
478
+ . with_stderr ( "[FINISHED] release [optimized] target(s) in [..]
470
479
[RUNNING] target[..]release[..]foo-[..]" )
471
480
. with_stdout ( "
472
481
running 1 test
@@ -536,6 +545,7 @@ fn lib_bin_same_name() {
536
545
assert_that ( p. cargo_process ( "bench" ) ,
537
546
execs ( ) . with_stderr ( & format ! ( "\
538
547
[COMPILING] foo v0.0.1 ({})
548
+ [FINISHED] release [optimized] target(s) in [..]
539
549
[RUNNING] target[..]release[..]foo-[..]
540
550
[RUNNING] target[..]release[..]foo-[..]" , p. url( ) ) )
541
551
. with_stdout ( "
@@ -589,6 +599,7 @@ fn lib_with_standard_name() {
589
599
execs ( ) . with_status ( 0 )
590
600
. with_stderr ( & format ! ( "\
591
601
[COMPILING] syntax v0.0.1 ({dir})
602
+ [FINISHED] release [optimized] target(s) in [..]
592
603
[RUNNING] target[..]release[..]bench-[..]
593
604
[RUNNING] target[..]release[..]syntax-[..]" , dir = p. url( ) ) )
594
605
. with_stdout ( "
@@ -640,6 +651,7 @@ fn lib_with_standard_name2() {
640
651
execs ( ) . with_status ( 0 )
641
652
. with_stderr ( & format ! ( "\
642
653
[COMPILING] syntax v0.0.1 ({dir})
654
+ [FINISHED] release [optimized] target(s) in [..]
643
655
[RUNNING] target[..]release[..]syntax-[..]" , dir = p. url( ) ) )
644
656
. with_stdout ( "
645
657
running 1 test
@@ -709,6 +721,7 @@ fn bench_dylib() {
709
721
[RUNNING] [..] -C opt-level=3 [..]
710
722
[RUNNING] [..] -C opt-level=3 [..]
711
723
[RUNNING] [..] -C opt-level=3 [..]
724
+ [FINISHED] release [optimized] target(s) in [..]
712
725
[RUNNING] [..]target[..]release[..]bench-[..]
713
726
[RUNNING] [..]target[..]release[..]foo-[..]" , dir = p. url( ) ) )
714
727
. with_stdout ( "
@@ -730,6 +743,7 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
730
743
. with_stderr ( & format ! ( "\
731
744
[FRESH] bar v0.0.1 ({dir}/bar)
732
745
[FRESH] foo v0.0.1 ({dir})
746
+ [FINISHED] release [optimized] target(s) in [..]
733
747
[RUNNING] [..]target[..]release[..]bench-[..]
734
748
[RUNNING] [..]target[..]release[..]foo-[..]" , dir = p. url( ) ) )
735
749
. with_stdout ( "
@@ -771,6 +785,7 @@ fn bench_twice_with_build_cmd() {
771
785
execs ( ) . with_status ( 0 )
772
786
. with_stderr ( & format ! ( "\
773
787
[COMPILING] foo v0.0.1 ({dir})
788
+ [FINISHED] release [optimized] target(s) in [..]
774
789
[RUNNING] target[..]release[..]foo-[..]" , dir = p. url( ) ) )
775
790
. with_stdout ( "
776
791
running 1 test
@@ -782,7 +797,7 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
782
797
783
798
assert_that ( p. cargo ( "bench" ) ,
784
799
execs ( ) . with_status ( 0 )
785
- . with_stderr ( "\
800
+ . with_stderr ( "[FINISHED] release [optimized] target(s) in [..]
786
801
[RUNNING] target[..]release[..]foo-[..]" )
787
802
. with_stdout ( "
788
803
running 1 test
@@ -855,6 +870,7 @@ fn bench_with_examples() {
855
870
[RUNNING] `rustc [..]`
856
871
[RUNNING] `rustc [..]`
857
872
[RUNNING] `rustc [..]`
873
+ [FINISHED] release [optimized] target(s) in [..]
858
874
[RUNNING] `{dir}[..]target[..]release[..]testb1-[..] --bench`
859
875
[RUNNING] `{dir}[..]target[..]release[..]testbench-[..] --bench`" ,
860
876
dir = p. root( ) . display( ) , url = p. url( ) ) )
@@ -903,6 +919,7 @@ fn test_a_bench() {
903
919
execs ( ) . with_status ( 0 )
904
920
. with_stderr ( "\
905
921
[COMPILING] foo v0.1.0 ([..])
922
+ [FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
906
923
[RUNNING] target[..]debug[..]b-[..]" )
907
924
. with_stdout ( "
908
925
running 1 test
@@ -940,6 +957,7 @@ fn test_bench_no_run() {
940
957
execs ( ) . with_status ( 0 )
941
958
. with_stderr ( "\
942
959
[COMPILING] foo v0.1.0 ([..])
960
+ [FINISHED] release [optimized] target(s) in [..]
943
961
" ) ) ;
944
962
}
945
963
0 commit comments