emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Martyn Jago <martyn.jago@btinternet.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: FYI: Org mode testing framework, Emacs 23 and 22
Date: Wed, 09 Nov 2011 14:22:04 -0700	[thread overview]
Message-ID: <8739dxdm9v.fsf@gmail.com> (raw)
In-Reply-To: <m2ty6xj7fh.fsf@btinternet.com> (Martyn Jago's message of "Tue, 25 Oct 2011 18:40:50 +0100")

Martyn Jago <martyn.jago@btinternet.com> writes:

> Hi
>
> Brian Wightman <MidLifeXis@wightmanfam.org> writes:
>
>> On Mon, Oct 24, 2011 at 7:12 AM, Sebastien Vauban
>> <wxhgmqzgwmuf@spammotel.com> wrote:
>>> For my information, why do you need to test that 2 suites don't run at the
>>> same time?  They only write to temp buffers, no?  Can they conflict?
>>
>> If they do conflict and only one set of tests should run at a time,
>> shouldn't the second set of tests be queued up so it runs when the
>> first is complete?  If this isn't done, I could see a situation where
>> at least one commit remains untested until the next commit.
>>
>> my $0.02;
>> Brian
>
> I would think it would make sense to ensure the newly committed code
> also builds correctly (including info), and why not test back to Emacs
> 22 also (since that is how this thread came about)? I have set up
> something similar, and doing all this takes less than 1 minute on my
> machine.
>
> Incidentally, I added info on running tests on Emacs 22 and 23 to Worg at 
>
> http://orgmode.org/worg/org-tests/index.html
>

These are good points, so the best solution would have two parts, the
first should en-queue each new commit as it is received, and the second
should pop commits off of the queue, run the test suite on that commit
and write the results to an html file.

My first thought for a shell-script solution would use a mkfifo named
pipe, something like the following...

,----[setup]
| mkfifo /tmp/org-commits-to-test
`----

,----[in a post-commit hook]
| echo $COMMIT >> /tmp/org-commits-to-test
`----

,----[in another constantly-running shell script]
| while true; do
|   for i in $(cat /tmp/org-commits-to-test);do
|     cd /testing/repo/location
|     git checkout $i
|     git reset --hard HEAD
|     emacs --batch ...
|   done
| done
`----

But I imagine there is likely a better solution.

Best -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

  reply	other threads:[~2011-11-09 21:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-02  4:47 FYI: Org mode testing framework, Emacs 23 and 22 David Maus
2011-09-02 13:50 ` Eric Schulte
2011-09-11 18:00   ` David Maus
2011-09-11 21:02     ` Eric Schulte
2011-09-13  3:50       ` David Maus
2011-09-13 14:48         ` Eric Schulte
2011-09-14  4:10           ` David Maus
2011-09-16  5:01           ` David Maus
2011-09-17 20:56             ` Eric Schulte
2011-09-18  9:01               ` David Maus
2011-09-22 13:44                 ` Eric Schulte
2011-09-25  7:30                   ` David Maus
2011-09-18  9:05               ` David Maus
2011-09-18  9:07               ` David Maus
2011-09-18 14:46               ` David Maus
2011-10-21 18:46       ` Bastien
2011-10-21 18:57         ` Sebastien Vauban
2011-10-22 16:19           ` Eric Schulte
2011-10-23 17:56             ` Bastien
2011-10-24 12:12             ` Sebastien Vauban
2011-10-25 13:25               ` Brian Wightman
2011-10-25 17:40                 ` Martyn Jago
2011-11-09 21:22                   ` Eric Schulte [this message]
2011-11-09 21:50                     ` Samuel Wales
2011-11-09 22:20                       ` Eric Schulte
2011-09-11 18:01   ` David Maus
2011-09-11 20:31     ` Martyn Jago

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739dxdm9v.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=martyn.jago@btinternet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).