mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-08 22:06:22 +00:00
parent
5fd47c7aac
commit
a9aa4ad2a0
@ -1047,6 +1047,18 @@ fn test_import_rustpkg() {
|
|||||||
os::EXE_SUFFIX))));
|
os::EXE_SUFFIX))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_macro_pkg_script() {
|
||||||
|
let p_id = PkgId::new("foo");
|
||||||
|
let workspace = create_local_package(&p_id);
|
||||||
|
writeFile(&workspace.push("src").push("foo-0.1").push("pkg.rs"),
|
||||||
|
"extern mod rustpkg; fn main() { debug!(\"Hi\"); }");
|
||||||
|
command_line_test([~"build", ~"foo"], &workspace);
|
||||||
|
debug!("workspace = %s", workspace.to_str());
|
||||||
|
assert!(os::path_exists(&workspace.push("build").push("foo").push(fmt!("pkg%s",
|
||||||
|
os::EXE_SUFFIX))));
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns true if p exists and is executable
|
/// Returns true if p exists and is executable
|
||||||
fn is_executable(p: &Path) -> bool {
|
fn is_executable(p: &Path) -> bool {
|
||||||
use std::libc::consts::os::posix88::{S_IXUSR};
|
use std::libc::consts::os::posix88::{S_IXUSR};
|
||||||
|
Loading…
Reference in New Issue
Block a user