Skip to content

Commit

Permalink
[refactor] Rename test/count-procs -> test/syscall
Browse files Browse the repository at this point in the history
Addresses issue #254.
  • Loading branch information
Andy Chu committed Mar 27, 2020
1 parent 49dc6da commit 282ea42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
File renamed without changes.
13 changes: 8 additions & 5 deletions test/count-procs.sh → test/syscall.sh
@@ -1,7 +1,9 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Measure the number of syscalls that shells use.
#
# Usage:
# ./count-procs.sh <function name>
# test/syscall.sh <function name>

set -o nounset
set -o pipefail
Expand Down Expand Up @@ -148,18 +150,19 @@ run-cases() {
}

print-table() {
PYTHONPATH=. test/count_procs.py "$@"
PYTHONPATH=. test/syscall.py "$@"
}

summarize() {
cat $BASE_DIR/counts.txt \
| print-table $BASE_DIR/cases.txt | tee $BASE_DIR/table.txt
| print-table $BASE_DIR/cases.txt \
| tee $BASE_DIR/table.txt
}

# TODO:
# - assert failures
# - clean up output -- spaces not tabs for numbers
# - publish to 'toil'
# - add 'run-for-release' function


"$@"

0 comments on commit 282ea42

Please sign in to comment.