diff mbox

1/n: trans-mem: libitm runtime tests

Message ID 4EB31523.2050700@redhat.com
State New
Headers show

Commit Message

Aldy Hernandez Nov. 3, 2011, 10:26 p.m. UTC
On 11/03/11 15:33, Jeff Law wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 11/03/11 11:44, Aldy Hernandez wrote:
>> These are all new files, thus require no ChangeLog entries (for
>> the tests themselves anyhow).  However, I will post a separate
>> ChangeLog for the entire libitm.
> Note copyright dates...  Make sure they're not something like, umm,
> 1997 :-)

Fixed everywhere in libitm.

>
> testsuite/config/default.exp
>
>
>> +#   Copyright (C) 1997 Free Software Foundation, Inc.

Fixed.

> I'm going to assume the tests themselves are good.  It'd be nice if
> they all stated what they were testing, but I don't consider that a
> requirement.  If the tests were written independently rather than
> extracted from another blob of code, you may consider adding a
> copyright notice to them.

Hmm, we based a lot of the original skeleton from libgomp, and AFAICT 
only one test has a copyright notice:

	libgomp.c/sort-1.c

If you feel strongly about this, I can add a copyright notice to every 
test, after I finish all the other recommendations elsewhere.

> Others have already noted the g-fortran dependency, which seems odd.
> I think if that's cleaned up this stuff would be OK.

rth is taking care of that.

Committing the attached patch to the branch.
* testsuite/config/default.exp: Update copyright date.
	* configure.ac: Add copyright info.
	* configure.tgt: Same.

Comments

Jakub Jelinek Nov. 3, 2011, 10:36 p.m. UTC | #1
On Thu, Nov 03, 2011 at 05:26:43PM -0500, Aldy Hernandez wrote:
> >I'm going to assume the tests themselves are good.  It'd be nice if
> >they all stated what they were testing, but I don't consider that a
> >requirement.  If the tests were written independently rather than
> >extracted from another blob of code, you may consider adding a
> >copyright notice to them.
> 
> Hmm, we based a lot of the original skeleton from libgomp, and
> AFAICT only one test has a copyright notice:
> 
> 	libgomp.c/sort-1.c
> 
> If you feel strongly about this, I can add a copyright notice to
> every test, after I finish all the other recommendations elsewhere.

The reason for the copyright notice in there is that at that time
I felt the test was already quite big, but looking at it now
there are many even bigger tests in libgomp testsuite.  And most
of the libgomp tests (except for appendix-a/ tests) were written
independently.
In libstdc++-v3/testsuite it seems most of the tests have the notice
(including very small ones), elsewhere most of the tests don't have
anything at all.
So I would say if the test is really small, it isn't worth adding it
there, perhaps only for very large tests.

	Jakub
diff mbox

Patch

Index: configure.ac
===================================================================
--- configure.ac	(revision 180772)
+++ configure.ac	(working copy)
@@ -1,4 +1,19 @@ 
 # Process this file with autoreconf to produce a configure script.
+#   Copyright (C) 2011 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  
 
 AC_PREREQ(2.59)
 AC_INIT([GNU TM Runtime Library], 1.0,,[libitm])
Index: configure.tgt
===================================================================
--- configure.tgt	(revision 180744)
+++ configure.tgt	(working copy)
@@ -1,4 +1,20 @@ 
 # -*- shell-script -*-
+#   Copyright (C) 2011 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  
+
 # This is the target specific configuration file.  This is invoked by the
 # autoconf generated configure script.  Putting it in a separate shell file
 # lets us skip running autoconf when modifying target specific information.
Index: testsuite/config/default.exp
===================================================================
--- testsuite/config/default.exp	(revision 180744)
+++ testsuite/config/default.exp	(working copy)
@@ -1,4 +1,4 @@ 
-#   Copyright (C) 1997 Free Software Foundation, Inc.
+#   Copyright (C) 2011 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by