constexpr const char VERSION_TEXT[] =
R"({} version {}
+Features: {}
Copyright (C) 2002-2007 Andrew Tridgell
Copyright (C) 2009-2021 Joel Rosdahl and other contributors
See also the manual on <https://ccache.dev/documentation.html>.
)";
+constexpr const char FEATURE_TEXT[] =
+ "http-storage"
+#ifdef HAVE_REDIS_STORAGE_BACKEND
+ " redis-storage"
+#endif
+ ;
+
// This is a string that identifies the current "version" of the hash sum
// computed by ccache. If, for any reason, we want to force the hash sum to be
// different for the same input in a new ccache version, we can just change
}
case 'V': // --version
- PRINT(VERSION_TEXT, CCACHE_NAME, CCACHE_VERSION);
+ PRINT(VERSION_TEXT, CCACHE_NAME, CCACHE_VERSION, FEATURE_TEXT);
exit(EXIT_SUCCESS);
case 'x': // --show-compression
addtest(sanitize_blacklist)
addtest(secondary_file)
addtest(secondary_http)
-if(REDIS_STORAGE_BACKEND)
addtest(secondary_redis)
-endif()
addtest(secondary_url)
addtest(serialize_diagnostics)
addtest(source_date_epoch)
SUITE_secondary_redis_PROBE() {
+ if ! $CCACHE --version | fgrep -q -- redis-storage &> /dev/null; then
+ echo "redis-storage not available"
+ return
+ fi
if ! command -v redis-server &> /dev/null; then
echo "redis-server not found"
return