We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fd47c7 commit a9aa4adCopy full SHA for a9aa4ad
src/librustpkg/tests.rs
@@ -1047,6 +1047,18 @@ fn test_import_rustpkg() {
1047
os::EXE_SUFFIX))));
1048
}
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
+
1062
/// Returns true if p exists and is executable
1063
fn is_executable(p: &Path) -> bool {
1064
use std::libc::consts::os::posix88::{S_IXUSR};
0 commit comments