Skip to content

Commit

Permalink
Use $(PYTHON) to run benchtests python files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos O'Donell committed Jan 13, 2016
1 parent e42ce0f commit 67fc563
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2016-01-13 Carlos O'Donell <carlos@redhat.com>

* benchtests/Makefile (PYTHON): Define.
(bench-func): Use $(PYTHON) to run python scripts.
($(objpfx)bench-%.c): Likewise.

2016-01-13 Flavio Cruz <flaviocruz@gmail.com>

* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
Expand Down
7 changes: 4 additions & 3 deletions benchtests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
# License along with the GNU C Library; if not, see
# <http://www.gnu.org/licenses/>.


# Makefile for benchmark tests. The only useful target here is `bench`.
# Add benchmark functions in alphabetical order.

PYTHON := python

subdir := benchtests

include ../Makeconfig
Expand Down Expand Up @@ -164,7 +165,7 @@ bench-func: $(binaries-bench)
mv -f $(objpfx)bench.out $(objpfx)bench.out.old; \
fi; \
mv -f $(objpfx)bench.out-tmp $(objpfx)bench.out
scripts/validate_benchout.py $(objpfx)bench.out \
$(PYTHON) scripts/validate_benchout.py $(objpfx)bench.out \
scripts/benchout.schema.json

$(timing-type) $(binaries-bench) $(binaries-benchset) \
Expand All @@ -177,5 +178,5 @@ $(objpfx)bench-%.c: %-inputs $(bench-deps)
{ if [ -n "$($*-INCLUDE)" ]; then \
cat $($*-INCLUDE); \
fi; \
scripts/bench.py $(patsubst %-inputs,%,$<); } > $@-tmp
$(PYTHON) scripts/bench.py $(patsubst %-inputs,%,$<); } > $@-tmp
mv -f $@-tmp $@

0 comments on commit 67fc563

Please sign in to comment.