aboutsummaryrefslogtreecommitdiff
path: root/test/mocha.js
blob: 411f52c51c53fd8ad2f665e6ecd88fb41a964731 (about) (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
var Mocha = require('mocha'),
    fs = require('fs'),
    path = require('path');

// Instantiate a Mocha instance.
var mocha = new Mocha({});

var testDir = __dirname + '/mocha/';

// Add each .js file to the mocha instance
fs.readdirSync(testDir).filter(function(file){
    // Only keep the .js files
    return file.substr(-3) === '.js';

}).forEach(function(file){
    mocha.addFile(
        path.join(testDir, file)
    );
});

module.exports = function() {
    mocha.run(function(failures) {
        if (failures !== 0) {
            process.on('exit', function () {
                process.exit(failures);
            });
        }
    });
};
nu: vlc: Update to 3.0.20...Andy Tai 2024-04-09Merge remote-tracking branch 'savannah/master' into mesa-updates...Christopher Baines 2024-04-03gnu: ffmpeg-jami: Apply patch adding pipewire support....Maxim Cournoyer 2024-04-03gnu: obs-vkcapture: Update to 1.5.0....John Kehayias 2024-03-10gnu: rav1e: Mark as tunable....Efraim Flashner 2024-03-08gnu: Add jellyfin-mpv-shim....Ian Eure 2024-02-20gnu: rav1e: Update to 0.7.1....Efraim Flashner 2024-02-20gnu: rav1e: Only build with nasm on some platforms....Efraim Flashner 2024-02-20gnu: dav1d: Update to 1.3.0....Efraim Flashner 2024-02-20gnu: libaom: Update to 3.8.0....Efraim Flashner 2024-02-16gnu: ani-cli: Update to 4.8....port19 2024-02-14gnu: celluloid: Update to 0.26....kiasoc5 2024-02-05gnu: mbedtls-apache: Rename to mbedtls-lts....Hilton Chain 2024-02-01gnu: mpv-mpris: Switch to gnu-build-system....Josselin Poiret 2024-01-22gnu: h264bitstream: Update to 0.2.0-1.ae72f73....Oleg Pykhalov 2024-01-21gnu: Add h264bitstream....Petr Hodina 2024-01-18gnu: mpv: Propagate most libraries....Maxim Cournoyer 2024-01-18gnu: libdvdnav: Propagate libdvdread....Maxim Cournoyer 2024-01-18gnu: libplacebo: Propagate lcms, shaderc and vulkan-loader....Maxim Cournoyer