mirror of https://github.com/cutefishos/appmotor
Changes: new test case for /usr/lib trigger
RevBy: Olli Leppanen new test package is added to test if reexec is triggered when a file is installed/modified/deleted in the /usr/lib directory and the test case is put in the red-testspull/1/head
parent
6865c7da65
commit
f0566a2774
@ -0,0 +1,63 @@
|
||||
## This file is part of test package applauncherd-token-test
|
||||
#
|
||||
# Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||
# All rights reserved.
|
||||
#
|
||||
# Contact: Thyagarajan Balakrishnan <ext-thyagarajan.1.balakrishnan@nokia.com>
|
||||
#
|
||||
# This software, including documentation, is protected by copyright
|
||||
# controlled by Nokia Corporation. All rights are reserved. Copying,
|
||||
# including reproducing, storing, adapting or translating, any or all
|
||||
# of this material requires the prior written consent of Nokia
|
||||
# Corporation. This material also contains confidential information
|
||||
# which may not be disclosed to others without the prior written
|
||||
# consent of Nokia.
|
||||
##
|
||||
|
||||
QMAKEVERSION = $$[QMAKE_VERSION]
|
||||
ISQT4 = $$find(QMAKEVERSION, ^[2-9])
|
||||
isEmpty( ISQT4 ) {
|
||||
error("Use the qmake include with Qt4.4 or greater, on Debian that is qmake-qt4");
|
||||
}
|
||||
|
||||
QT += core
|
||||
QT -= gui
|
||||
|
||||
TARGET = fala-usrlib-test-app
|
||||
TEMPLATE = app
|
||||
CONFIG += warn_on link_pkgconfig
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
DESTDIR = bin
|
||||
OBJECTS_DIR = obj
|
||||
MOC_DIR = obj
|
||||
|
||||
SOURCES += main.cpp
|
||||
|
||||
# Flags to reduce binary size where possible
|
||||
QMAKE_CXXFLAGS += -fdata-sections -ffunction-sections
|
||||
QMAKE_LFLAGS += --discard-local --discard-all -Wl --gc-sections
|
||||
QMAKE_CXXFLAGS -= -O2
|
||||
QMAKE_CXXFLAGS += -Os
|
||||
|
||||
unix {
|
||||
#VARIABLES
|
||||
isEmpty(PREFIX) {
|
||||
PREFIX = /usr
|
||||
}
|
||||
BINDIR = $$PREFIX/bin
|
||||
LIBDIR =$$PREFIX/lib
|
||||
|
||||
DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
|
||||
|
||||
#MAKE INSTALL
|
||||
|
||||
INSTALLS += target usrlib
|
||||
|
||||
target.path =$$BINDIR
|
||||
|
||||
usrlib.files = applauncherd-usrlib-test.txt
|
||||
usrlib.path = /usr/lib
|
||||
}
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
File to test triggering of applauncherd when a new file in /usr/lib is added
|
||||
|
||||
version 1.1: test for file being modified
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
The Debian Package applauncherd-usrlib-test
|
||||
----------------------------
|
||||
|
||||
This package is used to test that applauncherd is triggered for re-exec when installed application is adding/modifying a file in /usr/lib directory.
|
||||
|
||||
-- Thyagarajan Balakrishnan <ext-thyagarajan.1.balakrishnan@nokia.com> Wed, 09 Nov 2011 16:05:43 +0200
|
||||
@ -0,0 +1,11 @@
|
||||
applauncherd-usrlib-test (1.1) stable; urgency=low
|
||||
|
||||
* test for upgrade.
|
||||
|
||||
-- Thyagarajan Balakrishnan <ext-thyagarajan.1.balakrishnan@nokia.com> Thu, 10 Nov 2011 16:05:43 +0200
|
||||
|
||||
applauncherd-usrlib-test (1.0) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
-- Thyagarajan Balakrishnan <ext-thyagarajan.1.balakrishnan@nokia.com> Wed, 09 Nov 2011 16:05:43 +0200
|
||||
@ -0,0 +1 @@
|
||||
7
|
||||
@ -0,0 +1,21 @@
|
||||
Source: applauncherd-usrlib-test
|
||||
Section: unknown
|
||||
Priority: extra
|
||||
Maintainer: Thyagarajan Balakrishnan <ext-thyagarajan.1.balakrishnan@nokia.com>
|
||||
Build-Depends: pkg-config, debhelper (>= 7.0.50~), libqt4-dev, applauncherd
|
||||
Standards-Version: 3.9.1
|
||||
|
||||
Package: applauncherd-usrlib-test
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-core, libqtgui4, applauncherd, libmeegotouchcore0
|
||||
Description: Application tests applauncherd reexec for new files in /usr/lib
|
||||
This application is used to test that installation of new files in /usr/lib
|
||||
triggers reexec in applauncherd
|
||||
|
||||
#Package: applauncherd-usrlib-test-dbg
|
||||
#Architecture: devel
|
||||
#Depends: ${shlibs:Depends}, ${misc:Depends}, libqt4-core, libqtgui4, applauncherd, libmeegotouchcore0, applauncherd-usrlib-test (= ${binary:Version})
|
||||
#Description: Application tests applauncherd reexec for new files in /usr/lib
|
||||
# This application is used to test that installation of new files in /usr/lib
|
||||
# triggers reexec in applauncherd. - with debug symbols
|
||||
|
||||
@ -0,0 +1,16 @@
|
||||
This work was packaged for Debian by:
|
||||
|
||||
Thyagarajan Balakrishnan <ext-thyagarajan.1.balakrishnan@nokia.com> Wed, 09 Nov 2011 16:05:43 +0200
|
||||
|
||||
Copyright:
|
||||
|
||||
Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||
All rights reserved.
|
||||
|
||||
This software, including documentation, is protected by copyright
|
||||
controlled by Nokia Corporation. All rights are reserved. Copying,
|
||||
including reproducing, storing, adapting or translating, any or all
|
||||
of this material requires the prior written consent of Nokia
|
||||
Corporation. This material also contains confidential information
|
||||
which may not be disclosed to others without the prior written
|
||||
consent of Nokia.
|
||||
@ -0,0 +1 @@
|
||||
applauncherd-usrlib-test_1.1_armel.deb unknown extra
|
||||
@ -0,0 +1,69 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
CFLAGS = -Wall -g
|
||||
|
||||
APPNAME := applauncherd-usrlib-test
|
||||
|
||||
Makefile:
|
||||
qmake-qt4
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: Makefile
|
||||
dh_testdir
|
||||
|
||||
# Add here commands to compile the package.
|
||||
$(MAKE)
|
||||
|
||||
touch $@
|
||||
|
||||
clean: Makefile
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
$(MAKE) clean
|
||||
dh_clean
|
||||
|
||||
install:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
|
||||
# Add here commands to install the package into debian/your_appname
|
||||
$(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep:
|
||||
# We have nothing to do by default.
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
dh_installman
|
||||
dh_link
|
||||
# dh_strip --dbg-package=$(APPNAME)-dbg
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure Makefile
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication a(argc, argv);
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue