Changeset 3170


Ignore:
Timestamp:
Jan 31, 2014, 1:01:48 PM (7 years ago)
Author:
Peter
Message:

in yat-hello-check test that versions agree. refs #771.

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Makefile.am

    r3151 r3170  
    55# Copyright (C) 2005 Jari Häkkinen, Peter Johansson
    66# Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
    7 # Copyright (C) 2009, 2010, 2011, 2012, 2013 Peter Johansson
     7# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Peter Johansson
    88#
    99# This file is part of the yat library, http://dev.thep.lu.se/yat
     
    237237  && $(MAKE) $(AM_MAKEFLAGS) all \
    238238  && ./hello \
     239  && test x"`./hello`" = x"$(VERSION)" \
    239240  && cd .. \
    240241  && rm -rf yat-hello-1.0
  • trunk/test/yat-hello/hello.cc

    r2438 r3170  
    22
    33/*
    4   Copyright (C) 2011 Peter Johansson
     4  Copyright (C) 2011, 2014 Peter Johansson
    55
    66  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    2121
    2222#include <yat/utility/Vector.h>
     23#include <yat/utility/version.h>
    2324#include <yat/utility/Matrix.h>
    2425#include <cstdlib>
     
    3233  if (v(1)!=1.0)
    3334    return EXIT_FAILURE;
    34   std::cout << "hello world\n";
     35  if (theplu::yat::utility::version() != YAT_VERSION) {
     36    std::cerr << "error:\ncompiled against: "
     37              << YAT_VERSION << "\nlinked against: "
     38              << theplu::yat::utility::version() << "\n";
     39    return EXIT_FAILURE;
     40  }
     41  std::cout << theplu::yat::utility::version() << "\n";
    3542  return EXIT_SUCCESS;
    3643}
Note: See TracChangeset for help on using the changeset viewer.