Skip to content
Snippets Groups Projects
Commit 3a519921 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

This is release 2.3.4c

parents 3c40d17b b1b45cc7
No related branches found
No related tags found
No related merge requests found
cd /G/f2 cd /G/f2
### merge devel into master ### merge devel into master
git rebase -i HEAD~99 # correct commit messages; do not go past last tag or branch from master # git rebase -i HEAD~99 # correct commit messages; do not go past last tag or branch from master
git checkout master git checkout master
git pull origin master git pull origin master
git merge --no-ff devel git merge --no-ff devel
......
Release 2.3.4c of 27jan17:
- New function NOlo::j2j to prepare for better J:J matching in mpgi, mpgr, and elsewhere
- Correct CMake mechanism in ptest
- Explicit library dependence in utest/CMakeLists.txt
- Copy edit CMake files
- Previous release had erroneous path 2.3,4b (comma instead of point)
Release 2.3.4b of 25jan17: Release 2.3.4b of 25jan17:
- Grid created by fm now ends with x[ni-1]=1. - Grid created by fm now ends with x[ni-1]=1.
......
...@@ -8,7 +8,7 @@ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) ...@@ -8,7 +8,7 @@ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
project(Frida) project(Frida)
set(Frida_VERSION 2.3.4b) set(Frida_VERSION 2.3.4c)
include(CTest) # equivalent to "enable_testing() ??? include(CTest) # equivalent to "enable_testing() ???
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) # => 'make check' is an alias for 'ctest' add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) # => 'make check' is an alias for 'ctest'
...@@ -45,11 +45,9 @@ add_subdirectory(lib) ...@@ -45,11 +45,9 @@ add_subdirectory(lib)
add_subdirectory(src) add_subdirectory(src)
add_subdirectory(share) add_subdirectory(share)
add_subdirectory(man) add_subdirectory(man)
add_subdirectory(utest) add_subdirectory(utest) # unit tests
add_subdirectory(ftest) add_subdirectory(ftest) # functional tests (run Frida with given script)
# --- Additional tests to be activated when needed --- # --- Additional tests to be activated when needed ---
# performance tests add_subdirectory(ptest) # performance tests
add_subdirectory(ptest) # add_subdirectory(readplus/test) # interactive readline test
# interactive readline test
# add_subdirectory(readplus/test)
...@@ -15,5 +15,9 @@ foreach(test_src ${test_sources}) ...@@ -15,5 +15,9 @@ foreach(test_src ${test_sources})
# remove directory path and suffix, to retain just the name of the test # remove directory path and suffix, to retain just the name of the test
string(REGEX REPLACE ".*/" "" test_name "${test_src}") string(REGEX REPLACE ".*/" "" test_name "${test_src}")
string(REGEX REPLACE ".f2t$" "" test_name "${test_name}") string(REGEX REPLACE ".f2t$" "" test_name "${test_name}")
add_test(NAME ${test_name} COMMAND ${CMAKE_BINARY_DIR}/src/frida ARGUMENTS ${test_src} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) add_test(
NAME ${test_name}
COMMAND ${CMAKE_BINARY_DIR}/src/frida
ARGUMENTS ${test_src}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endforeach(test_src) endforeach(test_src)
...@@ -89,7 +89,10 @@ ${FLEX_xaxlex_OUTPUTS} ...@@ -89,7 +89,10 @@ ${FLEX_xaxlex_OUTPUTS}
set_target_properties(libfrida PROPERTIES OUTPUT_NAME frida) set_target_properties(libfrida PROPERTIES OUTPUT_NAME frida)
target_link_libraries(libfrida libreadplus libtrivia libfridaplot target_link_libraries(libfrida
libreadplus
libtrivia
libfridaplot
pthread pthread
${GSL_LIBRARIES} ${GSL_LIBRARIES}
${FFTW_LIBRARIES} ${FFTW_LIBRARIES}
......
...@@ -352,16 +352,6 @@ void NCurveFile::get_conv(const CSpec** sv, int* kv, int* jv, int k, int j) ...@@ -352,16 +352,6 @@ void NCurveFile::get_conv(const CSpec** sv, int* kv, int* jv, int k, int j)
return; return;
} }
const COld* fv = SMem::instance()->mem_get_D(*kv); const COld* fv = SMem::instance()->mem_get_D(*kv);
*jv = NOlo::j2j( fc, j, fv );
// set *jv and *sv for given j:
if (j >= fc->nJ())
throw S("BUG: setConv called with invalid j");
if (fv->nJ() == 1) // nJ:1 correspondence
*jv = 0;
else if (fv->nJ() == fc->nJ()) // nJ:nJ correspondence
*jv = j;
else
throw "cannot convolute file " + S(k) + " with resolution " + S(*kv)
+ ": number of spectra does not match";
*sv = fv->VS(*jv); *sv = fv->VS(*jv);
} }
...@@ -728,3 +728,19 @@ string COlc::weight_str() const ...@@ -728,3 +728,19 @@ string COlc::weight_str() const
} }
throw S("BUG: unexpected weight"); throw S("BUG: unexpected weight");
} }
//**************************************************************************************************
//* namespace NOlo - service functions
//**************************************************************************************************
int NOlo::j2j(const COlo* fin, int jin, const COlo* fout )
{
if (jin >= fin->nJ())
throw S("BUG: NOlo::j2j called with invalid j");
if (fout->nJ() == 1) // nJ:1 correspondence
return 0;
else if (fout->nJ() == fin->nJ()) // nJ:nJ correspondence
return jin;
else
throw S("Wrong file correspondence: number of spectra does not match");
}
...@@ -164,4 +164,12 @@ public: ...@@ -164,4 +164,12 @@ public:
virtual string type() const { return "curve"; } virtual string type() const { return "curve"; }
}; };
//! Service functions for online objects.
namespace NOlo {
int j2j(const COlo* fin, int jin, const COlo* fout );
} // namespace NOlo
#endif // OLF_H #endif // OLF_H
...@@ -14,13 +14,10 @@ dualplot.hpp ...@@ -14,13 +14,10 @@ dualplot.hpp
plowin.hpp plowin.hpp
) )
add_library(libfridaplot SHARED add_library(libfridaplot SHARED ${src_files})
${src_files}
)
set_target_properties(libfridaplot PROPERTIES OUTPUT_NAME fridaplot) set_target_properties(libfridaplot PROPERTIES OUTPUT_NAME fridaplot)
target_link_libraries(libfridaplot target_link_libraries(libfridaplot)
)
install(TARGETS libfridaplot DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) install(TARGETS libfridaplot DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
...@@ -15,5 +15,9 @@ foreach(test_src ${test_sources}) ...@@ -15,5 +15,9 @@ foreach(test_src ${test_sources})
# remove directory path and suffix, to retain just the name of the test # remove directory path and suffix, to retain just the name of the test
string(REGEX REPLACE ".*/" "" test_name "${test_src}") string(REGEX REPLACE ".*/" "" test_name "${test_src}")
string(REGEX REPLACE ".f2t$" "" test_name "${test_name}") string(REGEX REPLACE ".f2t$" "" test_name "${test_name}")
add_test(NAME ${test_name} COMMAND "${test_src}" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) add_test(
NAME ${test_name}
COMMAND ${CMAKE_BINARY_DIR}/src/frida
ARGUMENTS ${test_src}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endforeach(test_src) endforeach(test_src)
...@@ -14,9 +14,7 @@ macro.hpp ...@@ -14,9 +14,7 @@ macro.hpp
readln.hpp readln.hpp
) )
add_library(libreadplus SHARED add_library(libreadplus SHARED ${src_files})
${src_files}
)
set_target_properties(libreadplus PROPERTIES OUTPUT_NAME readplus) set_target_properties(libreadplus PROPERTIES OUTPUT_NAME readplus)
......
...@@ -8,6 +8,10 @@ set(src_files frida2.cpp) ...@@ -8,6 +8,10 @@ set(src_files frida2.cpp)
add_executable(frida frida2.cpp) add_executable(frida frida2.cpp)
target_link_libraries(frida libfrida) target_link_libraries(frida
libtrivia
libreadplus
${GSL_LIBRARIES}
libfrida)
install(TARGETS frida DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) install(TARGETS frida DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
...@@ -25,13 +25,10 @@ vector_ops.hpp ...@@ -25,13 +25,10 @@ vector_ops.hpp
yaml_out.hpp yaml_out.hpp
) )
add_library(libtrivia SHARED add_library(libtrivia SHARED ${src_files})
${src_files}
)
set_target_properties(libtrivia PROPERTIES OUTPUT_NAME trivia) set_target_properties(libtrivia PROPERTIES OUTPUT_NAME trivia)
target_link_libraries(libtrivia target_link_libraries(libtrivia)
)
install(TARGETS libtrivia DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) install(TARGETS libtrivia DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
...@@ -27,6 +27,7 @@ set(test_link_libs ...@@ -27,6 +27,7 @@ set(test_link_libs
gtest_main gtest_main
libtrivia libtrivia
libreadplus libreadplus
${GSL_LIBRARIES}
libfrida libfrida
) )
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment