[riot-notifications] [RIOT-OS/RIOT] Adopt PR #2189: a JSON en/decoder (#8312)

Sebastian Meiling notifications at github.com
Mon Feb 25 15:15:43 CET 2019


smlng commented on this pull request.



> +    )
+    return b'json_parsing_test_%s_%d' % (escaped_str, index)
+
+
+def main(dest_path='./generated-parsing-tests.c',
+         source_path='./JSONTestSuite',
+         cwd=os.path.dirname(os.path.realpath(__file__))):
+    test_names = []
+    cwd = os.path.abspath(cwd)
+    with open(os.path.join(cwd, dest_path), 'wb') as dest_file:
+        # License:
+        dest_file.write(b'/* This file was generated using the tests in '
+                        b'JSON Parsing Test Suite,\n')
+        dest_file.write(b' * which has the following license information:\n')
+        dest_file.write(b'\n')
+        with open(os.path.join(cwd, source_path, './LICENSE'), 'rb') as license:

yep added README to provide instructions on how to update the generated stuff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/8312#discussion_r259841426
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190225/bbe0081e/attachment.html>


More information about the notifications mailing list