mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
Remove //tests symlink (#3849)
This commit is contained in:
parent
e8df66c12c
commit
f168597b7a
28 changed files with 121 additions and 116 deletions
|
@ -257,7 +257,7 @@ mod tests {
|
|||
DenoFlags::default(),
|
||||
None,
|
||||
"echo_test",
|
||||
"http://localhost:4545/tests/echo_server.ts",
|
||||
"http://localhost:4545/cli/tests/echo_server.ts",
|
||||
vec![],
|
||||
)
|
||||
.expect("Install failed");
|
||||
|
@ -274,11 +274,11 @@ mod tests {
|
|||
let expected_content = if cfg!(windows) {
|
||||
r#"% This executable is generated by Deno. Please don't modify it unless you know what it means. %
|
||||
@IF EXIST "%~dp0\deno.exe" (
|
||||
"%~dp0\deno.exe" "run" "http://localhost:4545/tests/echo_server.ts" %*
|
||||
"%~dp0\deno.exe" "run" "http://localhost:4545/cli/tests/echo_server.ts" %*
|
||||
) ELSE (
|
||||
@SETLOCAL
|
||||
@SET PATHEXT=%PATHEXT:;.TS;=;%
|
||||
"deno" "run" "http://localhost:4545/tests/echo_server.ts" %*
|
||||
"deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" %*
|
||||
)
|
||||
"#
|
||||
} else {
|
||||
|
@ -291,10 +291,10 @@ case \`uname\` in
|
|||
esac
|
||||
|
||||
if [ -x "$basedir/deno" ]; then
|
||||
"$basedir/deno" "run" "http://localhost:4545/tests/echo_server.ts" "$@"
|
||||
"$basedir/deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" "$@"
|
||||
ret=$?
|
||||
else
|
||||
"deno" "run" "http://localhost:4545/tests/echo_server.ts" "$@"
|
||||
"deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
|
@ -319,7 +319,7 @@ exit $ret
|
|||
DenoFlags::default(),
|
||||
Some(temp_dir.path().to_string_lossy().to_string()),
|
||||
"echo_test",
|
||||
"http://localhost:4545/tests/echo_server.ts",
|
||||
"http://localhost:4545/cli/tests/echo_server.ts",
|
||||
vec![],
|
||||
)
|
||||
.expect("Install failed");
|
||||
|
@ -335,11 +335,11 @@ exit $ret
|
|||
let expected_content = if cfg!(windows) {
|
||||
r#"% This executable is generated by Deno. Please don't modify it unless you know what it means. %
|
||||
@IF EXIST "%~dp0\deno.exe" (
|
||||
"%~dp0\deno.exe" "run" "http://localhost:4545/tests/echo_server.ts" %*
|
||||
"%~dp0\deno.exe" "run" "http://localhost:4545/cli/tests/echo_server.ts" %*
|
||||
) ELSE (
|
||||
@SETLOCAL
|
||||
@SET PATHEXT=%PATHEXT:;.TS;=;%
|
||||
"deno" "run" "http://localhost:4545/tests/echo_server.ts" %*
|
||||
"deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" %*
|
||||
)
|
||||
"#
|
||||
} else {
|
||||
|
@ -352,10 +352,10 @@ case \`uname\` in
|
|||
esac
|
||||
|
||||
if [ -x "$basedir/deno" ]; then
|
||||
"$basedir/deno" "run" "http://localhost:4545/tests/echo_server.ts" "$@"
|
||||
"$basedir/deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" "$@"
|
||||
ret=$?
|
||||
else
|
||||
"deno" "run" "http://localhost:4545/tests/echo_server.ts" "$@"
|
||||
"deno" "run" "http://localhost:4545/cli/tests/echo_server.ts" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
|
@ -377,7 +377,7 @@ exit $ret
|
|||
},
|
||||
Some(temp_dir.path().to_string_lossy().to_string()),
|
||||
"echo_test",
|
||||
"http://localhost:4545/tests/echo_server.ts",
|
||||
"http://localhost:4545/cli/tests/echo_server.ts",
|
||||
vec!["--foobar".to_string()],
|
||||
)
|
||||
.expect("Install failed");
|
||||
|
@ -393,11 +393,11 @@ exit $ret
|
|||
let expected_content = if cfg!(windows) {
|
||||
r#"% This executable is generated by Deno. Please don't modify it unless you know what it means. %
|
||||
@IF EXIST "%~dp0\deno.exe" (
|
||||
"%~dp0\deno.exe" "run" "--allow-read" "--allow-net" "http://localhost:4545/tests/echo_server.ts" "--foobar" %*
|
||||
"%~dp0\deno.exe" "run" "--allow-read" "--allow-net" "http://localhost:4545/cli/tests/echo_server.ts" "--foobar" %*
|
||||
) ELSE (
|
||||
@SETLOCAL
|
||||
@SET PATHEXT=%PATHEXT:;.TS;=;%
|
||||
"deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/tests/echo_server.ts" "--foobar" %*
|
||||
"deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/cli/tests/echo_server.ts" "--foobar" %*
|
||||
)
|
||||
"#
|
||||
} else {
|
||||
|
@ -410,10 +410,10 @@ case \`uname\` in
|
|||
esac
|
||||
|
||||
if [ -x "$basedir/deno" ]; then
|
||||
"$basedir/deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/tests/echo_server.ts" "--foobar" "$@"
|
||||
"$basedir/deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/cli/tests/echo_server.ts" "--foobar" "$@"
|
||||
ret=$?
|
||||
else
|
||||
"deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/tests/echo_server.ts" "--foobar" "$@"
|
||||
"deno" "run" "--allow-read" "--allow-net" "http://localhost:4545/cli/tests/echo_server.ts" "--foobar" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue