newly added. Not for productive used yetsvn diff | grep Index:
This commit is contained in:
0
src/tests/rootSystemTest/.kdbgrc.rootSystemTest
Executable file
0
src/tests/rootSystemTest/.kdbgrc.rootSystemTest
Executable file
35
src/tests/rootSystemTest/rootSystemTest.cpp
Normal file
35
src/tests/rootSystemTest/rootSystemTest.cpp
Normal file
@@ -0,0 +1,35 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
#include <TROOT.h>
|
||||
#include <TSystem.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc != 2) {
|
||||
cout << endl;
|
||||
cout << "SYNTAX: rootSystemTest PathFileName";
|
||||
cout << endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
TROOT root("rootSystemTest", "rootSystemTest", 0);
|
||||
|
||||
cout << endl;
|
||||
cout << "Path name: " << argv[1] << endl;
|
||||
char *str = gSystem->ExpandPathName(argv[1]);
|
||||
cout << "Path name expanded: " << str << endl;
|
||||
|
||||
if (gSystem->AccessPathName(str)==true) {
|
||||
cout << endl << "file " << str << " doesn't exist :-(" << endl;
|
||||
} else {
|
||||
cout << endl << "file " << str << " exists :-)" << endl;
|
||||
}
|
||||
|
||||
cout << "done ..." << endl;
|
||||
|
||||
if (str)
|
||||
delete str;
|
||||
|
||||
return 0;
|
||||
}
|
||||
22
src/tests/rootSystemTest/rootSystemTest.pro
Normal file
22
src/tests/rootSystemTest/rootSystemTest.pro
Normal file
@@ -0,0 +1,22 @@
|
||||
#------------------------------------------------------
|
||||
# rootSystemTest.pro
|
||||
# qmake file for rootSystemTest
|
||||
#
|
||||
# Andreas Suter, 2007/05/14
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
#------------------------------------------------------
|
||||
|
||||
MAKEFILE = Makefile
|
||||
|
||||
CONFIG += warn_on debug
|
||||
|
||||
SOURCES = rootSystemTest.cpp \
|
||||
|
||||
INCLUDEPATH += $$(ROOTSYS)/include
|
||||
|
||||
ROOTLIBS = -lCore -lCint
|
||||
unix:LIBS += -L$$(ROOTSYS)/lib $${ROOTLIBS} -lbsd -lm -ldl -lutil
|
||||
|
||||
TARGET=rootSystemTest
|
||||
Reference in New Issue
Block a user