Skip to content

Commit ada5d5e

Browse files
committed
Use test.nix for running test-statistics.sh
1 parent bc08b55 commit ada5d5e

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

nix/shell.performance.nix

Lines changed: 0 additions & 9 deletions
This file was deleted.

scripts/join-statistics.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env nix-shell
2-
#!nix-shell ../nix/shell.performance.nix -i bash
2+
#!nix-shell ../test.nix -i bash
33

44
old=${1:?}; shift
55
new=${1:?}; shift

test.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ in
99

1010
let
1111
inherit (pkgs) stdenv lib;
12-
inherit (pkgs) bison diffutils ncurses z3;
12+
inherit (pkgs) bison diffutils jq miller ncurses z3;
1313

1414
ttuegel =
1515
let
@@ -44,6 +44,7 @@ stdenv.mkDerivation {
4444
buildInputs = [
4545
k kore # some tests use kore-exec directly, others run through the frontend
4646
ncurses # TODO: .../lib/kframework/setenv: line 31: tput: command not found
47+
jq miller # processing test statistics
4748
z3
4849
];
4950
configurePhase = ''

test/regression-evm/test-statistics.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env nix-shell
2-
#!nix-shell ../../nix/shell.performance.nix -i bash
2+
#!nix-shell ../../test.nix -i bash
33

44
set -xeou pipefail
55

@@ -16,7 +16,7 @@ tests=(add0 branching-invalid branching-no-invalid pop1 straight-line-no-invalid
1616
echo "name,allocated_bytes,max_live_bytes" >"$out"
1717
for each in "${tests[@]}"
1818
do
19-
./test-${each}.sh --rts-statistics "$each.json" >/dev/null 2>&1
19+
./test-${each}.sh --rts-statistics "$each.json" >/dev/null
2020
echo "\"$each\",$(jq -r .allocated_bytes <"$each.json" ),$(jq -r .max_live_bytes <"$each.json" )" >>"$out"
2121
rm "$each.json"
2222
done

0 commit comments

Comments
 (0)