git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v8 2/2] json-writer: t0019: add perl unit test

From
JHJeff Hostetler <git@jeffhostetler.com>
Date
Jun 11, 2018, 12:16 UTC
Message-ID
<9aeac3a6-ea04-a43e-3851-1083792dfb5d@jeffhostetler.com>
In-Reply-To
<CAPig+cS8MjQNKabrQwuWzO4DDYJcfP_81n9H37efgXOiRzv9TQ@mail.gmail.com>
On 6/7/2018 1:13 PM, Eric Sunshine wrote:
Show 27 quoted lines
> On Thu, Jun 7, 2018 at 10:12 AM,  <git@jeffhostetler.com> wrote:
>> Test json-writer output using perl script.
>>
>> Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
>> ---
>> diff --git a/t/t0019/parse_json.perl b/t/t0019/parse_json.perl
>> @@ -0,0 +1,52 @@
>> +#!/usr/bin/perl
>> +use strict;
>> +use warnings;
>> +use JSON;
> 
> This new script is going to have to be protected by a prerequisite
> since the JSON module is not part of the standard Perl installation,
> thus will not necessarily be installed everywhere (it isn't on any of
> my machines, for instance). Something like:
> 
>      test_lazy_prereq PERLJSON '
>          perl -MJSON -e "exit 0"
>      '
> 
> which would be used like this:
> 
>      test_expect_success PERLJSON 'parse JSON using Perl' '
>          ...
>      '
> 

will do. thanks! Jeff

Previous: Eric Sunshine
Message 13 of 13 in “json-writer V8”
  1. 0/2 json-writer V8git@jeffhostetler.com, Jun 7, 2018
  2. 1/2 json_writer: new routines to create data in JSON formatgit@jeffhostetler.com, Jun 7, 2018
  3. Eric SunshineJun 7, 2018
  4. Jeff HostetlerJun 8, 2018
  5. René ScharfeJun 8, 2018
  6. Jeff HostetlerJun 11, 2018
  7. René ScharfeJun 8, 2018
  8. Jeff HostetlerJun 11, 2018
  9. René ScharfeJun 8, 2018
  10. Jeff HostetlerJun 11, 2018
  11. 2/2 json-writer: t0019: add perl unit testgit@jeffhostetler.com, Jun 7, 2018
  12. Eric SunshineJun 7, 2018
  13. Jeff HostetlerJun 11, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.