Changes between Version 3 and Version 4 of GSoC/2019/POSIX_Compliance


Ignore:
Timestamp:
Jun 24, 2019, 4:44:25 PM (4 months ago)
Author:
Vaibhav Gupta
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/2019/POSIX_Compliance

    v3 v4  
    6363[https://medium.com/my-gsoc-2019-journey/apply-newlib-patch-to-rtems-source-builder-6873b0fb31b8 Apply Newlib Patch to RTEMS Source Builder]
    6464
     65== Task: Add psxinttypes01 for `<inttypes.h>` methods ==
     66
     67//This task was continued by me, original work belongs to the GSoC 2017 student of same project//. The working directory is : `rtems/testsuites/psxtests`.
     68
     69==== Modify the testsuite `psxinttypes01/init.c` ====
     70
     71There was need to modify the original code to add some more tests and fix some bugs. `inttypes` uses [http://pubs.opengroup.org/onlinepubs/009695399/functions/strtoimax.html strtoimax] and [http://pubs.opengroup.org/onlinepubs/009695399/functions/wcstoimax.html wcstoimax]. The 'opengroup' page contains every information to write testcases. For a good testsuite, every output (expected or error value) has to be verified.
     72
     73The patch: https://devel.rtems.org/changeset/d9fcb22/rtems
     74
     75==== Add `psxinttypes01/psxinttypes01.doc` and `psxinttypes01/psxinttypes01.scn` ====
     76
     77==== Modify `configure.ac` ====
     78
     79Entry had to be made for `psxinttypes01` in `configure.ac`, so as it gets build with rest of the testsuites of rtems. Note, not to change the alphabetical order of the previous entries.
     80
     81{{{
     82diff --git a/testsuites/psxtests/configure.ac b/testsuites/psxtests/configure.ac
     83index cdd6ee7e4e..85559e4aa5 100644
     84--- a/testsuites/psxtests/configure.ac
     85+++ b/testsuites/psxtests/configure.ac
     86@@ -91,6 +91,7 @@ RTEMS_TEST_CHECK([psxid01])
     87 RTEMS_TEST_CHECK([psximfs01])
     88 RTEMS_TEST_CHECK([psximfs02])
     89 RTEMS_TEST_CHECK([psxintrcritical01])
     90+RTEMS_TEST_CHECK([psxinttypes01])
     91 RTEMS_TEST_CHECK([psxitimer])
     92 RTEMS_TEST_CHECK([psxkey01])
     93 RTEMS_TEST_CHECK([psxkey02])
     94}}}
     95
     96==== Modify `Makefile.am` ====
     97
     98This entry is made to generate `make` commands inside `Makefile.in`. Note `$(support_includes)` CPPFLAG is necesaary to include required header files.
     99
     100{{{
     101diff --git a/testsuites/psxtests/Makefile.am b/testsuites/psxtests/Makefile.am
     102index 1e354c0df7..59c9f2085b 100755
     103--- a/testsuites/psxtests/Makefile.am
     104+++ b/testsuites/psxtests/Makefile.am
     105@@ -523,6 +523,13 @@ psxintrcritical01_CPPFLAGS = $(AM_CPPFLAGS) \
     106 endif
     107 endif
     108
     109+if TEST_psxinttypes01
     110+psx_tests += psxinttypes01
     111+psxinttypes01_SOURCES = psxinttypes01/init.c
     112+psxinttypes01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_psxinttypes01) \
     113+       $(support_includes)
     114+endif
     115+
     116 if HAS_POSIX
     117 if TEST_psxitimer
     118 psx_tests += psxitimer
     119}}}
     120
    65121== References ==
    66122