feisty meow concerns codebase
2.140
test_path_configuration.cpp
Go to the documentation of this file.
1
/*****************************************************************************\
2
* *
3
* Name : test_application_configuration *
4
* Author : Chris Koeritz *
5
* *
6
*******************************************************************************
7
* Copyright (c) 2002-$now By Author. This program is free software; you can *
8
* redistribute it and/or modify it under the terms of the GNU General Public *
9
* License as published by the Free Software Foundation; either version 2 of *
10
* the License or (at your option) any later version. This is online at: *
11
* http://www.fsf.org/copyleft/gpl.html *
12
* Please send any updates to: fred@gruntose.com *
13
\*****************************************************************************/
14
15
#include <
application/hoople_main.h
>
16
#include <
basis/guards.h
>
17
#include <
basis/astring.h
>
18
#include <
loggers/console_logger.h
>
19
#include <
configuration/application_configuration.h
>
20
#include <
structures/static_memory_gremlin.h
>
21
//#include <unit_test/unit_base.h>
22
23
//using namespace application;
24
using namespace
basis
;
25
using namespace
configuration
;
26
//using namespace mathematics;
27
//using namespace filesystem;
28
using namespace
loggers
;
29
//using namespace structures;
30
//using namespace textual;
31
//using namespace timely;
32
//using namespace unit_test;
33
34
#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)
35
36
//hmmm: ugly old main() without using the hoople machinery. ack.
37
const
char
*
static_class_name
() {
return
"test_path_configuration"
; }
38
39
HOOPLE_STARTUP_CODE
;
40
41
int
main
(
int
argc,
char
*argv[])
42
{
43
FUNCDEF
(
"main"
)
44
astring
jammed;
45
for
(
int
i = 0; i < argc; i++)
46
jammed +=
astring
(argv[i]) +
" "
;
47
LOG
(
astring
(
"command line="
) + jammed);
48
49
astring
app_dir = application_configuration::application_directory();
50
LOG
(
astring
(
"app dir is: "
) + app_dir);
51
52
critical_events::alert_message(
astring
(
static_class_name
()) +
": works for those functions tested."
);
53
54
return
0;
55
}
56
57
#undef static_class_name
58
application_configuration.h
astring.h
basis::astring
Provides a dynamically resizable ASCII character string.
Definition:
astring.h:35
console_logger.h
FUNCDEF
#define FUNCDEF(func_in)
FUNCDEF sets the name of a function (and plugs it into the callstack).
Definition:
enhance_cpp.h:54
guards.h
hoople_main.h
Provides macros that implement the 'main' program of an application.
basis
The guards collection helps in testing preconditions and reporting errors.
Definition:
array.h:30
configuration
Definition:
registry_config.cpp:45
loggers
A logger that sends to the console screen using the standard output device.
Definition:
combo_logger.cpp:36
static_memory_gremlin.h
static_class_name
const char * static_class_name()
Definition:
test_path_configuration.cpp:37
main
int main(int argc, char *argv[])
Definition:
test_path_configuration.cpp:41
LOG
#define LOG(s)
Definition:
test_path_configuration.cpp:34
HOOPLE_STARTUP_CODE
HOOPLE_STARTUP_CODE
Definition:
test_path_configuration.cpp:39
nucleus
library
tests_application
test_path_configuration.cpp
Generated by
1.9.1