No need to do a STR replacement and the macro changing the path.
It actually broke test execution for Debian.
See https://bugs.debian.org/844937
)
add_definitions(-DOWNCLOUD_TEST)
- add_definitions(-DOWNCLOUD_BIN_PATH=${CMAKE_BINARY_DIR}/bin)
+ add_definitions(-DOWNCLOUD_BIN_PATH="${CMAKE_BINARY_DIR}/bin")
add_test(NAME ${OWNCLOUD_TEST_CLASS}Test COMMAND ${OWNCLOUD_TEST_CLASS}Test)
endmacro()
)
add_definitions(-DOWNCLOUD_TEST)
- add_definitions(-DOWNCLOUD_BIN_PATH=${CMAKE_BINARY_DIR}/bin)
+ add_definitions(-DOWNCLOUD_BIN_PATH="${CMAKE_BINARY_DIR}/bin")
endmacro()
#include "utility.h"
-#define STR_(X) #X
-#define STR(X) STR_(X)
-#define BIN_PATH STR(OWNCLOUD_BIN_PATH)
-
using namespace OCC::Utility;
class TestUtility : public QObject
}
// pass the binary name owncloud to the next call. This brakes branding,
// but branding is not supposed to work with this.
- QString ver = versionOfInstalledBinary(BIN_PATH+QLatin1String("/owncloud"));
+ QString ver = versionOfInstalledBinary(OWNCLOUD_BIN_PATH+QLatin1String("/owncloud"));
qDebug() << "Version of installed ownCloud Binary: " << ver;
QVERIFY( !ver.isEmpty());