CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test_libcvmfs.cc File Reference
#include "cvmfs_config.h"
#include <errno.h>
#include <inttypes.h>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <map>
#include <string>
#include "libcvmfs.h"
Include dependency graph for test_libcvmfs.cc:

Go to the source code of this file.

Macros

#define __STDC_FORMAT_MACROS
 
#define TEST_LINE_MAX   1024
 

Typedefs

typedef std::map< std::string,
cvmfs_context * > 
RepoMap
 

Functions

void cvmfs_test_help ()
 
static void cvmfs_log_ignore (const char *msg)
 
int cvmfs_test_list (cvmfs_context *ctx, const char *path)
 
int cvmfs_test_cat (cvmfs_context *ctx, const char *path)
 
cvmfs_contextcvmfs_test_attach (const char *repo_name)
 
void cvmfs_test_detach (const char *repo_name, const cvmfs_context *active_ctx)
 
int main (int argc, char *argv[])
 

Variables

static RepoMap attached_repos
 
cvmfs_option_mapcvmfs_opts = NULL
 

Macro Definition Documentation

#define __STDC_FORMAT_MACROS

This file is part of the CernVM File System.

This is a simple test program to test the facilities of the libcvmfs C (not C++) library, which is used by Parrot and some other tools.

The goal here is not so much to build the ultimate testing tool, but to provide a simple build target which can verify that libcvmfs is exporting the proper set of symbols to be used by a C program.

Definition at line 12 of file test_libcvmfs.cc.

#define TEST_LINE_MAX   1024

Definition at line 29 of file test_libcvmfs.cc.

Referenced by cvmfs_test_cat(), cvmfs_test_list(), and main().

Typedef Documentation

typedef std::map<std::string, cvmfs_context*> RepoMap

Definition at line 31 of file test_libcvmfs.cc.

Function Documentation

static void cvmfs_log_ignore ( const char *  msg)
static

Definition at line 45 of file test_libcvmfs.cc.

Referenced by main().

Here is the caller graph for this function:

cvmfs_context* cvmfs_test_attach ( const char *  repo_name)

Definition at line 110 of file test_libcvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int cvmfs_test_cat ( cvmfs_context ctx,
const char *  path 
)

Definition at line 83 of file test_libcvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void cvmfs_test_detach ( const char *  repo_name,
const cvmfs_context active_ctx 
)

Definition at line 145 of file test_libcvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void cvmfs_test_help ( )

Definition at line 35 of file test_libcvmfs.cc.

Referenced by main().

Here is the caller graph for this function:

int cvmfs_test_list ( cvmfs_context ctx,
const char *  path 
)

Definition at line 50 of file test_libcvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 163 of file test_libcvmfs.cc.

Here is the call graph for this function:

Variable Documentation

RepoMap attached_repos
static

Definition at line 32 of file test_libcvmfs.cc.

Referenced by cvmfs_test_attach(), and cvmfs_test_detach().

cvmfs_option_map* cvmfs_opts = NULL

Definition at line 33 of file test_libcvmfs.cc.