Lines Matching +full:no +full:- +full:console
17 // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
63 fs.mkdirSync(path.join(targetsAbsDir, 'nested-index'));
64 fs.mkdirSync(path.join(targetsAbsDir, 'nested-index', 'one'));
65 fs.mkdirSync(path.join(targetsAbsDir, 'nested-index', 'two'));
83 // sub-tests:
101 console.log('test_simple_relative_symlink');
103 common.printSkipMessage('symlink test (no privs)');
112 console.log('fs.symlinkSync(%j, %j, %j)', t[1], t[0], 'file');
124 console.log('test_simple_absolute_symlink');
130 console.log('using type=%s', type);
133 const expected = fixtures.path('nested-index', 'one');
138 console.error('fs.symlinkSync(%j, %j, %j)', t[1], t[0], type);
150 console.log('test_deep_relative_file_symlink');
152 common.printSkipMessage('symlink test (no privs)');
158 .relative(path.join(targetsAbsDir, 'nested-index', 'one'),
161 'nested-index', 'one', 'symlink1.js');
167 'nested-index', 'two', 'symlink1-b.js');
180 console.log('test_deep_relative_dir_symlink');
182 common.printSkipMessage('symlink test (no privs)');
186 const path1b = path.join(targetsAbsDir, 'nested-index', 'one');
187 const linkPath1b = path.join(path1b, 'symlink1-dir');
192 const linkData2b = '../one/symlink1-dir';
194 'nested-index', 'two', 'symlink12-dir');
208 console.log('test_cyclic_link_protection');
210 common.printSkipMessage('symlink test (no privs)');
213 const entry = path.join(tmpDir, '/cycles/realpath-3a');
215 [entry, '../cycles/realpath-3b'],
216 [path.join(tmpDir, '/cycles/realpath-3b'), '../cycles/realpath-3c'],
217 [path.join(tmpDir, '/cycles/realpath-3c'), '../cycles/realpath-3a'],
235 console.log('test_cyclic_link_overprotection');
237 common.printSkipMessage('symlink test (no privs)');
256 console.log('test_relative_input_cwd');
258 common.printSkipMessage('symlink test (no privs)');
265 path.join(`${tmpDir}/cycles/realpath-3a`));
268 [entry, '../cycles/realpath-3b'],
269 [`${tmpDir}/cycles/realpath-3b`, '../cycles/realpath-3c'],
270 [`${tmpDir}/cycles/realpath-3c`, 'root.js'],
273 console.error('fn=%j', fn);
277 console.log('fs.symlinkSync(%j, %j, %j)', t[1], fn, type);
293 console.log('test_deep_symlink_mix');
297 common.printSkipMessage('symlink test (no privs)');
301 // /tmp/node-test-realpath-f1 -> $tmpDir/node-test-realpath-d1/foo
302 // /tmp/node-test-realpath-d1 -> $tmpDir/node-test-realpath-d2
303 // /tmp/node-test-realpath-d2/foo -> $tmpDir/node-test-realpath-f2
304 // /tmp/node-test-realpath-f2
305 // -> $tmpDir/targets/nested-index/one/realpath-c
306 // $tmpDir/targets/nested-index/one/realpath-c
307 // -> $tmpDir/targets/nested-index/two/realpath-c
308 // $tmpDir/targets/nested-index/two/realpath-c -> $tmpDir/cycles/root.js
311 const entry = tmp('node-test-realpath-f1');
312 try { fs.unlinkSync(tmp('node-test-realpath-d2/foo')); } catch {}
313 try { fs.rmdirSync(tmp('node-test-realpath-d2')); } catch {}
314 fs.mkdirSync(tmp('node-test-realpath-d2'), 0o700);
317 [entry, `${tmpDir}/node-test-realpath-d1/foo`],
318 [tmp('node-test-realpath-d1'),
319 `${tmpDir}/node-test-realpath-d2`],
320 [tmp('node-test-realpath-d2/foo'), '../node-test-realpath-f2'],
321 [tmp('node-test-realpath-f2'),
322 `${targetsAbsDir}/nested-index/one/realpath-c`],
323 [`${targetsAbsDir}/nested-index/one/realpath-c`,
324 `${targetsAbsDir}/nested-index/two/realpath-c`],
325 [`${targetsAbsDir}/nested-index/two/realpath-c`,
333 unlink.push(tmp('node-test-realpath-d2'));
344 console.log('test_non_symlinks');
360 console.log('test_escape_cwd');
369 console.log('test_upone_actual');
377 // `-- a/
378 // |-- b/
379 // | `-- e -> ..
380 // `-- d -> ..
383 console.error('test_up_multiple');
385 common.printSkipMessage('symlink test (no privs)');
420 // `-- a/
421 // |-- b/
422 // | `-- e -> ..
423 // `-- d -> ..
426 console.error('test_up_multiple');
428 common.printSkipMessage('symlink test (no privs)');
462 // `-- a/
463 // |-- b/
464 // | `-- c/
465 // | `-- x.txt
466 // `-- link -> /tmp/node-test-realpath-abs-kids/a/b/
469 console.log('test_abs_with_kids');
475 console.log('using type=%s', type);
477 const root = `${tmpAbsDir}/node-test-realpath-abs-kids`;
500 console.log(`mkdir ${root}${folder}`);
510 // console.log({link:linkPath,expect:expectPath,actual:actual},'sync');
513 // console.log({link:linkPath,expect:expectPath,actual:actual},'async');
536 // ----------------------------------------------------------------------------
564 return console.log(`${numtests} subtests completed OK for fs.realpath`);
581 fs.writeFileSync(tmp('cycles/root.js'), "console.error('roooot!');");
582 console.error('start tests');