Thoughts? Mark I remember you had talked about a rez-test tool for testing purposes a while back, hence the rez-selftest rename.
--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.
Thoughts? Mark I remember you had talked about a rez-test tool for testing purposes a while back, hence the rez-selftest rename.Yep, this is the sort of thing I was thinking of.We currently have a standard target created via CMake that we use to run tests as build time. Developers can (for most packages) pretty reliably run 'rez build -i -- -- all_tests'. At release time the 'all_tests' target in make is automagically added to the 'all' target ensuring they are always run. The 'all_tests' target calls other targets (which can also be invoked manually) to execute different category of tests (e.g. c++ via cppunit, python via nose, mayapy via nose etc).We also force pylint and epydoc runs in a slightly similar manner.
Current issues we have are:* Sometimes we want extra packages at test time only. Although when we've talked this through we actually talking about integration tests which are actually testing a number of (in development packages) which can't be satisfied through the current package alone.* We want some (but not necessarily all/the same) commands to be applied to the test environment.* Sometimes the test framework is linked to a build target - e.g. cppunit is making an executable so must be a build rule as well as then added to the add_test target. It kinda all works out but does mean they are coupled to the build process (so if you haven't built the test executable then 'rez tests' would fail anyway).So it sounds like we are thinking along similar lines. I'd be curious to see how this ties into the build process and system however. If they really can be completely separate/arbitrary commands or there is some link there. For example, if the build process creates the test executable, how does the 'rez test' command know where to find it?
Given my example above with 'all_tests' would my configuration become:test:command:rez build -i -- -- all_tests
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+unsubscribe@googlegroups.com.
We also force pylint and epydoc runs in a slightly similar manner.
Would using the release_hook 'commands' plugin work here?
The question is, how do we support release-time tests, so that a failed test aborts the release?
(b) test-only dependencies aren't available
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
if(CENTRAL)
You received this message because you are subscribed to a topic in the Google Groups "rez-config" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rez-config/TnWW4Ne-7II/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
Brilliant, thanks Mark!
--
message("cmake build type: ${CMAKE_BUILD_TYPE}")--
# If True, Rez will continue to generate the given CMake variables at build and
# release time, even though their use has been deprecated in Rez-2. The
# variables in question, and their Rez-2 equivalent (if any) are:
# REZ-1 REZ-2
# ----- -----
# CENTRAL REZ_BUILD_TYPE
rez_1_cmake_variables = TrueHello,CMAKE_BUILD_TYPE is a CMake variable that controls how executables and libraries are built. Generally it's always Release, however Debug and RelWithDebug are among some other values. Ultimately it sets some default options to be passed to the compiler and isn't affected by Rez directly.I think the variable you are after is REZ_BUILD_TYPE or something very similar to that. I don't have access to the code however so unable to checking directly.Mark
Hey guys,--
So we moved to rez2! I tried printing out the CMAKE_BUILT_TYPE variable during rez-build and rez-release, but found it is always "Release". So I'm not sure how to test whether a rez-release is happening or not.message("cmake build type: ${CMAKE_BUILD_TYPE}")
any ideas?
cheers,
Dan
You received this message because you are subscribed to a topic in the Google Groups "rez-config" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rez-config/TnWW4Ne-7II/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rez-config+unsubscribe@googlegroups.com.
add_custom_target(unit_tests ALL DEPENDS myTestRunner)
if(REZ_BUILD_TYPE STREQUAL "central")
add_custom_target(unit_tests ALL DEPENDS myTestRunner)
endif()
If all variants build successfully, then each is installed centrally.
--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+unsubscribe@googlegroups.com.