/* * Copyright (C) 2012-2013 Red Hat, Inc. * * Licensed under the GNU Lesser General Public License Version 2.1 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef TESTSHARED_H #define TESTSHARED_H #include #include "libdnf/hy-repo.h" #define UNITTEST_DIR "/tmp/hawkeyXXXXXX" #define YUM_DIR_SUFFIX "yum/repodata/" #define YUM_REPO_NAME "nevermac" #define TEST_FIXED_ARCH "x86_64" #define TEST_EXPECT_SYSTEM_PKGS 13 #define TEST_EXPECT_SYSTEM_NSOLVABLES TEST_EXPECT_SYSTEM_PKGS #define TEST_EXPECT_MAIN_NSOLVABLES 14 #define TEST_EXPECT_UPDATES_NSOLVABLES 10 #define TEST_EXPECT_YUM_NSOLVABLES 2 #ifdef __cplusplus extern "C" { #endif HyRepo glob_for_repofiles(Pool *pool, const char *repo_name, const char *path); int load_repo(Pool *pool, const char *name, const char *path, int installed); #ifdef __cplusplus } #endif #endif /* TESTSHARED_H */