Fix and run Freezer tests
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/46023d57 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/46023d57 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/46023d57 Branch: refs/heads/master Commit: 46023d57b89b83e146728aca2e42e325d14efa65 Parents: 78889bc Author: Nick Wellnhofer <[email protected]> Authored: Mon May 4 17:15:40 2015 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Mon May 4 18:45:56 2015 +0200 ---------------------------------------------------------------------- core/Lucy/Test.c | 2 ++ core/Lucy/Test/Util/TestFreezer.c | 2 +- perl/t/core/037-freezer.t | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/46023d57/core/Lucy/Test.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Test.c b/core/Lucy/Test.c index 196ae6a..6817911 100644 --- a/core/Lucy/Test.c +++ b/core/Lucy/Test.c @@ -77,6 +77,7 @@ #include "Lucy/Test/Store/TestRAMFileHandle.h" #include "Lucy/Test/Store/TestRAMFolder.h" #include "Lucy/Test/TestSchema.h" +#include "Lucy/Test/Util/TestFreezer.h" #include "Lucy/Test/Util/TestIndexFileNames.h" #include "Lucy/Test/Util/TestJson.h" #include "Lucy/Test/Util/TestMemoryPool.h" @@ -93,6 +94,7 @@ Test_create_test_suite() { TestSuite_Add_Batch(suite, (TestBatch*)TestMemPool_new()); TestSuite_Add_Batch(suite, (TestBatch*)TestIxFileNames_new()); TestSuite_Add_Batch(suite, (TestBatch*)TestJson_new()); + TestSuite_Add_Batch(suite, (TestBatch*)TestFreezer_new()); TestSuite_Add_Batch(suite, (TestBatch*)TestI32Arr_new()); TestSuite_Add_Batch(suite, (TestBatch*)TestRAMFH_new()); TestSuite_Add_Batch(suite, (TestBatch*)TestFSFH_new()); http://git-wip-us.apache.org/repos/asf/lucy/blob/46023d57/core/Lucy/Test/Util/TestFreezer.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Test/Util/TestFreezer.c b/core/Lucy/Test/Util/TestFreezer.c index 90c8336..2b924b9 100644 --- a/core/Lucy/Test/Util/TestFreezer.c +++ b/core/Lucy/Test/Util/TestFreezer.c @@ -171,7 +171,7 @@ test_varray(TestBatchRunner *runner) { void TestFreezer_Run_IMP(TestFreezer *self, TestBatchRunner *runner) { - TestBatchRunner_Plan(runner, (TestBatch*)self, 10); + TestBatchRunner_Plan(runner, (TestBatch*)self, 11); test_bytebuf(runner); test_string(runner); test_hash(runner); http://git-wip-us.apache.org/repos/asf/lucy/blob/46023d57/perl/t/core/037-freezer.t ---------------------------------------------------------------------- diff --git a/perl/t/core/037-freezer.t b/perl/t/core/037-freezer.t new file mode 100644 index 0000000..8772651 --- /dev/null +++ b/perl/t/core/037-freezer.t @@ -0,0 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +use strict; +use warnings; + +use Lucy::Test; +my $success = Lucy::Test::run_tests("Lucy::Test::Util::TestFreezer"); + +exit($success ? 0 : 1); +
