./ 0000755 0000041 0000041 00000000000 13020256377 011250 5 ustar www-data www-data ./CMakeLists.txt 0000644 0000041 0000041 00000002306 13020256377 014011 0 ustar www-data www-data project(gmenu-harness C CXX)
cmake_minimum_required(VERSION 2.8.9)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
find_package(PkgConfig REQUIRED)
include(GNUInstallDirs)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 ${COMMON_FLAGS} -fno-strict-aliasing -fvisibility-inlines-hidden")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# version
set(GMENU_HARNESS gmenuharness)
set(GMENU_HARNESS_SO_VERSION_MAJOR "0")
set(GMENU_HARNESS_SO_VERSION_MINOR "1")
set(GMENU_HARNESS_SO_VERSION_MICRO "0")
set(GMENU_HARNESS_SO_VERSION ${GMENU_HARNESS_SO_VERSION_MAJOR}.${GMENU_HARNESS_SO_VERSION_MINOR})
set(GMENU_HARNESS_HDR_INSTALL_BASE_DIR ${CMAKE_INSTALL_FULL_INCLUDEDIR}/${GMENU_HARNESS}-${GMENU_HARNESS_SO_VERSION})
set(GMENU_HARNESS_HDR_INSTALL_DIR ${GMENU_HARNESS_HDR_INSTALL_BASE_DIR}/unity/${GMENU_HARNESS})
include_directories(include)
set(GLIB_REQUIRED_VERSION 2.26)
pkg_check_modules(
GLIB REQUIRED
glib-2.0>=${GLIB_REQUIRED_VERSION}
gio-2.0>=${GLIB_REQUIRED_VERSION}
)
include_directories(${GLIB_INCLUDE_DIRS})
pkg_check_modules(
UNITY_API REQUIRED
libunity-api
)
include_directories(${UNITY_API_INCLUDE_DIRS})
add_subdirectory(src)
add_subdirectory(include)
add_subdirectory(tests)
./INSTALL 0000644 0000041 0000041 00000002214 13020256377 012300 0 ustar www-data www-data #
# Copyright © 2015 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License version 3,
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see .
#
# Authored by: Pete Woods
# Xavi Garcia
#
Build dependencies
------------------
See debian/control for the list of packages required to build and test the code.
Building the code
-----------------
The simplest case is:
$ mkdir build
$ cd build
$ cmake ..
$ make
By default, the code is built in release mode. To build a debug version, use
$ mkdir builddebug
$ cd builddebug
$ cmake -DCMAKE_BUILD_TYPE=debug ..
$ make
./README 0000644 0000041 0000041 00000001540 13020256377 012130 0 ustar www-data www-data #
# Copyright © 2015 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License version 3,
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see .
#
# Authored by: Pete Woods
# Xavi Garcia
#
This is a library to test GMenuModel structures.
For instructions on how to build the code, see the INSTALL file.
./include/ 0000755 0000041 0000041 00000000000 13020256377 012673 5 ustar www-data www-data ./include/CMakeLists.txt 0000644 0000041 0000041 00000000030 13020256377 015424 0 ustar www-data www-data add_subdirectory(unity)
./include/unity/ 0000755 0000041 0000041 00000000000 13020256377 014043 5 ustar www-data www-data ./include/unity/CMakeLists.txt 0000644 0000041 0000041 00000000037 13020256377 016603 0 ustar www-data www-data add_subdirectory(gmenuharness)
./include/unity/gmenuharness/ 0000755 0000041 0000041 00000000000 13020256377 016542 5 ustar www-data www-data ./include/unity/gmenuharness/CMakeLists.txt 0000644 0000041 0000041 00000000213 13020256377 021276 0 ustar www-data www-data install(FILES
MatchResult.h
MatchUtils.h
MenuItemMatcher.h
MenuMatcher.h
DESTINATION ${GMENU_HARNESS_HDR_INSTALL_DIR})
./include/unity/gmenuharness/MatchUtils.h 0000644 0000041 0000041 00000002166 13020256377 020775 0 ustar www-data www-data /*
* Copyright © 2014 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*
* Authored by: Pete Woods
*/
#pragma once
#include
#include
#include
namespace unity
{
namespace gmenuharness
{
void waitForCore(GObject* obj, const std::string& signalName, unsigned int timeout = 10);
void menuWaitForItems(const std::shared_ptr& menu, unsigned int timeout = 10);
void g_object_deleter(gpointer object);
void gvariant_deleter(GVariant* varptr);
} //namespace gmenuharness
} // namespace unity
./include/unity/gmenuharness/MenuItemMatcher.h 0000644 0000041 0000041 00000007730 13020256377 021751 0 ustar www-data www-data /*
* Copyright © 2014 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*
* Authored by: Pete Woods
*/
#pragma once
#include