Fix cannot run test by make check
authorIceyer <me@iceyer.net>
Thu, 3 Aug 2017 08:56:52 +0000 (16:56 +0800)
committerIceyer <me@iceyer.net>
Fri, 18 Aug 2017 06:43:37 +0000 (14:43 +0800)
Change-Id: Ife192a0e5b9022ba68bee5185c80fe8bfd2721b9

debian/rules
dtkcore.pro
tests/dutiltester.cpp
tests/dutiltester.h
tests/main.cpp
tests/tests.pro

index c9ac68c4ce6e72f43d5926cd14f43bc5698985d5..443c40429c89c3d0869d6120e4d914d98d3b7165 100755 (executable)
@@ -9,5 +9,8 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 override_dh_auto_configure:
        dh_auto_configure -- LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
 
+override_dh_auto_test:
+       echo "skip auto test"
+
 override_dh_makeshlibs:
        dh_makeshlibs -V
index 1e7088fdf3b51b4b05b9684043b78208f5097969..3138b6c8eccc30e043933a34d4e620b84a9c3a2f 100644 (file)
@@ -1,6 +1,6 @@
 TEMPLATE = subdirs
 
-CONFIG = ordered
+CONFIG += ordered
 
 SUBDIRS +=   \
     src \
index eb0df5867ed718312db92de9cf0345690293a5ed..c4ae4d01d1bbe823d8240452b85655f3edfbd14a 100644 (file)
@@ -1,3 +1,12 @@
+/**
+ * Copyright (C) 2017 Deepin Technology Co., Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ **/
+
 #include "dutiltester.h"
 
 #include <QCoreApplication>
index c5e89a80650075cc16464da8d8dc8ad89c22ef50..b785b3d2d48b846e49de50e67a00017ba779aabc 100644 (file)
@@ -1,3 +1,12 @@
+/**
+ * Copyright (C) 2017 Deepin Technology Co., Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ **/
+
 #ifndef DUTILTESTER_H
 #define DUTILTESTER_H
 
index 28005f95ff15afcb8cf1525c93d98e58a4b67301..0abaecb54c89c24efefa9655b6b790bc3b473ad6 100644 (file)
@@ -1,3 +1,12 @@
+/**
+ * Copyright (C) 2017 Deepin Technology Co., Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ **/
+
 #include <QtTest/QtTest>
 
 #include "dutiltester.h"
index f26a5bd8f937e4c039f865ec1fe3ebe78fe7f698..f89c59954938014fa599b40227b0cfcd6cdc6d6c 100644 (file)
@@ -19,3 +19,4 @@ else:unix: LIBS += -L$$OUT_PWD/../src/ -ldtkcore
 
 INCLUDEPATH += $$PWD/../src
 DEPENDPATH += $$PWD/../src
+QMAKE_RPATHDIR += $$PWD/../src