gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Re: tla on aix


From: tow21
Subject: [Gnu-arch-users] Re: tla on aix
Date: Mon, 9 Feb 2004 12:00:53 +0000
User-agent: Mutt/1.5.5.1+cvs20040105i

So using tla 1.2pre2, on AIX v5.1:

hartree_a $uname -a     
AIX hartree_a 1 5 000509724C00

and the "C compiler for AIX version 6".

I noted the thread at
<URL:http://mail.gnu.org/archive/html/gnu-arch-users/ 2003-12/msg00670.html>
and encountered several of the same issues; notably, the test suite is 
hardcoded to use "diff", "patch", and "tar" directly, regardless of what 
is specified as --with-gnu-diff etc. at configure. It would be nice if the 
testsuite could be changed to use the appropriate command.

Having downloaded and installed Gnu versions of diffutils, sed, patch 
and tar, the configure script will finally run. By and large correctly,
although it wasn't quite right on C compiler characteristics;
I had to specify CC="cc -qlanglvl=stdc99" in order that it accept
the occasional C99-style comment. I also had to make one change to
the source to get round the compiler's pedantry; viz:

--- hackerlab/hash/md5-utils.c.old     2004-02-06 16:24:13.000000000 +0000
+++ hackerlab/hash/md5-utils.c 2004-02-06 16:24:35.000000000 +0000
@@ -78,7 +78,7 @@
              alloc_limits limits,
              t_uchar * string)
 {
-  return md5_for_str_n (result, limits, string, str_length (string));
+  md5_for_str_n (result, limits, string, str_length (string));
 }


However, I've encountered a few problems at make test. None of the tests
FAIL as such, but several of them encounter errors in the shell scripts
and crash.

1: test-what-changed; test null changeset
&  test-file-diffs; diff | patch -R => identity
These crashed with the error: 
test: 0403-004 Specify a parameter with this command

I played around changing shells, and downloading & compiling GNU
coreutils, none of which made any difference. What did make a
difference was:

--- tla/tests/test-framework.old        2004-02-06 17:34:38.000000000 +0000
+++ tla/tests/test-framework    2004-02-06 17:29:22.000000000 +0000
@@ -215,7 +215,7 @@
   d=$1
   shift
   verbosecmd 'test -z $(ls ' "$d"')'
-  test -z $(ls "$d")
+  test -z "$(ls "$d")"
 }
 
 file_matches () {

I don't know if the test scripts are non-POSIX or if all the AIX shells
are broken.



2: test-file-diffs.sh; diffs for single file modification
This crashed with the error:
?*+ not preceded by valid expression.

Fixed by:

--- tla/tests/test-file-diffs.sh.old    2004-02-06 17:37:43.000000000 +0000
+++ tla/tests/test-file-diffs.sh        2004-02-06 17:29:49.000000000 +0000
@@ -43,7 +43,7 @@
 mv hello-world.c.new hello-world.c
 do_file_diffs hello-world.c > ../hello-world.patch
 file_matches '^-.*Hello world' ../hello-world.patch
-file_matches '^+.*Hello, world' ../hello-world.patch
+file_matches '^\+.*Hello, world' ../hello-world.patch
 cleanup
 end_test 



3: test-mv-explicit; move file into a directory tree
This prints:
[...]
Test 13: move directory into a symlink to an existing directory
Test 13: PASS
Test 14: move file into a directory tree
These symlinks point to nonexistent files:


and then hangs in a completely unkillable manner. The only way out is 
to kill -9 the shell remotely, and close the terminal.

The offending line appears to be:
tla commit -L"moved hello-world.c into the tree" 1>/dev/null
Commenting this out allows the test to continue (albeit it fails).

Commenting out this line also makes the rest of the tests in that file 
fail due to "hello-world.c" being in the wrong place; so I have no idea
whether they work or not. 

All other tests, though, pass.

Any ideas on what might be causing the mv-explicit failure?

Toby

-- 
Dr. Toby White, Dept. of Earth Sciences, Downing Street, Cambridge CB2 3EQ. UK
Email: <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]