Re: [O] 2 Org tests failing
Achim Gratz wrote: Sebastien Vauban writes: I've solved the reported problem by creating the missing TMPDIR (set to /tmp/org_test) for the invocation from my Zsh (Cygwin) terminal... The first thing the build system does before testing is install -m 755 -d /tmp/tmp-orgtest so you either pick up the wrong install command via path or have otherwise misconfigured MKDIR in local.mk. No, I was using my own function: --8---cut here---start-8--- org_test () { ( cd $HOME/Public/Repositories/org-mode; TMPDIR=/tmp/org_test emacs -Q --batch -L lisp/ -L testing/ -l org-test.el --eval '(setq org-confirm-babel-evaluate nil)' -f org-test-run-batch-tests ) } --8---cut here---end---8--- I just ran `make test' and got the same error for `ob-shell/bash-uses-assoc-arrays'. BTW, how can I avoid compiling the source directory before launching the tests? I prefer having only .el files, as I was mistaken multiple times when trying to understand executions of code I modified. Best regards, Seb -- Sebastien Vauban
Re: [O] 2 Org tests failing
Sebastien Vauban wrote: I just ran `make test' and got the same error for `ob-shell/bash-uses-assoc-arrays'. Now that I updated to Org-mode version 8.2.7 (release_8.2.7-1114-g6c2838), I have an extra test failing: --8---cut here---start-8--- Test test-org-element/headline-properties backtrace: signal(ert-test-failed (((should-not (org-test-with-temp-text * Hea ert-fail(((should-not (org-test-with-temp-text * Headline\n#+BEGIN_ (if (not (unwind-protect (setq value-1904 (let ((inside-text (if ... (let (form-description-1905) (if (not (unwind-protect (setq value-19 (let ((value-1904 (ert--gensym ert-form-evaluation-aborted-))) (le (lambda nil (let ((value-1900 (ert--gensym ert-form-evaluation-abor byte-code(\306\307!q\210\310\216\311 \312\216\313\314\315\316\3 ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc byte-code(\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3 ert-run-test([cl-struct-ert-test test-org-element/headline-propertie ert-run-or-rerun-test([cl-struct-ert--stats \\(org\\|ob\\) [[cl-st ert-run-tests(\\(org\\|ob\\) #[(event-type rest event-args) \306 ert-run-tests-batch(\\(org\\|ob\\)) ert-run-tests-batch-and-exit(\\(org\\|ob\\)) (let ((org-id-track-globally t) (org-test-selector (if org-test-sele org-test-run-batch-tests() call-interactively(org-test-run-batch-tests nil nil) command-execute(org-test-run-batch-tests) command-line-1((-L lisp/ -L testing/ -l org-test.el --e command-line() normal-top-level() Test test-org-element/headline-properties condition: (ert-test-failed ((should-not (org-test-with-temp-text * Headline\n#+BEGIN_EXAMPLE\n:PROPERTIES:\n:foo: bar\n:END:\n#+END_EXAMPLE (org-element-property :FOO ...))) :form (let ((inside-text ...)) (with-temp-buffer (org-mode) (let ... ...) (org-element-property :FOO ...))) :value bar)) FAILED 169/427 test-org-element/headline-properties --8---cut here---end---8--- Best regards, Seb -- Sebastien Vauban
Re: [O] 2 Org tests failing
Sebastien Vauban wrote: Sebastien Vauban wrote: I just ran `make test' and got the same error for `ob-shell/bash-uses-assoc-arrays'. Now that I updated to Org-mode version 8.2.7 (release_8.2.7-1114-g6c2838), I have an extra test failing: Test test-org-element/headline-properties backtrace: signal(ert-test-failed (((should-not (org-test-with-temp-text * Hea ert-fail(((should-not (org-test-with-temp-text * Headline\n#+BEGIN_ (if (not (unwind-protect (setq value-1904 (let ((inside-text (if ... (let (form-description-1905) (if (not (unwind-protect (setq value-19 (let ((value-1904 (ert--gensym ert-form-evaluation-aborted-))) (le (lambda nil (let ((value-1900 (ert--gensym ert-form-evaluation-abor byte-code(\306\307!q\210\310\216\311 \312\216\313\314\315\316\3 ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc byte-code(\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3 ert-run-test([cl-struct-ert-test test-org-element/headline-propertie ert-run-or-rerun-test([cl-struct-ert--stats \\(org\\|ob\\) [[cl-st ert-run-tests(\\(org\\|ob\\) #[(event-type rest event-args) \306 ert-run-tests-batch(\\(org\\|ob\\)) ert-run-tests-batch-and-exit(\\(org\\|ob\\)) (let ((org-id-track-globally t) (org-test-selector (if org-test-sele org-test-run-batch-tests() call-interactively(org-test-run-batch-tests nil nil) command-execute(org-test-run-batch-tests) command-line-1((-L lisp/ -L testing/ -l org-test.el --e command-line() normal-top-level() Test test-org-element/headline-properties condition: (ert-test-failed ((should-not (org-test-with-temp-text * Headline\n#+BEGIN_EXAMPLE\n:PROPERTIES:\n:foo: bar\n:END:\n#+END_EXAMPLE (org-element-property :FOO ...))) :form (let ((inside-text ...)) (with-temp-buffer (org-mode) (let ... ...) (org-element-property :FOO ...))) :value bar)) FAILED 169/427 test-org-element/headline-properties False positive: was given by my test function. After using `make test' (hence recompiling the source), that one disappeared. Only one staying: 1 unexpected results: FAILED ob-shell/bash-uses-assoc-arrays Best regards, Seb -- Sebastien Vauban
Re: [O] 2 Org tests failing
Sebastien Vauban writes: I just ran `make test' and got the same error for `ob-shell/bash-uses-assoc-arrays'. Yes, that's because not all versions of bash that have associative arrays can parse the bizarre quoting style that goes through a sub-process and here-document that is used to fill in the parameters. A better quoting function would be (defun org-babel-sh-var-to-sh (var optional sep hline) Convert an elisp value to a shell variable. Convert an elisp var into a string of shell commands specifying a var of the same value. (concat ' (replace-regexp-in-string ' '\'\' (org-babel-sh-var-to-string var sep hline)) ')) (and remove the double quotes around the places where the value is going to be used). It'd have the advantage of working with more types of shells, but I'm not 100% certain that there aren't any corner cases. BTW, how can I avoid compiling the source directory before launching the tests? I prefer having only .el files, as I was mistaken multiple times when trying to understand executions of code I modified. Take a few minutes and read: http://orgmode.org/worg/dev/org-build-system.html Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada
Re: [O] 2 Org tests failing
Bastien wrote: Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: Running org_test, please wait (this can take a while)... FAILED test-org-table/org-table-calc-current-TBLFM FAILED test-org-table/org-table-calc-current-TBLFM-when-stop-because-of-error I can't reproduce this. Can you run the tests manually and report the backtrace? --8---cut here---start-8--- Test test-org-table/org-table-calc-current-TBLFM condition: (file-error Opening output file No such file or directory /tmp/org_test/org-test8984aQq) FAILED 354/427 test-org-table/org-table-calc-current-TBLFM Test test-org-table/org-table-calc-current-TBLFM-when-stop-because-of-error backtrace: write-region( nil /tmp/org_test/org-test8984naw nil silent nil e byte-code(\305\30G!\203\307 !\202\310 \! \203\n P\f\203 make-temp-file(org-test) (let ((file (make-temp-file org-test)) (kill-buffer-query-function (lambda nil (let ((file (make-temp-file org-test)) (kill-buffer-qu byte-code(\306\307!q\210\310\216\311 \312\216\313\314\315\316\3 ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc byte-code(\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3 ert-run-test([cl-struct-ert-test test-org-table/org-table-calc-curre ert-run-or-rerun-test([cl-struct-ert--stats \\(org\\|ob\\) [[cl-st ert-run-tests(\\(org\\|ob\\) #[(event-type rest event-args) \306 ert-run-tests-batch(\\(org\\|ob\\)) ert-run-tests-batch-and-exit(\\(org\\|ob\\)) (let ((org-id-track-globally t) (org-test-selector (if org-test-sele org-test-run-batch-tests() call-interactively(org-test-run-batch-tests nil nil) command-execute(org-test-run-batch-tests) command-line-1((-L lisp/ -L testing/ -l org-test.el --e command-line() normal-top-level() --8---cut here---end---8--- These were run successfully from within Emacs itself (on Windows). I've solved the reported problem by creating the missing TMPDIR (set to /tmp/org_test) for the invocation from my Zsh (Cygwin) terminal... Though, now, I do have another test failing when testing from the shell: --8---cut here---start-8--- Test ob-shell/bash-uses-assoc-arrays backtrace: signal(ert-test-failed (((should (equal 20 cm (org-babel-execute-s ert-fail(((should (equal 20 cm (org-babel-execute-src-block))) :fo (if (unwind-protect (setq value-502 (apply fn-500 args-501)) (setq f (let (form-description-504) (if (unwind-protect (setq value-502 (app (let ((value-502 (quote ert-form-evaluation-aborted-503))) (let (for (let ((fn-500 (function equal)) (args-501 (list 20 cm (org-babel-e (save-restriction (org-babel-next-src-block 2) (let ((fn-500 (functi (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d3ff87) (setq to (unwind-protect (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d (let ((save-match-data-internal (match-data))) (unwind-protect (prog (progn (let ((save-match-data-internal (match-data))) (unwind-protec (unwind-protect (progn (let ((save-match-data-internal (match-data)) (let ((wconfig (current-window-configuration))) (unwind-protect (pro (unwind-protect (let ((wconfig (current-window-configuration))) (unw (let* ((id-location (org-id-find 82320a48-3409-49d7-85c9-5de1c6d3ff (lambda nil (let* ((id-location (org-id-find 82320a48-3409-49d7-85c byte-code(\306\307!q\210\310\216\311 \312\216\313\314\315\316\3 ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc byte-code(\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3 ert-run-test([cl-struct-ert-test ob-shell/bash-uses-assoc-arrays Ba ert-run-or-rerun-test([cl-struct-ert--stats \\(org\\|ob\\) [[cl-st ert-run-tests(\\(org\\|ob\\) #[(event-type rest event-args) \306 ert-run-tests-batch(\\(org\\|ob\\)) ert-run-tests-batch-and-exit(\\(org\\|ob\\)) (let ((org-id-track-globally t) (org-test-selector (if org-test-sele org-test-run-batch-tests() call-interactively(org-test-run-batch-tests nil nil) command-execute(org-test-run-batch-tests) command-line-1((-L lisp/ -L testing/ -l org-test.el --e command-line() normal-top-level() Test ob-shell/bash-uses-assoc-arrays condition: (ert-test-failed ((should (equal 20 cm (org-babel-execute-src-block))) :form (equal 20 cm nil) :value nil :explanation (different-types 20 cm nil))) FAILED 24/427 ob-shell/bash-uses-assoc-arrays --8---cut here---end---8--- Best regards, Seb -- Sebastien Vauban
Re: [O] 2 Org tests failing
Sebastien Vauban writes: I've solved the reported problem by creating the missing TMPDIR (set to /tmp/org_test) for the invocation from my Zsh (Cygwin) terminal... The first thing the build system does before testing is install -m 755 -d /tmp/tmp-orgtest so you either pick up the wrong install command via path or have otherwise misconfigured MKDIR in local.mk. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Waldorf MIDI Implementation additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs
Re: [O] 2 Org tests failing
Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: Running org_test, please wait (this can take a while)... FAILED test-org-table/org-table-calc-current-TBLFM FAILED test-org-table/org-table-calc-current-TBLFM-when-stop-because-of-error I can't reproduce this. Can you run the tests manually and report the backtrace? -- Bastien