File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1047,6 +1047,18 @@ fn test_import_rustpkg() {
1047
1047
os:: EXE_SUFFIX ) ) ) ) ;
1048
1048
}
1049
1049
1050
+ #[ test]
1051
+ fn test_macro_pkg_script ( ) {
1052
+ let p_id = PkgId :: new ( "foo" ) ;
1053
+ let workspace = create_local_package ( & p_id) ;
1054
+ writeFile ( & workspace. push ( "src" ) . push ( "foo-0.1" ) . push ( "pkg.rs" ) ,
1055
+ "extern mod rustpkg; fn main() { debug!(\" Hi\" ); }" ) ;
1056
+ command_line_test ( [ ~"build", ~"foo"] , & workspace) ;
1057
+ debug ! ( "workspace = %s" , workspace. to_str( ) ) ;
1058
+ assert ! ( os:: path_exists( & workspace. push( "build" ) . push( "foo" ) . push( fmt!( "pkg%s" ,
1059
+ os:: EXE_SUFFIX ) ) ) ) ;
1060
+ }
1061
+
1050
1062
/// Returns true if p exists and is executable
1051
1063
fn is_executable ( p : & Path ) -> bool {
1052
1064
use std:: libc:: consts:: os:: posix88:: { S_IXUSR } ;
You can’t perform that action at this time.
0 commit comments