Skip to content

Commit

Permalink
Remove outdated information from top level README
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Apr 9, 2024
1 parent b94cc63 commit 44c444f
Showing 1 changed file with 5 additions and 35 deletions.
40 changes: 5 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,40 +102,14 @@ To see a list of options, do this in the build-directory:

cmake -LH ..

## Running

The examples are for creating a file "example.root",

tests/write

and reading it again in C++,

tests/read

It is also possible to read the file again using the
[`tests/read.py`](tests/read.py) script. Make sure to have run `init.sh`
and `env.sh` first. Additionally you have to make `ROOT` aware of
`libTestDataModel.so` to be able to read in the data types defined there. There
are two ways to do that. First it is possible to add the directory to the
`LD_LIBRARY_PATH`

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(pwd)/tests

Secondly it is also possible to explicitly load the library via `ROOT` in the
script by adding the following lines *after* the imports from `__future__`

```python
import os
BUILD_PATH = os.getcwd()
## Running tests

import ROOT
ROOT.gSystem.Load(os.path.join(BUILD_PATH, 'tests/libTestDataModel.so'))
```
After compilation you can run unit tests as well as some integration level tests
that check the full I/O circle via

Either of the two versions allows you to now read the `example.root` file again
using
ctest --output-on-failure

python ../tests/read.py
These tests also create some example files and read them back.

## Installing using SPACK

Expand Down Expand Up @@ -164,10 +138,6 @@ The generation script has the following additional options:
- `--dryrun` (`-d`): Only run the generation logic and validate yaml, do not write files to disk
- `--lang` (`-l`): Specify the programming language (default: cpp), choices: cpp, julia

## Running tests
After compilation you can run rudimentary tests with

make test

## Running workflows
To run workflows manually (for example, when working on your own fork) go to
Expand Down

0 comments on commit 44c444f

Please sign in to comment.