aboutsummaryrefslogtreecommitdiff
path: root/test/ufuzz/job.js
blob: fff0e0448b78505c73e791ecc2ac0bf2a91dfdd7 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
var child_process = require("child_process");

var ping = 5 * 60 * 1000;
var period = +process.argv[2];
var endTime = Date.now() + period;
for (var i = 0; i < 2; i++) spawn(endTime);

function spawn(endTime) {
    var child = child_process.spawn("node", [
        "--max-old-space-size=2048",
        "test/ufuzz"
    ], {
        stdio: [ "ignore", "pipe", "pipe" ]
    }).on("exit", respawn);
    var stdout = "";
    child.stdout.on("data", function(data) {
        stdout += data;
    });
    var stderr = "";
    child.stderr.on("data", trap).pipe(process.stdout);
    var keepAlive = setInterval(function() {
        var end = stdout.lastIndexOf("\r");
        console.log(stdout.slice(stdout.lastIndexOf("\r", end - 1) + 1, end));
        stdout = stdout.slice(end + 1);
    }, ping);
    var timer = setTimeout(function() {
        clearInterval(keepAlive);
        child.removeListener("exit", respawn);
        child.kill();
    }, endTime - Date.now());

    function respawn() {
        console.log(stdout.replace(/[^\r\n]*\r/g, ""));
        clearInterval(keepAlive);
        clearTimeout(timer);
        spawn(endTime);
    }

    function trap(data) {
        stderr += data;
        if (~stderr.indexOf("\nminify(options):\n")) {
            process.exitCode = 1;
            child.stderr.removeListener("data", trap);
        }
    }
}
class='msg-tooltip'>* gnu/packages/guile.scm (guile-bzip2): New package. Change-Id: I450395f6699d4b622c8043c17a197c799255a9bb Timothy Sample 2024-02-02gnu: guile-next: Don't patch posix-spawn for the hurd....As the patch doesn't apply. * gnu/packages/guile.scm (guile-3.0)[arguments]: Remove 'patch-posix-spawn-usage' phase. Change-Id: I17f4878f7bbd74b71e559b16dc68ccf68c639987 Christopher Baines 2024-01-29gnu: guile-next: Update to commit fb1f5e2....* gnu/packages/guile.scm (guile-next): Update to commit fb1f5e2. Change-Id: Ia699bf7bf950b8780366146508eec566a738fb80 David Thompson 2023-11-28gnu: guile-next: Update to commit d8df317....* gnu/packages/guile.scm (guile-next): Update to commit d8df317. Change-Id: I80efe5221183f694f3e7ff85232dcce136a30ccb David Thompson 2023-10-13gnu: guile-next: Update to 3.0.9-0.79e836b....* gnu/packages/guile.scm (guile-next): Update to 3.0.9-0.79e836b. David Thompson 2023-09-01gnu: guile-next: Update to c2cba86....* gnu/packages/guile.scm (guile-next): Update to c2cba86. Janneke Nieuwenhuizen 2023-07-26gnu: Fix guile-for-guile-emacs builder....I think this broke in c4c08775a820868059b59c68d4dfd6be0c9d9010. * gnu/packages/guile.scm (guile-for-guile-emacs)[arguments]: Switch to gexp for phases. Christopher Baines 2023-07-20gnu: guile-2.0: Skip failing tests on the Hurd....* gnu/packages/guile.scm (guile-2.0)[arguments]: When building natively on the Hurd, add stage 'disable-threads.tests'... (guile-2.2): ...and when building natively on the Hurd, delete it again. Janneke Nieuwenhuizen 2023-07-20gnu: guile-git: Skip http proxy test on the Hurd....* gnu/packages/guile.scm (guile-git)[arguments]: When building natively on the Hurd, add phase 'skip-tests/hurd'. Janneke Nieuwenhuizen 2023-07-20gnu: guile: Skip hanging and failing pipe tests on the Hurd....* gnu/packages/guile.scm (guile-3.0)[arguments]: When building on the Hurd, add stage 'disable-popen.test-open-pipe' to avoid running the open-input-pipe test (hangs) and open-output-pipe test (fails. Janneke Nieuwenhuizen 2023-06-20gnu: guile-next: Update to 3.0.9-0.aa2cfe7....* gnu/packages/guile.scm (guile-next): Update to 3.0.9-0.aa2cfe7. Christopher Baines 2023-06-17gnu: Use target-hurd?, system-hurd? instead of hurd-target?, hurd-system?....* gnu/packages/hurd.scm (hurd-target?): Remove. (hurd-system?): Move to... * guix/utils.scm (system-hurd?): ...here. * gnu/packages/*: Update all users, removing (gnu packages hurd) include where now unused. Janneke Nieuwenhuizen