Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils/tests/file/all-tests.js
blob: 4730ec76fc251652295d258882c3ef7aa1bd0571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var assert = require("test/assert");
var fs = require("file");

exports.testRmtreeDoesNotFollowSymlinks = function () {
    var here = fs.path(module.path).dirname();
    if (here.join('foo').exists())
        here.join('foo').rmtree();
    try {
        here.join('foo', 'bar').mkdirs();
        here.join('foo', 'bar').symlink(here.join('foo', 'baz'));
        here.join('foo', 'baz').rmtree();
        assert.isTrue(here.join('foo', 'bar').exists());
    } finally {
        here.join('foo').rmtree();
    }
};

exports.testGlobStar = function () {
};

exports.testGlobQuestion = function () {
};

exports.testGlobStarStar = function () {
};

exports.testGlobDotDotDot = function () {
};

if (require.main === module.id)
    require("os").exit(require("test/runner").run(exports));