stub out unit test

This commit is contained in:
Barry Haddow 2013-09-18 21:58:38 +01:00
parent d737a352b3
commit 266e36c440
3 changed files with 41 additions and 2 deletions

View File

@ -6,6 +6,9 @@
#include <util/string_piece.hh>
#include "moses/Factor.h"
#include "moses/Sentence.h"
#include "StatelessFeatureFunction.h"
#include "FFState.h"

View File

@ -0,0 +1,36 @@
/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2013- University of Edinburgh
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
***********************************************************************/
#include <iostream>
#include <boost/test/unit_test.hpp>
#include "SparseHieroReorderingFeature.h"
using namespace Moses;
using namespace std;
BOOST_AUTO_TEST_SUITE(shrf)
BOOST_AUTO_TEST_CASE(lexical_rule)
{
SparseHieroReorderingFeature feature("name=shrf");
}
BOOST_AUTO_TEST_SUITE_END()

View File

@ -64,7 +64,7 @@ lib moses :
: #exceptions
ThreadPool.cpp
SyntacticLanguageModel.cpp
*Test.cpp Mock*.cpp
*Test.cpp Mock*.cpp FF/*Test.cpp
FF/Factory.cpp
]
headers FF_Factory.o LM//LM TranslationModel/CompactPT//CompactPT synlm ThreadPool rt
@ -74,5 +74,5 @@ alias headers-to-install : [ glob-tree *.h ] ;
import testing ;
unit-test moses_test : [ glob *Test.cpp Mock*.cpp ] moses headers ..//z ../OnDiskPt//OnDiskPt ..//boost_unit_test_framework ;
unit-test moses_test : [ glob *Test.cpp Mock*.cpp FF/*Test.cpp ] moses headers ..//z ../OnDiskPt//OnDiskPt ..//boost_unit_test_framework ;