diff options
| author | Paul Baltescu <pauldb89@gmail.com> | 2013-02-21 14:13:55 +0000 | 
|---|---|---|
| committer | Paul Baltescu <pauldb89@gmail.com> | 2013-02-21 14:13:55 +0000 | 
| commit | bca26d953a774b8efca12f30407390b3f5eef9d0 (patch) | |
| tree | fe922de5c89b1844f677d550dcc24e87edd67a55 /utils | |
| parent | 54a1c0e2bde259e3acc9c0a8ec8da3c7704e80ca (diff) | |
| parent | 95c364f2cb002241c4a62bedb1c5ef6f1e9a7f22 (diff) | |
Merge branch 'master' of https://github.com/pauldb89/cdec
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/Makefile.am | 53 | ||||
| -rw-r--r-- | utils/weights_test.cc | 2 | 
2 files changed, 53 insertions, 2 deletions
diff --git a/utils/Makefile.am b/utils/Makefile.am index 639c30b8..c5fedb78 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -13,7 +13,57 @@ TESTS = ts small_vector_test logval_test weights_test dict_test m_test  noinst_LIBRARIES = libutils.a +# EXTRA_DIST = test_data +  libutils_a_SOURCES = \ +  test_data \ +  alias_sampler.h \ +  alignment_io.h \ +  array2d.h \ +  b64tools.h \ +  batched_append.h \ +  city.h \ +  citycrc.h \ +  corpus_tools.h \ +  dict.h \ +  fast_sparse_vector.h \ +  fdict.h \ +  feature_vector.h \ +  filelib.h \ +  gzstream.h \ +  hash.h \ +  have_64_bits.h \ +  indices_after.h \ +  kernel_string_subseq.h \ +  logval.h \ +  m.h \ +  murmur_hash.h \ +  named_enum.h \ +  null_deleter.h \ +  null_traits.h \ +  perfect_hash.h \ +  prob.h \ +  sampler.h \ +  semiring.h \ +  show.h \ +  small_vector.h \ +  sparse_vector.h \ +  static_utoa.h \ +  stringlib.h \ +  swap_pod.h \ +  tdict.h \ +  timing_stats.h \ +  utoa.h \ +  value_array.h \ +  verbose.h \ +  warning_compiler.h \ +  warning_pop.h \ +  warning_push.h \ +  weights.h \ +  wordid.h \ +  writer.h \ +  fast_lexical_cast.hpp \ +  intrusive_refcount.hpp \    alignment_io.cc \    b64tools.cc \    corpus_tools.cc \ @@ -54,5 +104,6 @@ small_vector_test_LDADD = libutils.a $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) $(BOOS  ################################################################  # do NOT NOT NOT add any other -I includes NO NO NO NO NO ###### -AM_CPPFLAGS = -DBOOST_TEST_DYN_LINK -W -Wall -I. +AM_CPPFLAGS = -DBOOST_TEST_DYN_LINK -W -Wall -I. -I$(top_srcdir) -DTEST_DATA=\"$(top_srcdir)/utils/test_data\"  ################################################################ + diff --git a/utils/weights_test.cc b/utils/weights_test.cc index 4be4c40f..0d5d8512 100644 --- a/utils/weights_test.cc +++ b/utils/weights_test.cc @@ -7,6 +7,6 @@ using namespace std;  BOOST_AUTO_TEST_CASE(Load) {    vector<weight_t> v; -  Weights::InitFromFile("test_data/weights", &v); +  Weights::InitFromFile(TEST_DATA "/weights", &v);    Weights::WriteToFile("-", v);  }  | 
