Permalink
Browse files

Use the compiled version when running benchmarks.

Unfortunately, this doesn't fix yash's /proc/self/exe problem.  But
busybox doesn't support it either, so I'm leaving it for now.
  • Loading branch information...
Andy Chu
Andy Chu committed Dec 2, 2017
1 parent 21c675f commit 90296b69b2c48aea62d42b3dc679bd338ca8fcd3
Showing with 22 additions and 1 deletion.
  1. +22 −1 benchmarks/runtime.sh
View
@@ -24,7 +24,10 @@ EOF
}
readonly TAR_DIR=$PWD/_tmp/benchmarks/runtime
readonly OSH=$PWD/bin/osh
# Use the compiled version. Otherwise /proc/self/exe is the Python
# interpreter, which matters for yash's configure script!
readonly OSH=$PWD/_bin/osh
download() {
files | xargs -n 1 -I {} --verbose -- \
@@ -99,4 +102,22 @@ qemu-old() {
configure-and-copy ~/src/qemu-1.6.0 $OSH $out_dir
}
# This doesn't work for ash either, because it uses the busybox pattern. It
# says "exe: applet not found". I guess yash doesn't configure under ash!
self-exe() {
set +o errexit
dash <<EOF
/proc/self/exe -V
EOF
echo
_bin/osh <<EOF
/proc/self/exe -V
EOF
_tmp/shells/ash <<EOF
/proc/self/exe -V
EOF
}
"$@"

0 comments on commit 90296b6

Please sign in to comment.