[Aboriginal] [PATCH] Remove useless symlink
Rob Landley
rob at landley.net
Fri Jun 17 06:48:59 PDT 2011
On 06/17/2011 05:07 AM, Alessio Igor Bogani wrote:
> # HG changeset patch
> # User Alessio Igor Bogani <alessiogirobogani at gmail.com>
> # Date 1308302693 -7200
> # Node ID a041d8bd1b2f60d0d68e969ab2946e7c51d27476
> # Parent 092302c33462716a5a0b5612f7676d76ccd8fe94
> Remove useless symlink
>
> diff -r 092302c33462 -r a041d8bd1b2f www/screenshots/index.html
> --- a/www/screenshots/index.html Wed Jun 15 23:22:39 2011 +0200
> +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
> @@ -1,1 +0,0 @@
> -oldindex.html
> \ No newline at end of file
>
I need to redo the entire screenshots directory. It's gone very stale,
and should have a script automatically generating it each release.
The question is the automation: a control image won't show a shell
prompt, and I haven't got expect set up on the host (and don't want to
require that as an environmental dependency, and have no interest in
building tcl from source), and my shell script to sort of _fake_ expect
in bash is unfinished. (Turns out to be a hard problem.)
The quick-and-dirty trick I've been doing (in more/smoketest.sh) is just
cat the series of commands I want into qemu, with a line of spaces at
the top to overcome the way serial chip initialization in the device
driver eats a semi-random amount of data (generally the FIFO buffer size
plus a couple "just for luck").
Unfortunately, this is not reliable. It locks powerpc solid (which is a
driver bug having to do with input and output interrupts crossing, but
the PMAC_ZILOG driver is ancient and only semi-maintained, the mac99
platform is 12 years old, it's just the most convenient target for qemu
to emulate on 32 bit PPC). And some commands just plain eat pending
input, even when they ignore it. The point of expect is to wait for a
prompt (hence the "Type exit when done" string) before producing the
output, so you have a bunch of trigger/response pairs. It's reliable,
but requires being able ot look at the input and output of the same
command, and making a pipeline into a circle is actually kind of hard to
do in shell programming.
It's on my todo list. :)
I actually worked out how to DO expect in shell (see attached, although
I wouldn't say I'm _happy_ with that solution), but haven't managed to
follow up and rewrite the screenshot generator or smoketest.sh yet.
(Hence the reason releases tend to be late: I have more things I want to
do. I need to get back to time-based release discipline, no matter how
little time I PERSONALLY have. Speaking of which, I'm late for work...)
Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xp2.sh
Type: application/x-sh
Size: 888 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20110617/3c09c369/attachment-0003.sh>
More information about the Aboriginal
mailing list