Changeset 86e79d7 in rtems


Ignore:
Timestamp:
Apr 12, 2018, 4:52:36 AM (13 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
f59d435d
Parents:
31cd205d
git-author:
Chris Johns <chrisj@…> (04/12/18 04:52:36)
git-committer:
Chris Johns <chrisj@…> (04/12/18 07:54:59)
Message:

testsuites/dl06: Add a test for RAP format.

This test loads a RAP format file that contains calls that are not
in the kernel and linked from libm. It uses and test rtems-ld.

Update #2769

Location:
testsuites/libtests
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/Makefile.am

    r31cd205d r86e79d7  
    324324dl01_SOURCES = dl01/init.c dl01/dl-load.c dl01-tar.c dl01-tar.h
    325325dl01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl01) $(support_includes)
    326 dl01-o1.o: dl01/dl-o1.c
    327         $(AM_V_GEN)$(COMPILE) -c -o $@ $<
     326dl01/init.c: dl01-tar.o
     327dl01.pre: $(dl01_OBJECTS) $(dl01_DEPENDENCIES)
     328        @rm -f dl01.pre
     329        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     330dl01-o1.o: dl01/dl-o1.c Makefile
     331        $(AM_V_CC)$(COMPILE) -c -o $@ $<
    328332dl01.tar: dl01-o1.o
    329333        @rm -f $@
     
    334338        $(AM_V_GEN)$(BIN2C) -H $< $@
    335339dl01-tar.o: dl01-tar.c dl01-tar.h
    336 dl01/init.c: dl01-tar.o
    337 dl01.pre: $(dl01_OBJECTS) $(dl01_DEPENDENCIES)
    338         @rm -f dl01.pre
    339         $(AM_V_CLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     340        $(AM_V_CC)$(COMPILE) -c -o $@ $<
    340341dl01-sym.o: dl01.pre
    341342        $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
    342343dl01$(EXEEXT):  $(dl01_OBJECTS) $(dl01_DEPENDENCIES) dl01-sym.o
    343344        @rm -f $@
    344         $(AM_V_CLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     345        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
    345346CLEANFILES += dl01.pre dl01-sym.o dl02-o1.o dl01.tar dl01-tar.h
    346347endif
     
    354355dl02_SOURCES = dl02/init.c dl02/dl-load.c dl02-tar.c dl02-tar.h
    355356dl02_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl02) $(support_includes)
    356 dl02-o1.o: dl02/dl-o1.c
    357         $(AM_V_GEN)$(COMPILE) -c -o $@ $<
    358 dl02-o2.o: dl02/dl-o2.c
    359         $(AM_V_GEN)$(COMPILE) -c -o $@ $<
     357dl02/init.c: dl02-tar.o
     358dl02.pre: $(dl02_OBJECTS) $(dl02_DEPENDENCIES)
     359        @rm -f dl02.pre
     360        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     361dl02-o1.o: dl02/dl-o1.c Makefile
     362        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     363dl02-o2.o: dl02/dl-o2.c Makefile
     364        $(AM_V_CC)$(COMPILE) -c -o $@ $<
    360365dl02.tar: dl02-o1.o dl02-o2.o
    361366        @rm -f $@
     
    366371        $(AM_V_GEN)$(BIN2C) -H $< $@
    367372dl02-tar.o: dl02-tar.c dl02-tar.h
    368 dl02/init.c: dl02-tar.o
    369 dl02.pre: $(dl02_OBJECTS) $(dl02_DEPENDENCIES)
    370         @rm -f dl02.pre
    371         $(AM_V_CLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     373        $(AM_V_CC)$(COMPILE) -c -o $@ $<
    372374dl02-sym.o: dl02.pre
    373375        $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
    374376dl02$(EXEEXT):  $(dl02_OBJECTS) $(dl02_DEPENDENCIES) dl02-sym.o
    375377        @rm -f $@
    376         $(AM_V_CLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     378        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
    377379CLEANFILES += dl02.pre dl02-sym.o dl02-o1.o dl02-o2.o dl02.tar dl02-tar.h
    378380endif
     
    398400        dl04-tar.h
    399401dl04_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl04) $(support_includes)
    400 dl04-o4.o: dl04/dl-o4.cpp
     402dl04/init.c: dl04-tar.o
     403dl04.pre: $(dl04_OBJECTS) $(dl04_DEPENDENCIES)
     404        @rm -f dl04.pre
     405        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     406dl04-o4.o: dl04/dl-o4.cpp Makefile
    401407        $(AM_V_GEN)$(CXXCOMPILE) -c -o $@ $<
    402408dl04.tar: dl04-o4.o
     
    408414        $(AM_V_GEN)$(BIN2C) -H $< $@
    409415dl04-tar.o: dl04-tar.c dl04-tar.h
    410 dl04/init.c: dl04-tar.o
    411 dl04.pre: $(dl04_OBJECTS) $(dl04_DEPENDENCIES)
    412         @rm -f dl04.pre
    413         $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     416        $(AM_V_CC)$(COMPILE) -c -o $@ $<
    414417dl04-sym.o: dl04.pre
    415418        $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
     
    431434        dl05-tar.h
    432435dl05_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl05) $(support_includes)
     436dl05/init.c: dl05-tar.o
     437dl05.pre: $(dl05_OBJECTS) $(dl05_DEPENDENCIES)
     438        @rm -f dl05.pre
     439        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
    433440dl05-o5.o: dl05/dl-o5.cpp
    434441        $(AM_V_CXX)$(CXXCOMPILE) -c -o $@ $<
     
    441448        $(AM_V_GEN)$(BIN2C) -H $< $@
    442449dl05-tar.o: dl05-tar.c dl05-tar.h
    443 dl05/init.c: dl05-tar.o
    444 dl05.pre: $(dl05_OBJECTS) $(dl05_DEPENDENCIES)
    445         @rm -f dl05.pre
    446         $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     450        $(AM_V_CC)$(COMPILE) -c -o $@ $<
    447451dl05-sym.o: dl05.pre
    448452        $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
    449 dl05$(EXEEXT):  $(dl05_OBJECTS) $(dl05_DEPENDENCIES) dl05-sym.o
     453dl05$(EXEEXT): $(dl05_OBJECTS) $(dl05_DEPENDENCIES) dl05-sym.o
    450454        @rm -f $@
    451455        $(AM_V_CXXLD)$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
    452456CLEANFILES += dl05.pre dl05-sym.o dl05-o5.o dl05.tar dl05-tar.h
    453457endif
     458endif
     459endif
     460
     461if DLTESTS
     462if TEST_dl06
     463lib_tests += dl06
     464lib_screens += dl06/dl06.scn
     465lib_docs += dl06/dl06.doc
     466dl06_SOURCES = dl06/init.c dl06/dl-load.c dl06-tar.c dl06-tar.h
     467dl06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dl06) $(support_includes)
     468dl06/init.c: dl06-tar.o
     469dl06-pre.tar: Makefile
     470        $(AM_V_at)echo "Something in a file" > dl06_pre_file
     471        $(AM_V_GEN)$(PAX) -w -f $@ dl06_pre_file
     472dl06-pre-tar.c: dl06-pre.tar
     473        $(AM_V_GEN)$(BIN2C) -N dl06_tar -C $< $@
     474dl06-pre-tar.h: dl06-pre.tar
     475        $(AM_V_GEN)$(BIN2C) -N dl06_tar -H $< $@
     476dl06-pre-tar.o: dl06-pre-tar.c dl06-pre-tar.h
     477        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     478dl06-pre-init.o: dl06-pre-tar.o
     479        $(AM_V_CC)$(COMPILE)  $(dl06_CPPFLAGS) $(CPU_CFLAGS) $(AM_CFLAGS) \
     480                -DDL06_PRE -c -o $@ $(srcdir)/dl06/init.c
     481dl06.pre: dl06-pre-init.o dl06/dl06-dl-load.o dl06-pre-tar.o
     482        @rm -f $@
     483        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     484dl06-o1.o: dl06/dl06-o1.c Makefile
     485        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     486dl06-o2.o: dl06/dl06-o2.c Makefile
     487        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     488dl06.rap: dl06.pre dl06-o1.o dl06-o2.o
     489        $(AM_V_GEN)rtems-ld -r $(RTEMS_BUILD_ROOT) -O rap -b $< -e rtems_main -s \
     490         -o $@ $(filter-out dl06.pre,$+) -lm
     491dl06.tar: dl06.rap
     492        @rm -f $@
     493        $(AM_V_GEN)$(PAX) -w -f $@ $<
     494dl06-tar.c: dl06.tar
     495        $(AM_V_GEN)$(BIN2C) -C $< $@
     496dl06-tar.h: dl06.tar
     497        $(AM_V_GEN)$(BIN2C) -H $< $@
     498dl06-tar.o: dl06-tar.c dl06-tar.h
     499        $(AM_V_CC)$(COMPILE) -c -o $@ $<
     500dl06-sym.o: dl06.pre
     501        $(AM_V_GEN)rtems-syms -e -c "$(CFLAGS)" -o $@ $<
     502dl06$(EXEEXT): $(dl06_OBJECTS) dl06-sym.o
     503        @rm -f $@
     504        $(AM_V_CCLD)$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $+
     505CLEANFILES += dl06.pre dl06-sym.o dl06-o1.o dl06-o2.o dl06.tar dl06-tar.h
    454506endif
    455507endif
  • testsuites/libtests/configure.ac

    r31cd205d r86e79d7  
    133133RTEMS_TEST_CHECK([dl04])
    134134RTEMS_TEST_CHECK([dl05])
     135RTEMS_TEST_CHECK([dl06])
    135136RTEMS_TEST_CHECK([dumpbuf01])
    136137RTEMS_TEST_CHECK([dup2])
Note: See TracChangeset for help on using the changeset viewer.