Permalink
Browse files

Add a script to download testdata.

Update .gitignore.
  • Loading branch information...
Andy Chu
Andy Chu committed Dec 1, 2017
1 parent 89c7e30 commit c0a87ec3f3235d0d44cd1dee193ce2258a6a4b06
Showing with 35 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +34 −0 benchmarks/runtime.sh
View
@@ -9,5 +9,6 @@ _devbuild
_deps
_release
libc.so
fastlex.so
# Python build support
build/temp.*
View
@@ -0,0 +1,34 @@
#!/bin/bash
#
# Usage:
# ./runtime.sh <function name>
set -o nounset
set -o pipefail
set -o errexit
# NOTE: Same list in oilshell.org/blob/run.sh.
files() {
cat <<EOF
tcc-0.9.26.tar.bz2
yash-2.46.tar.xz
ocaml-4.06.0.tar.xz
uftrace-0.8.1.tar.gz
EOF
}
readonly TAR_DIR=_tmp/benchmarks/runtime
download() {
files | xargs -n 1 -I {} --verbose -- \
wget --directory $TAR_DIR 'https://oilshell.org/blob/testdata/{}'
}
extract() {
time for f in $TAR_DIR/*z; do
tar -x --directory $TAR_DIR --file $f
done
ls -l $TAR_DIR
}
"$@"

0 comments on commit c0a87ec

Please sign in to comment.