From f720a75aba553acfa285f6788564d4a6d7b43d34 Mon Sep 17 00:00:00 2001 From: Phil Shafer Date: Tue, 16 May 2017 18:41:36 +0000 Subject: Import libxo 0.7.2 --- tests/core/saved/test_01.E.out | 2 ++ tests/core/saved/test_01.J.out | 2 +- tests/core/saved/test_01.JP.out | 2 ++ tests/core/saved/test_01.X.out | 2 +- tests/core/saved/test_01.XP.out | 2 ++ tests/core/saved/test_10.X.out | 2 +- tests/core/saved/test_10.XP.out | 2 +- tests/core/saved/test_11.X.out | 2 +- tests/core/saved/test_11.XP.out | 2 +- tests/core/test_01.c | 4 ++++ 10 files changed, 16 insertions(+), 6 deletions(-) (limited to 'tests/core') diff --git a/tests/core/saved/test_01.E.out b/tests/core/saved/test_01.E.out index de23baad0b16..75f5d0a1d3da 100644 --- a/tests/core/saved/test_01.E.out +++ b/tests/core/saved/test_01.E.out @@ -1,5 +1,7 @@ op create: [] [] op open_container: [top] [] +op content: [kve_start] [0xdeadbeef] +op content: [kve_end] [0xcabb1e] op string: [host] [my-box] op string: [domain] [example.com] op string: [host] [my-box] diff --git a/tests/core/saved/test_01.J.out b/tests/core/saved/test_01.J.out index 3fc12a173148..1577ce0c0410 100644 --- a/tests/core/saved/test_01.J.out +++ b/tests/core/saved/test_01.J.out @@ -1,2 +1,2 @@ -{"top": {"host":"my-box","domain":"example.com","host":"my-box","domain":"example.com","label":"value","max-chaos":"very","min-chaos":42,"some-chaos":"[42]","host":"my-box","domain":"example.com", "data": {"item": [{"sku":"GRO-000-415","name":"gum","sold":1412,"in-stock":54,"on-order":10}, {"sku":"HRD-000-212","name":"rope","sold":85,"in-stock":4,"on-order":2}, {"sku":"HRD-000-517","name":"ladder","sold":0,"in-stock":2,"on-order":1}, {"sku":"HRD-000-632","name":"bolt","sold":4123,"in-stock":144,"on-order":42}, {"sku":"GRO-000-2331","name":"water","sold":17,"in-stock":14,"on-order":2}]}, "data2": {"item": [{"sku":"GRO-000-415","name":"gum","sold":1412.0,"in-stock":54,"on-order":10}, {"sku":"HRD-000-212","name":"rope","sold":85.0,"in-stock":4,"on-order":2}, {"sku":"HRD-000-517","name":"ladder","sold":0,"in-stock":2,"on-order":1}, {"sku":"HRD-000-632","name":"bolt","sold":4123.0,"in-stock":144,"on-order":42}, {"sku":"GRO-000-2331","name":"water","sold":17.0,"in-stock":14,"on-order":2}]}, "data3": {"item": [{"sku":"GRO-000-533","name":"fish","sold":1321.0,"in-stock":45,"on-order":1}]}, "data4": {"item": ["gum","rope","ladder","bolt","water"]},"cost":425,"cost":455,"mode":"mode","mode_octal":"octal","links":"links","user":"user","group":"group","mode":"/some/file","mode_octal":640,"links":1,"user":"user","group":"group"} +{"top": {"kve_start":"0xdeadbeef","kve_end":"0xcabb1e","host":"my-box","domain":"example.com","host":"my-box","domain":"example.com","label":"value","max-chaos":"very","min-chaos":42,"some-chaos":"[42]","host":"my-box","domain":"example.com", "data": {"item": [{"sku":"GRO-000-415","name":"gum","sold":1412,"in-stock":54,"on-order":10}, {"sku":"HRD-000-212","name":"rope","sold":85,"in-stock":4,"on-order":2}, {"sku":"HRD-000-517","name":"ladder","sold":0,"in-stock":2,"on-order":1}, {"sku":"HRD-000-632","name":"bolt","sold":4123,"in-stock":144,"on-order":42}, {"sku":"GRO-000-2331","name":"water","sold":17,"in-stock":14,"on-order":2}]}, "data2": {"item": [{"sku":"GRO-000-415","name":"gum","sold":1412.0,"in-stock":54,"on-order":10}, {"sku":"HRD-000-212","name":"rope","sold":85.0,"in-stock":4,"on-order":2}, {"sku":"HRD-000-517","name":"ladder","sold":0,"in-stock":2,"on-order":1}, {"sku":"HRD-000-632","name":"bolt","sold":4123.0,"in-stock":144,"on-order":42}, {"sku":"GRO-000-2331","name":"water","sold":17.0,"in-stock":14,"on-order":2}]}, "data3": {"item": [{"sku":"GRO-000-533","name":"fish","sold":1321.0,"in-stock":45,"on-order":1}]}, "data4": {"item": ["gum","rope","ladder","bolt","water"]},"cost":425,"cost":455,"mode":"mode","mode_octal":"octal","links":"links","user":"user","group":"group","mode":"/some/file","mode_octal":640,"links":1,"user":"user","group":"group"} } diff --git a/tests/core/saved/test_01.JP.out b/tests/core/saved/test_01.JP.out index 2c7397f5e20a..d24abbc0254f 100644 --- a/tests/core/saved/test_01.JP.out +++ b/tests/core/saved/test_01.JP.out @@ -1,5 +1,7 @@ { "top": { + "kve_start": "0xdeadbeef", + "kve_end": "0xcabb1e", "host": "my-box", "domain": "example.com", "host": "my-box", diff --git a/tests/core/saved/test_01.X.out b/tests/core/saved/test_01.X.out index da80e681b27b..a243ce7c79f1 100644 --- a/tests/core/saved/test_01.X.out +++ b/tests/core/saved/test_01.X.out @@ -1 +1 @@ -my-boxexample.commy-boxexample.comvery42[42]my-boxexample.comGRO-000-415gum14125410HRD-000-212rope8542HRD-000-517ladder021HRD-000-632bolt412314442GRO-000-2331water17142GRO-000-415gum1412.05410HRD-000-212rope85.042HRD-000-517ladder021HRD-000-632bolt4123.014442GRO-000-2331water17.0142GRO-000-533fish1321.0451gumropeladderboltwater425455modeoctallinksusergroup/some/file6401usergroup \ No newline at end of file +0xdeadbeef0xcabb1emy-boxexample.commy-boxexample.comvery42[42]my-boxexample.comGRO-000-415gum14125410HRD-000-212rope8542HRD-000-517ladder021HRD-000-632bolt412314442GRO-000-2331water17142GRO-000-415gum1412.05410HRD-000-212rope85.042HRD-000-517ladder021HRD-000-632bolt4123.014442GRO-000-2331water17.0142GRO-000-533fish1321.0451gumropeladderboltwater425455modeoctallinksusergroup/some/file6401usergroup \ No newline at end of file diff --git a/tests/core/saved/test_01.XP.out b/tests/core/saved/test_01.XP.out index c331dceafe62..98dc13b68f29 100644 --- a/tests/core/saved/test_01.XP.out +++ b/tests/core/saved/test_01.XP.out @@ -1,4 +1,6 @@ + 0xdeadbeef + 0xcabb1e my-box example.com my-box diff --git a/tests/core/saved/test_10.X.out b/tests/core/saved/test_10.X.out index 49c6dd88c4fd..c9321566d907 100644 --- a/tests/core/saved/test_10.X.out +++ b/tests/core/saved/test_10.X.out @@ -1 +1 @@ -boldbold-ultripleinv-ulunderlineplainGRO-000-415gum14125410HRD-000-212rope8542HRD-000-517ladder021HRD-000-632bolt412314442GRO-000-2331water17142GRO-000-415gum1412.05410HRD-000-212rope85.042HRD-000-517ladder021HRD-000-632bolt4123.014442GRO-000-2331water17.0142GRO-000-533fish1321.0451gumropeladderboltwater425455 \ No newline at end of file +boldbold-ultripleinv-ulunderlineplainGRO-000-415gum14125410HRD-000-212rope8542HRD-000-517ladder021HRD-000-632bolt412314442GRO-000-2331water17142GRO-000-415gum1412.05410HRD-000-212rope85.042HRD-000-517ladder021HRD-000-632bolt4123.014442GRO-000-2331water17.0142GRO-000-533fish1321.0451gumropeladderboltwater425455 \ No newline at end of file diff --git a/tests/core/saved/test_10.XP.out b/tests/core/saved/test_10.XP.out index 33c88d96214f..ec1aa93c7512 100644 --- a/tests/core/saved/test_10.XP.out +++ b/tests/core/saved/test_10.XP.out @@ -1,4 +1,4 @@ - + bold bold-ul diff --git a/tests/core/saved/test_11.X.out b/tests/core/saved/test_11.X.out index bb73a4293c9a..5c279b73b151 100644 --- a/tests/core/saved/test_11.X.out +++ b/tests/core/saved/test_11.X.out @@ -14,4 +14,4 @@ {{test-program: }} {{An application 1011 log entry}} - \ No newline at end of file + \ No newline at end of file diff --git a/tests/core/saved/test_11.XP.out b/tests/core/saved/test_11.XP.out index 46b5dd079ee5..02765614e9ab 100644 --- a/tests/core/saved/test_11.XP.out +++ b/tests/core/saved/test_11.XP.out @@ -14,5 +14,5 @@ {{test-program: }} {{An application 1011 log entry}} - + diff --git a/tests/core/test_01.c b/tests/core/test_01.c index 05d778a0bca4..a3a6a4be3e29 100644 --- a/tests/core/test_01.c +++ b/tests/core/test_01.c @@ -9,6 +9,7 @@ */ #include +#include #include #include @@ -79,6 +80,9 @@ main (int argc, char **argv) xo_open_container_h(NULL, "top"); + xo_emit("{e:kve_start/%#jx}", (uintmax_t) 0xdeadbeef); + xo_emit("{e:kve_end/%#jx}", (uintmax_t) 0xcabb1e); + xo_emit("testing argument modifier {a:}.{a:}...\n", "host", "my-box", "domain", "example.com"); -- cgit v1.2.3