Testsuite: when running Octave, use --no-window-system option rather than forcing gnuplot toolkit
In practice --no-window-system currently implies the gnuplot toolkit with dumb terminal, but it is cleaner this way.trustregion
parent
f52ce51168
commit
63bcd2558e
|
@ -1435,7 +1435,7 @@ check-matlab-ols: $(M_OLS_TRS_FILES)
|
||||||
%.o.trs %.o.log: %.mod
|
%.o.trs %.o.log: %.mod
|
||||||
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$*... `tput sgr0`"
|
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$*... `tput sgr0`"
|
||||||
@DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(CURDIR)" FILESTEM="$*" \
|
@DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(CURDIR)" FILESTEM="$*" \
|
||||||
$(OCTAVE) --no-init-file --silent --no-history --path "$*.mod" run_test_octave.m > $*.o.log 2>&1 || \
|
$(OCTAVE) --no-window-system --no-init-file --silent --no-history --path "$*.mod" run_test_octave.m > $*.o.log 2>&1 || \
|
||||||
printf ":test-result: FAIL\n:number-tests: 1\n:number-failed-tests: 1\n:list-of-failed-tests: $*.mod\n:elapsed-time: 0.0\n" > $*.o.trs
|
printf ":test-result: FAIL\n:number-tests: 1\n:number-failed-tests: 1\n:list-of-failed-tests: $*.mod\n:elapsed-time: 0.0\n" > $*.o.trs
|
||||||
@if test -z "$(filter $*.o.trs,$(O_XFAIL_TRS_FILES))"; then pass_color=2; fail_color=1; else pass_color=1; fail_color=2; fi; \
|
@if test -z "$(filter $*.o.trs,$(O_XFAIL_TRS_FILES))"; then pass_color=2; fail_color=1; else pass_color=1; fail_color=2; fi; \
|
||||||
if grep -q ":test-result: PASS" $*.o.trs; then \
|
if grep -q ":test-result: PASS" $*.o.trs; then \
|
||||||
|
@ -1450,7 +1450,7 @@ check-matlab-ols: $(M_OLS_TRS_FILES)
|
||||||
%.o.trs %.o.log : %.m
|
%.o.trs %.o.log : %.m
|
||||||
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$*... `tput sgr0`"
|
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$*... `tput sgr0`"
|
||||||
@DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(CURDIR)" \
|
@DYNARE_VERSION="$(PACKAGE_VERSION)" TOP_TEST_DIR="$(CURDIR)" \
|
||||||
$(OCTAVE) --no-init-file --silent --no-history $< > $*.o.log 2>&1 || \
|
$(OCTAVE) --no-window-system --no-init-file --silent --no-history $< > $*.o.log 2>&1 || \
|
||||||
printf ":test-result: FAIL\n:number-tests: 1\n:number-failed-tests: 1\n:list-of-failed-tests: $*.m\n:elapsed-time: 0.0\n" > $*.o.trs
|
printf ":test-result: FAIL\n:number-tests: 1\n:number-failed-tests: 1\n:list-of-failed-tests: $*.m\n:elapsed-time: 0.0\n" > $*.o.trs
|
||||||
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$* Done!`tput sgr0`"
|
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$* Done!`tput sgr0`"
|
||||||
|
|
||||||
|
@ -1464,7 +1464,7 @@ check-matlab-ols: $(M_OLS_TRS_FILES)
|
||||||
%.o.tls : %.m
|
%.o.tls : %.m
|
||||||
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$*... `tput sgr0`"
|
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$*... `tput sgr0`"
|
||||||
@TOP_TEST_DIR="$(CURDIR)" FILESTEM="$*" \
|
@TOP_TEST_DIR="$(CURDIR)" FILESTEM="$*" \
|
||||||
$(OCTAVE) --no-init-file --silent --no-history run_o_script.m 2>&1
|
$(OCTAVE) --no-window-system --no-init-file --silent --no-history run_o_script.m 2>&1
|
||||||
@touch $*.o.tls
|
@touch $*.o.tls
|
||||||
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$* Done!`tput sgr0`"
|
@echo "`tput bold``tput setaf 8`OCTAVE: $(CURDIR)/$* Done!`tput sgr0`"
|
||||||
|
|
||||||
|
|
|
@ -30,11 +30,6 @@ if !strcmp(dynare_version(), getenv("DYNARE_VERSION"))
|
||||||
error("Incorrect version of Dynare is being tested")
|
error("Incorrect version of Dynare is being tested")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## Ask gnuplot to create graphics in text mode
|
|
||||||
## Note that setenv() was introduced in Octave 3.0.2, for compatibility
|
|
||||||
## with MATLAB
|
|
||||||
putenv("GNUTERM", "dumb")
|
|
||||||
|
|
||||||
## Test block_bytecode/ls2003.mod with various combinations of
|
## Test block_bytecode/ls2003.mod with various combinations of
|
||||||
## block/bytecode/solve_algo/stack_solve_algo
|
## block/bytecode/solve_algo/stack_solve_algo
|
||||||
failedBlock = {};
|
failedBlock = {};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## Copyright (C) 2013-2019 Dynare Team
|
## Copyright (C) 2013-2022 Dynare Team
|
||||||
##
|
##
|
||||||
## This file is part of Dynare.
|
## This file is part of Dynare.
|
||||||
##
|
##
|
||||||
|
@ -25,11 +25,6 @@ if !strcmp(dynare_version(), getenv("DYNARE_VERSION"))
|
||||||
error("Incorrect version of Dynare is being tested")
|
error("Incorrect version of Dynare is being tested")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## Ask gnuplot to create graphics in text mode
|
|
||||||
## Note that setenv() was introduced in Octave 3.0.2, for compatibility
|
|
||||||
## with MATLAB
|
|
||||||
putenv("GNUTERM", "dumb")
|
|
||||||
|
|
||||||
## To add default directories, empty dseries objects
|
## To add default directories, empty dseries objects
|
||||||
dynare_config();
|
dynare_config();
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
## Copyright (C) 2009-2017 Dynare Team
|
## Copyright (C) 2009-2022 Dynare Team
|
||||||
##
|
##
|
||||||
## This file is part of Dynare.
|
## This file is part of Dynare.
|
||||||
##
|
##
|
||||||
|
@ -32,10 +32,6 @@ if !strcmp(dynare_version(), getenv("DYNARE_VERSION"))
|
||||||
error("Incorrect version of Dynare is being tested")
|
error("Incorrect version of Dynare is being tested")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## Ask gnuplot to create graphics in text mode
|
|
||||||
graphics_toolkit gnuplot;
|
|
||||||
setenv("GNUTERM", "dumb");
|
|
||||||
|
|
||||||
## Test MOD files listed in Makefile.am
|
## Test MOD files listed in Makefile.am
|
||||||
name = getenv("FILESTEM");
|
name = getenv("FILESTEM");
|
||||||
[directory, testfile, ext] = fileparts([top_test_dir '/' name]);
|
[directory, testfile, ext] = fileparts([top_test_dir '/' name]);
|
||||||
|
|
Loading…
Reference in New Issue