@@ -87,13 +87,15 @@ impl Config {
87
87
88
88
#[ cfg( test) ]
89
89
mod test {
90
- use super :: * ;
91
-
92
90
use std:: io:: Write as _;
93
91
92
+ use cargo_gpu_test_utils:: { overwrite_shader_cargo_toml, shader_crate_test_path} ;
93
+
94
+ use super :: * ;
95
+
94
96
#[ test_log:: test]
95
97
fn booleans_from_cli ( ) {
96
- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
98
+ let shader_crate_path = shader_crate_test_path ( ) ;
97
99
98
100
let args = Config :: clap_command_with_cargo_config (
99
101
& shader_crate_path,
@@ -111,8 +113,8 @@ mod test {
111
113
112
114
#[ test_log:: test]
113
115
fn booleans_from_cargo ( ) {
114
- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
115
- let mut file = crate :: test :: overwrite_shader_cargo_toml ( & shader_crate_path) ;
116
+ let shader_crate_path = shader_crate_test_path ( ) ;
117
+ let mut file = overwrite_shader_cargo_toml ( & shader_crate_path) ;
116
118
file. write_all (
117
119
[
118
120
"[package.metadata.rust-gpu.build]" ,
@@ -131,8 +133,8 @@ mod test {
131
133
}
132
134
133
135
fn update_cargo_output_dir ( ) -> std:: path:: PathBuf {
134
- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
135
- let mut file = crate :: test :: overwrite_shader_cargo_toml ( & shader_crate_path) ;
136
+ let shader_crate_path = shader_crate_test_path ( ) ;
137
+ let mut file = overwrite_shader_cargo_toml ( & shader_crate_path) ;
136
138
file. write_all (
137
139
[
138
140
"[package.metadata.rust-gpu.build]" ,
@@ -176,8 +178,8 @@ mod test {
176
178
177
179
#[ test_log:: test]
178
180
fn arrays_from_cargo ( ) {
179
- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
180
- let mut file = crate :: test :: overwrite_shader_cargo_toml ( & shader_crate_path) ;
181
+ let shader_crate_path = shader_crate_test_path ( ) ;
182
+ let mut file = overwrite_shader_cargo_toml ( & shader_crate_path) ;
181
183
file. write_all (
182
184
[
183
185
"[package.metadata.rust-gpu.build]" ,
@@ -200,7 +202,7 @@ mod test {
200
202
201
203
#[ test_log:: test]
202
204
fn rename_manifest_parse ( ) {
203
- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
205
+ let shader_crate_path = shader_crate_test_path ( ) ;
204
206
205
207
let args = Config :: clap_command_with_cargo_config (
206
208
& shader_crate_path,
0 commit comments