From 4b4b19c8dfee5b2dbaab0ff679921ed4fb3d8c56 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Wed, 2 Sep 2015 19:36:16 +0300 Subject: [PATCH] Make it possible to specify the python executable Use a PYTHON variable to specify which python executablet to use when testing. Example: make test PYTHON=/usr/bin/python --- tests/Makefile | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 2a98d87..864484d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,5 @@ MM ?= ../src/xdgmenumaker +PYTHON ?= python test: clean generate @for i in `ls menus_correct/`; do \ @@ -11,29 +12,29 @@ test: clean generate generate: mkdir -p menus_test XDGMENUMAKER_TEST=1 LANG=en_US.utf8 \ - $(MM) -f fluxbox > menus_test/fluxbox_en + $(PYTHON) $(MM) -f fluxbox > menus_test/fluxbox_en XDGMENUMAKER_TEST=1 LANG=en_US.utf8 \ - $(MM) -f fluxbox -i > menus_test/fluxbox_icons_en + $(PYTHON) $(MM) -f fluxbox -i > menus_test/fluxbox_icons_en XDGMENUMAKER_TEST=1 LANG=en_US.utf8 \ - $(MM) -f fluxbox -i -s 48 > menus_test/fluxbox_icons48_en + $(PYTHON) $(MM) -f fluxbox -i -s 48 > menus_test/fluxbox_icons48_en XDGMENUMAKER_TEST=1 LANG=el_GR.utf8 \ - $(MM) -f fluxbox > menus_test/fluxbox_el + $(PYTHON) $(MM) -f fluxbox > menus_test/fluxbox_el XDGMENUMAKER_TEST=1 LANG=en_US.utf8 \ - $(MM) -f fluxbox -n > menus_test/fluxbox_nosubmenu_en + $(PYTHON) $(MM) -f fluxbox -n > menus_test/fluxbox_nosubmenu_en XDGMENUMAKER_TEST=1 LANG=en_US.utf8 \ - $(MM) -f icewm > menus_test/icewm_en + $(PYTHON) $(MM) -f icewm > menus_test/icewm_en XDGMENUMAKER_TEST=1 LANG=de_DE.utf8 \ - $(MM) -f icewm > menus_test/icewm_de + $(PYTHON) $(MM) -f icewm > menus_test/icewm_de XDGMENUMAKER_TEST=1 LANG=en_US.utf8 \ - $(MM) -f jwm > menus_test/jwm_en + $(PYTHON) $(MM) -f jwm > menus_test/jwm_en XDGMENUMAKER_TEST=1 LANG=fr_FR.utf8 \ - $(MM) -f jwm > menus_test/jwm_fr + $(PYTHON) $(MM) -f jwm > menus_test/jwm_fr XDGMENUMAKER_TEST=1 LANG=en_US.utf8 \ - $(MM) -f pekwm > menus_test/pekwm_en + $(PYTHON) $(MM) -f pekwm > menus_test/pekwm_en XDGMENUMAKER_TEST=1 LANG=en_US.utf8 \ - $(MM) -f pekwm --pekwm-dynamic > menus_test/pekwm_dynamic_en + $(PYTHON) $(MM) -f pekwm --pekwm-dynamic > menus_test/pekwm_dynamic_en XDGMENUMAKER_TEST=1 LANG=en_US.utf8 \ - $(MM) -f windowmaker > menus_test/windowmaker_en + $(PYTHON) $(MM) -f windowmaker > menus_test/windowmaker_en clean: rm -rf menus_test