var http = require('http'),
    url  = require('url'),
    path = require('path'),
    fs   = require('fs');

http.createServer(function(request, response) {
    var uri      = url.parse(request.url).pathname,
        filename = path.join(process.cwd(), uri);

    fs.readFile(filename, 'binary', function(err, file) {
        if (err) {
            response.writeHead(500, { 'Content-Type': 'text/plain' });
            response.write(err + '\n');
            response.end();
            return;
        }

        response.writeHead(200);
        response.write(file, 'utf-8');
        response.end();
    });
}).listen(8124, '0.0.0.0');

console.log('Test suite at http://0.0.0.0:8124/test.html');