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
16#include <basis/guards.h>
17#include <basis/astring.h>
21//#include <unit_test/unit_base.h>
22
23//using namespace application;
24using namespace basis;
25using namespace configuration;
26//using namespace mathematics;
27//using namespace filesystem;
28using 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.
37const char *static_class_name() { return "test_path_configuration"; }
38
40
41int 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
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
Provides a dynamically resizable ASCII character string.
Definition astring.h:35
static basis::astring application_directory()
returns the directory name where this application is running from.
static void alert_message(const char *info, const char *title="Alert Message")
shows the message in "info", with an optional "title" on the message.
#define FUNCDEF(func_in)
FUNCDEF sets the name of a function (and plugs it into the callstack).
Definition enhance_cpp.h:54
Provides macros that implement the 'main' program of an application.
The guards collection helps in testing preconditions and reporting errors.
Definition array.h:30
A logger that sends to the console screen using the standard output device.
int main(int argc, char *argv[])
#define LOG(s)
const char * static_class_name()