forked from CodeConstruct/mctp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix toml_json.c output There were two issues; partly related to changes in upstream toml-test: - Use appropriate type for local date and times. - The arrays would get printed as: {"type": "array", "value": [...the values...]} But this should just be: [...the values...] It also wouldn't print mixed arrays because 'm' was missing in the switch; I adapted this from toml_cat.c. Before: toml-test [./toml_json]: using embedded tests: 328 passed, 87 failed After: toml-test [./toml_json]: using embedded tests: 351 passed, 64 failed The remaining test failures look like a few minor issues in toml.c, rather than toml_json.c * Also fix the "test1" toml-test runner
- Loading branch information
Showing
6 changed files
with
48 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
mkdir -p $DIR/goworkspace | ||
export GOPATH=$DIR/goworkspace | ||
go get github.com/BurntSushi/toml-test@latest # install test suite | ||
go install github.com/BurntSushi/toml/cmd/toml-test-decoder@latest # e.g., install my parser | ||
cp $GOPATH/bin/* . | ||
|
||
export GOBIN=$DIR | ||
go install github.com/toml-lang/toml-test/cmd/toml-test@latest # install test suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
rm -f tests | ||
ln -s ./goworkspace/pkg/mod/github.com/\!burnt\!sushi/[email protected]/tests | ||
./toml-test ../toml_json | ||
$DIR/toml-test $DIR/../toml_json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
[ -d toml-spec-tests ] || git clone https://github.com/cktan/toml-spec-tests.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters