change log for rtems (2010-07-30)

Joel Sherrill joel.sherrill at OARcorp.com
Fri Jul 30 13:34:34 UTC 2010


Thanks.

You were concerned about hosts without ln at all.

Is that still an issue?  If so, I had an idea.
Somehow we need to skip making the symlink
and adding it to tar.  Then the test code
running on RTEMS needs to know not to expect the
symlink.

Similarly, if the uid/gid and umask used in the tar
were communicated to the test, then that could be
validated.  For now, it is not checked.

If we can some up with a "manifest" type file for
the tarball, it would be awesome since that would
allow us to add md5sums which also is an area of
code I would like to ensure is tested.

--joel

On 07/30/2010 04:10 AM, rtems-vc at rtems.org wrote:
> *ralf*
> 2010-07-30	Ralf Corsépius<ralf.corsepius at rtems.org>
>
> 	* configure.ac: Add AC_PROG_LN_S.
> 	Add AC_PATH_PROG([PAX]).
> 	Add AM_CONDITIONAL(TARTESTS).
>          
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.225&r2=text&tr2=1.226&diff_format=h> 
> 	1.226 	testsuites/libtests/ChangeLog
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/configure.ac.diff?r1=text&tr1=1.52&r2=text&tr2=1.53&diff_format=h> 
> 	1.53 	testsuites/libtests/configure.ac
>
> diff -u rtems/testsuites/libtests/ChangeLog:1.225 rtems/testsuites/libtests/ChangeLog:1.226
> --- rtems/testsuites/libtests/ChangeLog:1.225	Fri Jul 30 01:13:06 2010
> +++ rtems/testsuites/libtests/ChangeLog	Fri Jul 30 03:42:37 2010
> @@ -1,5 +1,8 @@
>   2010-07-30	Ralf Corsépius<ralf.corsepius at rtems.org>
>
> +	* configure.ac: Add AC_PROG_LN_S.
> +	Add AC_PATH_PROG([PAX]).
> +	Add AM_CONDITIONAL(TARTESTS).
>   	* tar01/Makefile.am, tar02/Makefile.am:
>   	Eliminate stamp-filesystem.
>
>
> diff -u rtems/testsuites/libtests/configure.ac:1.52 rtems/testsuites/libtests/configure.ac:1.53
> --- rtems/testsuites/libtests/configure.ac:1.52	Tue Jul 27 13:16:49 2010
> +++ rtems/testsuites/libtests/configure.ac	Fri Jul 30 03:42:37 2010
> @@ -28,6 +28,10 @@
>   RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
>   RTEMS_CHECK_CXX(RTEMS_BSP)
>
> +AC_PROG_LN_S
> +AC_PATH_PROG([PAX],[pax])
> +
> +AM_CONDITIONAL(TARTESTS,test "$as_ln_s" = "ln -s"&&  test -n "$PAX")
>
>   AM_CONDITIONAL(HAS_CXX,test "$rtems_cv_HAS_CPLUSPLUS" = "yes")
>
>    
>
> *ralf*
> 2010-07-30	Ralf Corsépius<ralf.corsepius at rtems.org>
>
> 	* tar01/Makefile.am:
> 	Apply $LN_S, $PAX. Use subshell for tarball creation.
> 	Don't add initial_fs to CLEANFILES.
> 	* tar02/Makefile.am:
> 	Apply $LN_S, $PAX. Use subshell for tarball creation.
>          
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.226&r2=text&tr2=1.227&diff_format=h> 
> 	1.227 	testsuites/libtests/ChangeLog
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/tar01/Makefile.am.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h> 
> 	1.9 	testsuites/libtests/tar01/Makefile.am
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/tar02/Makefile.am.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h> 
> 	1.8 	testsuites/libtests/tar02/Makefile.am
>
> diff -u rtems/testsuites/libtests/ChangeLog:1.226 rtems/testsuites/libtests/ChangeLog:1.227
> --- rtems/testsuites/libtests/ChangeLog:1.226	Fri Jul 30 03:42:37 2010
> +++ rtems/testsuites/libtests/ChangeLog	Fri Jul 30 03:46:13 2010
> @@ -1,5 +1,13 @@
>   2010-07-30	Ralf Corsépius<ralf.corsepius at rtems.org>
>
> +	* tar01/Makefile.am:
> +	Apply $LN_S, $PAX. Use subshell for tarball creation.
> +	Don't add initial_fs to CLEANFILES.
> +	* tar02/Makefile.am:
> +	Apply $LN_S, $PAX. Use subshell for tarball creation.
> +
> +2010-07-30	Ralf Corsépius<ralf.corsepius at rtems.org>
> +
>   	* configure.ac: Add AC_PROG_LN_S.
>   	Add AC_PATH_PROG([PAX]).
>   	Add AM_CONDITIONAL(TARTESTS).
>
> diff -u rtems/testsuites/libtests/tar01/Makefile.am:1.8 rtems/testsuites/libtests/tar01/Makefile.am:1.9
> --- rtems/testsuites/libtests/tar01/Makefile.am:1.8	Fri Jul 30 01:13:06 2010
> +++ rtems/testsuites/libtests/tar01/Makefile.am	Fri Jul 30 03:46:13 2010
> @@ -40,10 +40,9 @@
>   	$(MKDIR_P) initial_fs/home
>   	(echo "This is a test of loading an RTEMS filesystem from an" ; \
>   	echo "initial tar image.")>initial_fs/home/test_file
> -	cd initial_fs&&  ln -s home/test_file symlink
> -	cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink
> +	(cd initial_fs; \
> +	$(LN_S) home/test_file symlink; \  
> +	$(PAX) -w -f ../initial_filesystem.tar home symlink)
>   CLEANFILES += initial_filesystem.tar
>
> -CLEANFILES += initial_fs
> -
>   include $(top_srcdir)/../automake/local.am
>
> diff -u rtems/testsuites/libtests/tar02/Makefile.am:1.7 rtems/testsuites/libtests/tar02/Makefile.am:1.8
> --- rtems/testsuites/libtests/tar02/Makefile.am:1.7	Fri Jul 30 01:13:06 2010
> +++ rtems/testsuites/libtests/tar02/Makefile.am	Fri Jul 30 03:46:13 2010
> @@ -40,8 +40,9 @@
>   	$(MKDIR_P) initial_fs/home
>   	(echo "This is a test of loading an RTEMS filesystem from an" ; \
>   	echo "initial tar image.")>initial_fs/home/test_file
> -	cd initial_fs&&  ln -s home/test_file symlink
> -	cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink
> +	(cd initial_fs; \
> +	$(LN_S) home/test_file symlink
> +	$(PAX) -w -f ../initial_filesystem.tar home symlink)
>   CLEANFILES += initial_filesystem.tar
>
>   include $(top_srcdir)/../automake/local.am
>    
>
> *ralf*
> Fix typo.
>          
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/tar01/Makefile.am.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h> 
> 	1.10 	testsuites/libtests/tar01/Makefile.am
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/tar02/Makefile.am.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h> 
> 	1.9 	testsuites/libtests/tar02/Makefile.am
>
> diff -u rtems/testsuites/libtests/tar01/Makefile.am:1.9 rtems/testsuites/libtests/tar01/Makefile.am:1.10
> --- rtems/testsuites/libtests/tar01/Makefile.am:1.9	Fri Jul 30 03:46:13 2010
> +++ rtems/testsuites/libtests/tar01/Makefile.am	Fri Jul 30 03:53:58 2010
> @@ -41,7 +41,7 @@
>   	(echo "This is a test of loading an RTEMS filesystem from an" ; \
>   	echo "initial tar image.")>initial_fs/home/test_file
>   	(cd initial_fs; \
> -	$(LN_S) home/test_file symlink; \  
> +	$(LN_S) home/test_file symlink; \
>   	$(PAX) -w -f ../initial_filesystem.tar home symlink)
>   CLEANFILES += initial_filesystem.tar
>
>
> diff -u rtems/testsuites/libtests/tar02/Makefile.am:1.8 rtems/testsuites/libtests/tar02/Makefile.am:1.9
> --- rtems/testsuites/libtests/tar02/Makefile.am:1.8	Fri Jul 30 03:46:13 2010
> +++ rtems/testsuites/libtests/tar02/Makefile.am	Fri Jul 30 03:53:58 2010
> @@ -41,7 +41,7 @@
>   	(echo "This is a test of loading an RTEMS filesystem from an" ; \
>   	echo "initial tar image.")>initial_fs/home/test_file
>   	(cd initial_fs; \
> -	$(LN_S) home/test_file symlink
> +	$(LN_S) home/test_file symlink; \
>   	$(PAX) -w -f ../initial_filesystem.tar home symlink)
>   CLEANFILES += initial_filesystem.tar
>
>    
>
> *ralf*
> 2010-07-30	Ralf Corsépius<ralf.corsepius at rtems.org>
>
> 	* tar01/Makefile.am, tar02/Makefile.am: Apply TARTESTS.
>          
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.227&r2=text&tr2=1.228&diff_format=h> 
> 	1.228 	testsuites/libtests/ChangeLog
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/tar01/Makefile.am.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h> 
> 	1.11 	testsuites/libtests/tar01/Makefile.am
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/tar02/Makefile.am.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h> 
> 	1.10 	testsuites/libtests/tar02/Makefile.am
>
> diff -u rtems/testsuites/libtests/ChangeLog:1.227 rtems/testsuites/libtests/ChangeLog:1.228
> --- rtems/testsuites/libtests/ChangeLog:1.227	Fri Jul 30 03:46:13 2010
> +++ rtems/testsuites/libtests/ChangeLog	Fri Jul 30 03:56:09 2010
> @@ -1,5 +1,9 @@
>   2010-07-30	Ralf Corsépius<ralf.corsepius at rtems.org>
>
> +	* tar01/Makefile.am, tar02/Makefile.am: Apply TARTESTS.
> +
> +2010-07-30	Ralf Corsépius<ralf.corsepius at rtems.org>
> +
>   	* tar01/Makefile.am:
>   	Apply $LN_S, $PAX. Use subshell for tarball creation.
>   	Don't add initial_fs to CLEANFILES.
>
> diff -u rtems/testsuites/libtests/tar01/Makefile.am:1.10 rtems/testsuites/libtests/tar01/Makefile.am:1.11
> --- rtems/testsuites/libtests/tar01/Makefile.am:1.10	Fri Jul 30 03:53:58 2010
> +++ rtems/testsuites/libtests/tar01/Makefile.am	Fri Jul 30 03:56:09 2010
> @@ -4,6 +4,7 @@
>
>   CLEANFILES =
>
> +if TARTESTS
>   rtems_tests_PROGRAMS = tar01
>   tar01_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \
>     initial_filesystem_tar.c initial_filesystem_tar.h
> @@ -11,11 +12,13 @@
>   BUILT_SOURCES = initial_filesystem_tar.c initial_filesystem_tar.h
>
>   dist_rtems_tests_DATA = tar01.scn
> +endif TARTESTS
>
>   include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
>   include $(top_srcdir)/../automake/compile.am
>   include $(top_srcdir)/../automake/leaf.am
>
> +if TARTESTS
>   AM_CPPFLAGS += -I$(top_srcdir)/include
>   AM_CPPFLAGS += -I$(top_srcdir)/../support/include
>   AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include
> @@ -44,5 +47,6 @@
>   	$(LN_S) home/test_file symlink; \
>   	$(PAX) -w -f ../initial_filesystem.tar home symlink)
>   CLEANFILES += initial_filesystem.tar
> +endif TARTESTS
>
>   include $(top_srcdir)/../automake/local.am
>
> diff -u rtems/testsuites/libtests/tar02/Makefile.am:1.9 rtems/testsuites/libtests/tar02/Makefile.am:1.10
> --- rtems/testsuites/libtests/tar02/Makefile.am:1.9	Fri Jul 30 03:53:58 2010
> +++ rtems/testsuites/libtests/tar02/Makefile.am	Fri Jul 30 03:56:09 2010
> @@ -4,6 +4,7 @@
>
>   CLEANFILES =
>
> +if TARTESTS
>   rtems_tests_PROGRAMS = tar02
>   tar02_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \
>     initial_filesystem_tar.c initial_filesystem_tar.h
> @@ -11,11 +12,13 @@
>   BUILT_SOURCES = initial_filesystem_tar.c initial_filesystem_tar.h
>
>   dist_rtems_tests_DATA = tar02.scn
> +endif
>
>   include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
>   include $(top_srcdir)/../automake/compile.am
>   include $(top_srcdir)/../automake/leaf.am
>
> +if TARTESTS
>   AM_CPPFLAGS += -I$(top_srcdir)/include
>   AM_CPPFLAGS += -I$(top_srcdir)/../support/include
>   AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include
> @@ -44,5 +47,6 @@
>   	$(LN_S) home/test_file symlink; \
>   	$(PAX) -w -f ../initial_filesystem.tar home symlink)
>   CLEANFILES += initial_filesystem.tar
> +endif TARTESTS
>
>   include $(top_srcdir)/../automake/local.am
>    
>
> --
> Generated by Deluxe Loginfo 
> <http://www.codewiz.org/projects/index.html#loginfo> 2.122 by Bernardo 
> Innocenti <bernie at develer.com>
>


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985





More information about the vc mailing list