haskell-te: e45666fd71e1ffbb5931afbf2bc2c19e58b248b8

     1: { bash, fail, filterToSampled, genQuickspecRunner, jq, runCommand,
     2:   sampleAnalyser, testData, tipBenchmarks }:
     3: 
     4: { rep, size }:
     5:   with rec {
     6:     REP        = toString rep;
     7:     SIZE       = toString size;
     8:     sampleFile = runCommand "sample-${SIZE}-${REP}"
     9:       {
    10:         inherit REP SIZE;
    11:         buildInputs = [ tipBenchmarks.tools ];
    12:       }
    13:       ''
    14:         #!${bash}/bin/bash
    15:         set -e
    16:         choose_sample "$SIZE" "$REP" > "$out"
    17:       '';
    18:   };
    19:   {
    20:     inherit sampleFile;
    21: 
    22:     runner = runCommand "quickspec-tip-runner-${SIZE}-${REP}"
    23:       {
    24:         inherit sampleFile;
    25:         asts        = testData.tip-benchmark.asts;
    26:         dir         = testData.tip-benchmark.nixed;
    27:         buildInputs = [ filterToSampled genQuickspecRunner jq ];
    28:       }
    29:       ''
    30:         #!${bash}/bin/bash
    31:         set -e
    32:         set -o pipefail
    33: 
    34:         SAMPLE=$(cat "$sampleFile")
    35:         export SAMPLE
    36: 
    37:         OUT_DIRS=$(jq -n '[env | .dir]')
    38:         export OUT_DIRS
    39: 
    40:         R=$(filterToSampled < "$asts" | genQuickspecRunner)
    41:         cp "$R" "$out"
    42:       '';
    43: 
    44:     analyser = sampleAnalyser { inherit REP SIZE sampleFile; };
    45:   }

Generated by git2html.