Changeset 3170
- Timestamp:
- Jan 31, 2014, 1:01:48 PM (9 years ago)
- Location:
- trunk/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/Makefile.am
r3151 r3170 5 5 # Copyright (C) 2005 Jari Häkkinen, Peter Johansson 6 6 # Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér 7 # Copyright (C) 2009, 2010, 2011, 2012, 2013 Peter Johansson7 # Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Peter Johansson 8 8 # 9 9 # This file is part of the yat library, http://dev.thep.lu.se/yat … … 237 237 && $(MAKE) $(AM_MAKEFLAGS) all \ 238 238 && ./hello \ 239 && test x"`./hello`" = x"$(VERSION)" \ 239 240 && cd .. \ 240 241 && rm -rf yat-hello-1.0 -
trunk/test/yat-hello/hello.cc
r2438 r3170 2 2 3 3 /* 4 Copyright (C) 2011 Peter Johansson4 Copyright (C) 2011, 2014 Peter Johansson 5 5 6 6 This file is part of the yat library, http://dev.thep.lu.se/yat … … 21 21 22 22 #include <yat/utility/Vector.h> 23 #include <yat/utility/version.h> 23 24 #include <yat/utility/Matrix.h> 24 25 #include <cstdlib> … … 32 33 if (v(1)!=1.0) 33 34 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"; 35 42 return EXIT_SUCCESS; 36 43 }
Note: See TracChangeset
for help on using the changeset viewer.