Changeset ef9517b7 in rtems


Ignore:
Timestamp:
May 6, 2020, 5:33:47 AM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
153b2669
Parents:
084ea83
git-author:
Sebastian Huber <sebastian.huber@…> (05/06/20 05:33:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/07/20 10:31:56)
Message:

libtests/tar0[12]: Add tar archive

Do not generate the test tar archive on the host computer since not all
file systems support symbolic links.

Close #3968.

Location:
testsuites/libtests
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/Makefile.am

    r084ea83 ref9517b7  
    12721272        $(support_includes) $(test_includes) -I$(top_srcdir)/include
    12731273tar01_LDADD = $(RTEMS_ROOT)cpukit/librtemscpu.a $(RTEMS_ROOT)cpukit/libz.a $(LDADD)
    1274 tar01.tar: $(srcdir)/tar01/home/test_file $(srcdir)/tar01/home/abc/def/test_script $(srcdir)/tar01/symlink
    1275         @rm -f $@
    1276         $(AM_V_GEN)$(PAX) -w -f $@ -s ,$(srcdir)/tar01/,, $+
    1277 tar01-tar.c: tar01.tar
     1274tar01-tar.c: tar01/tar01.tar
    12781275        $(AM_V_GEN)$(BIN2C) -C $< $@
    1279 tar01-tar.h: tar01.tar
     1276tar01-tar.h: tar01/tar01.tar
    12801277        $(AM_V_GEN)$(BIN2C) -H $< $@
    12811278tar01-tar.o: tar01-tar.c tar01-tar.h
    1282 tar01.tar.gz: tar01.tar
     1279tar01.tar.gz: tar01/tar01.tar
    12831280        $(AM_V_GEN)$(GZIP) < $< > $@
    12841281tar01-tar-gz.c: tar01.tar.gz
     
    12891286        tar01.tar.gz tar01-tar-gz.c tar01-tar-gz.h
    12901287if TARTEST_XZ
    1291 tar01.tar.xz: tar01.tar
     1288tar01.tar.xz: tar01/tar01.tar
    12921289        $(AM_V_GEN)$(XZ) < $< > $@
    12931290tar01-tar-xz.c: tar01.tar.xz
     
    13111308tar02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_tar02) \
    13121309        $(support_includes) $(test_includes) -I$(top_srcdir)/include
    1313 tar02.tar: $(srcdir)/tar01/home/test_file $(srcdir)/tar01/home/abc/def/test_script $(srcdir)/tar01/symlink
    1314         @rm -f $@
    1315         $(AM_V_GEN)$(PAX) -w -f $@ -s ,$(srcdir)/tar01/,, $+
    1316 tar02-tar.c: tar02.tar
     1310tar02-tar.c: tar01/tar01.tar
    13171311        $(AM_V_GEN)$(BIN2C) -C $< $@
    1318 tar02-tar.h: tar02.tar
     1312tar02-tar.h: tar01/tar01.tar
    13191313        $(AM_V_GEN)$(BIN2C) -H $< $@
    13201314tar02-tar.o: tar02-tar.c tar02-tar.h
  • testsuites/libtests/configure.ac

    r084ea83 ref9517b7  
    3131RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
    3232
    33 AC_PROG_LN_S
    3433AC_PATH_PROG([PAX],[pax],no)
    3534AC_PATH_PROG([GZIP],[gzip],no)
     
    4039])
    4140
    42 AM_CONDITIONAL(TARTESTS,test "$as_ln_s" = "ln -s" && test -n "$PAX" && test -n "$GZIP")
     41AM_CONDITIONAL(TARTESTS,test -n "$PAX" && test -n "$GZIP")
    4342AM_CONDITIONAL(TARTEST_XZ,test -n "$XZ")
    4443
  • testsuites/libtests/tar02/init.c

    r084ea83 ref9517b7  
    3333void test_tarfs_load(void);
    3434
    35 #define TARFILE_START tar02_tar
    36 #define TARFILE_SIZE  tar02_tar_size
     35#define TARFILE_START tar01_tar
     36#define TARFILE_SIZE  tar01_tar_size
    3737
    3838static const char file[] = "/home/test_file";
Note: See TracChangeset for help on using the changeset viewer.