File tree Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -225,8 +225,8 @@ See `cargo codspeed build --help` for more information.");
225225 "-Cstrip=none" . to_owned( ) ,
226226 ] ;
227227
228- // Add the codspeed cfg flag if instrumentation mode is enabled
229- if measurement_mode == MeasurementMode :: Instrumentation {
228+ // Add the codspeed cfg flag if simulation mode is enabled
229+ if measurement_mode == MeasurementMode :: Simulation {
230230 flags. push ( "--cfg=codspeed" . to_owned ( ) ) ;
231231 }
232232
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ use std::fmt;
66#[ serde( rename_all = "lowercase" ) ]
77pub enum MeasurementMode {
88 #[ default]
9- Instrumentation ,
9+ #[ value( alias = "instrumentation" ) ]
10+ Simulation ,
1011 Walltime ,
1112}
1213
@@ -16,7 +17,7 @@ impl fmt::Display for MeasurementMode {
1617 f,
1718 "{}" ,
1819 match self {
19- MeasurementMode :: Instrumentation => "instrumentation " ,
20+ MeasurementMode :: Simulation => "simulation " ,
2021 MeasurementMode :: Walltime => "walltime" ,
2122 }
2223 )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn test_simple_run_without_build() {
1313 . arg ( "run" )
1414 . assert ( )
1515 . failure ( )
16- . stderr ( contains ( "Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation ` first." ) ) ;
16+ . stderr ( contains ( "Error: No benchmarks found for the simulation mode. Run `cargo codspeed build -m simulation ` first." ) ) ;
1717 teardown ( dir) ;
1818}
1919
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ fn test_criterion_run_without_build() {
1515 . arg ( "run" )
1616 . assert ( )
1717 . failure ( )
18- . stderr ( contains ( "Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation ` first." ) ) ;
18+ . stderr ( contains ( "Error: No benchmarks found for the simulation mode. Run `cargo codspeed build -m simulation ` first." ) ) ;
1919 teardown ( dir) ;
2020}
2121
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ fn test_divan_run_without_build() {
1515 . arg ( "run" )
1616 . assert ( )
1717 . failure ( )
18- . stderr ( contains ( "Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation ` first." ) ) ;
18+ . stderr ( contains ( "Error: No benchmarks found for the simulation mode. Run `cargo codspeed build -m simulation ` first." ) ) ;
1919 teardown ( dir) ;
2020}
2121
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn test_workspace_run_without_build() {
1212 . arg ( "run" )
1313 . assert ( )
1414 . failure ( )
15- . stderr ( contains ( "Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation ` first." ) ) ;
15+ . stderr ( contains ( "Error: No benchmarks found for the simulation mode. Run `cargo codspeed build -m simulation ` first." ) ) ;
1616 teardown ( dir) ;
1717}
1818
@@ -62,7 +62,7 @@ fn test_workspace_build_subpackage_and_run_other() {
6262 . args ( [ "--package" , "package-b" ] )
6363 . assert ( )
6464 . failure ( )
65- . stderr ( contains ( "Error: No benchmarks found for the instrumentation mode. Run `cargo codspeed build -m instrumentation ` first." ) ) ;
65+ . stderr ( contains ( "Error: No benchmarks found for the simulation mode. Run `cargo codspeed build -m simulation ` first." ) ) ;
6666 teardown ( dir) ;
6767}
6868
You can’t perform that action at this time.
0 commit comments