aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/test_json_parser/t/003_test_semantic.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/modules/test_json_parser/t/003_test_semantic.pl')
-rw-r--r--src/test/modules/test_json_parser/t/003_test_semantic.pl36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/test/modules/test_json_parser/t/003_test_semantic.pl b/src/test/modules/test_json_parser/t/003_test_semantic.pl
new file mode 100644
index 00000000000..e6eb7c2fcc2
--- /dev/null
+++ b/src/test/modules/test_json_parser/t/003_test_semantic.pl
@@ -0,0 +1,36 @@
+use strict;
+use warnings;
+
+use PostgreSQL::Test::Utils;
+use Test::More;
+use FindBin;
+
+use File::Temp qw(tempfile);
+
+my $test_file = "$FindBin::RealBin/../tiny.json";
+my $test_out = "$FindBin::RealBin/../tiny.out";
+
+my $exe = "test_json_parser_incremental";
+
+my ($stdout, $stderr) = run_command( [$exe, "-s", $test_file] );
+
+is($stderr, "", "no error output");
+
+my ($fh, $fname) = tempfile();
+
+print $fh $stdout,"\n";
+
+close($fh);
+
+($stdout, $stderr) = run_command(["diff", "-u", $fname, $test_out]);
+
+is($stdout, "", "no output diff");
+is($stderr, "", "no diff error");
+
+done_testing();
+
+
+
+
+
+