#include "../testsuite.h"
-int test_native(const test_t* t) {
+static int test_native(const test_t* t) {
// First call
const char* arch1 = pakfire_arch_native();
assert_return(arch1, EXIT_FAILURE);
return EXIT_SUCCESS;
}
-int test_supported(const test_t* t) {
+static int test_supported(const test_t* t) {
int r;
r = pakfire_arch_supported("x86_64");
return EXIT_SUCCESS;
}
-int test_compatible(const test_t* t) {
+static int test_compatible(const test_t* t) {
int r;
// x86_64 can build i686
return EXIT_SUCCESS;
}
-int test_machine(const test_t* t) {
+static int test_machine(const test_t* t) {
char* machine;
machine = pakfire_arch_machine("x86_64", "ipfire");
static const char* TEST_PKG1_PATH = "data/beep-1.3-2.ip3.x86_64.pfm";
static const char* TEST_PKG1_FILE = "usr/bin/beep";
-int test_open(const test_t* t) {
+static int test_open(const test_t* t) {
char* path = pakfire_path_join(TEST_SRC_PATH, TEST_PKG1_PATH);
LOG("Trying to open %s\n", path);
return EXIT_SUCCESS;
}
-int test_extract(const test_t* t) {
+static int test_extract(const test_t* t) {
char* path = pakfire_path_join(TEST_SRC_PATH, TEST_PKG1_PATH);
PakfireArchive archive = pakfire_archive_open(t->pakfire, path);
return EXIT_SUCCESS;
}
-int test_import(const test_t* t) {
+static int test_import(const test_t* t) {
char* path = pakfire_path_join(TEST_SRC_PATH, TEST_PKG1_PATH);
PakfireArchive archive = pakfire_archive_open(t->pakfire, path);
#include "../testsuite.h"
-int test_does_not_exist(const test_t* t) {
+static int test_does_not_exist(const test_t* t) {
const char* cmd = "/usr/bin/does-not-exist";
int r = pakfire_execute(t->pakfire, cmd, NULL, NULL, 0);
#include "../testsuite.h"
#include "key.h"
-int test_init(const test_t* t) {
+static int test_init(const test_t* t) {
// Try loading any keys & delete them all
PakfireKey* keys = pakfire_key_list(t->pakfire);
while (keys && *keys) {
return EXIT_SUCCESS;
}
-int test_import(const test_t* t) {
+static int test_import(const test_t* t) {
// Try to delete the key just in case it
// has been imported before
PakfireKey key = pakfire_key_get(t->pakfire, TEST_KEY_FINGERPRINT);
return EXIT_SUCCESS;
}
-int test_export(const test_t* t) {
+static int test_export(const test_t* t) {
PakfireKey key = pakfire_key_get(t->pakfire, TEST_KEY_FINGERPRINT);
assert_return(key, EXIT_FAILURE);
#include "../testsuite.h"
-int test_parse(const test_t* t) {
+static int test_parse(const test_t* t) {
char* path = pakfire_path_join(TEST_SRC_PATH, "data/kernel.nm");
// Open file
#include "../testsuite.h"
-int test_parser(const test_t* t) {
+static int test_parser(const test_t* t) {
char* value = NULL;
// Create a new parser
#include "../testsuite.h"
-int test_basename(const test_t* t) {
+static int test_basename(const test_t* t) {
const char* dir = "/a/b/c";
char* output = pakfire_basename(dir);
return EXIT_SUCCESS;
}
-int test_dirname(const test_t* t) {
+static int test_dirname(const test_t* t) {
const char* dir = "/a/b/c";
char* output = pakfire_dirname(dir);