Code Monkey home page Code Monkey logo

Comments (7)

jpmens avatar jpmens commented on July 17, 2024 1

@jgarte I've changed my mind: Jo 1.9 is released as 1.8 didn't pass tests.

Thank you for reporting this!

from jo.

jpmens avatar jpmens commented on July 17, 2024 1

from jo.

jgarte avatar jgarte commented on July 17, 2024
configure: WARNING: unrecognized options: --enable-fast-install

  Jo.............: version 1.8
  Prefix.........: /gnu/store/vxsri8siqgdz4w01liddsy7dgzh5ls05-jo-1.8
  C compiler.....: gcc -g -O2
  Pandoc.........: NONE
  Bash completion: ${prefix}/etc/bash_completion.d/jo.bash

  Now type 'make [<target>]'
    where the optional <target> is:
      all                - build all binaries
      check              - run the tests
      install            - install everything

phase `configure' succeeded after 3.2 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
  CC       json.o
  CC       base64.o
  CC       jo.o
  CCLD     jo
phase `build' succeeded after 0.6 seconds
starting phase `check'
make  check-TESTS
make[1]: Entering directory '/tmp/guix-build-jo-1.8.drv-0/jo-1.8'
make[2]: Entering directory '/tmp/guix-build-jo-1.8.drv-0/jo-1.8'
PASS: tests/jo.test 1 -  basic logo
PASS: tests/jo.test 2 -  basic logo (stdin)
PASS: tests/jo.test 3 -  basic two values
PASS: tests/jo.test 4 -  nested with executable
PASS: tests/jo.test 5 -  nested native
PASS: tests/jo.test 6 -  strings and numbers; pretty (Vanessa)
PASS: tests/jo.test 7 -  version check
PASS: tests/jo.test 8 -  data from file: text
PASS: tests/jo.test 9 -  data from file: base64-encoded
PASS: tests/jo.test 10 -  array: simple
PASS: tests/jo.test 11 -  array: true,false,null (native and string)
PASS: tests/jo.test 12 -  object: geo
PASS: tests/jo.test 13 -  object: face card jo logo
PASS: tests/jo.test 14 -  values: with equals signs in them
PASS: tests/jo.test 15 -  object from file
PASS: tests/jo.test 16 -  quotes in quotes
PASS: tests/jo.test 17 -  type coercion
PASS: tests/jo.test 18 -  nested objects with user-specified delimiter
PASS: tests/jo.test 19 -  read from pipe
FAIL: tests/jo.test 20 -  read json array elements
PASS: tests/jo.test 21 -  read nested json elements
PASS: tests/jo.test 22 -  avoid reading from file if escaped \@
PASS: tests/jo.test 23 -  disable creation of null-valued keys
PASS: tests/jo.test 24 -  jo as filter
PASS: tests/jo.test 25 -  overwrite values of existing object keys
PASS: tests/jo.test 26 -  read from stdin
PASS: tests/jo.test 27 -  user-friendly errors
============================================================================
Testsuite summary for jo 1.8
============================================================================
# TOTAL: 27
# PASS:  26
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to [email protected]
============================================================================
make[2]: *** [Makefile:807: test-suite.log] Error 1
make[2]: Leaving directory '/tmp/guix-build-jo-1.8.drv-0/jo-1.8'
make[1]: *** [Makefile:915: check-TESTS] Error 2
make[1]: Leaving directory '/tmp/guix-build-jo-1.8.drv-0/jo-1.8'
make: *** [Makefile:1123: check-am] Error 2

Test suite failed, dumping logs.

--- ./test-suite.log --------------------------------------------------------

==============================
   jo 1.8: ./test-suite.log
==============================

# TOTAL: 27
# PASS:  26
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/jo
==============

1..27
ok 1 -  basic logo
PASS: tests/jo.test 1 -  basic logo
ok 2 -  basic logo (stdin)
PASS: tests/jo.test 2 -  basic logo (stdin)
ok 3 -  basic two values
PASS: tests/jo.test 3 -  basic two values
ok 4 -  nested with executable
PASS: tests/jo.test 4 -  nested with executable
ok 5 -  nested native
PASS: tests/jo.test 5 -  nested native
ok 6 -  strings and numbers; pretty (Vanessa)
...

from jo.

jpmens avatar jpmens commented on July 17, 2024

from jo.

jgarte avatar jgarte commented on July 17, 2024

I was building the Guix package for it on GNU/Linux (void linux):

(define-public jo
  (package
    (name "jo")
    (version "1.8")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://github.com/jpmens/jo/releases/download/"
                           version "/jo-" version ".tar.gz"))
       (sha256
        (base32 "11n6asy5h52awyr5cp39r2x124akpqk7m02x9idrjf21ap3lpdlh"))))
    (build-system gnu-build-system)
    (home-page "https://github.com/jpmens/jo")
    (synopsis "Output JSON from a shell")
    (description "@code{jo} is a command-line utility to create JSON objects or
arrays.  It creates a JSON string on stdout from words provided as
command-line arguments or read from stdin.")
    (license (list license:gpl2+
                   license:expat)))) ; json.c, json.h

from jo.

jpmens avatar jpmens commented on July 17, 2024

Sorry about that: missing data files lead to that test 20 failing.

I’ll wait for a confirmation in #194 and will then cut a 1.9. release.

from jo.

gromgit avatar gromgit commented on July 17, 2024

@jpmens, is this the change required when adding new files?

diff --git a/Makefile.am b/Makefile.am
index 2387f43..2ac7e84 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -67,7 +67,7 @@ EXTRA_DIST    = $(jo_EXTRA) \
                  tests/jo.17.sh tests/jo.17.exp tests/jo-creator.txt \
                  tests/jo.18.sh tests/jo.18.exp \
                  tests/jo.19.sh tests/jo.19.exp \
-                 tests/jo.20.sh tests/jo.20.exp \
+                 tests/jo.20.sh tests/jo.20.exp tests/jo-large1.json tests/jo-large2.json \
                  tests/jo.21.sh tests/jo.21.exp \
                  tests/jo.22.sh tests/jo.22.exp \
                  tests/jo.23.sh tests/jo.23.exp \

from jo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.