Skip to content

Commit 886233a

Browse files
committed
doc(test-termination): update README.md
1 parent c8482e8 commit 886233a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

test-termination/README.md

+29
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,32 @@ procedures and interface from prif.F90:
66
- `prif_register_stop_callback`
77
- `prif_stop_callback_interface`
88
- `prif_stop`
9+
10+
Usage
11+
-----
12+
To build or rebuild and run the tests in this subdirectory, execute the following
13+
commands:
14+
```
15+
fpm clean --all
16+
cd ..
17+
./install.sh
18+
cd -
19+
mkdir build
20+
cp ../build/run-fpm.sh build
21+
../build/run-fpm.sh test
22+
```
23+
which should yield trailing output similar to the following:
24+
```
25+
ERROR STOP 'USER_PROVIDED_STRING'
26+
callback invoked
27+
STOP
28+
STOP 'USER_PROVIDED_STRING'
29+
STOP 99
30+
STOP
31+
<ERROR> Execution for object " error_stop_with_character_code " returned exit code 1
32+
<ERROR> Execution for object " error_stop_with_integer_code " returned exit code 100
33+
<ERROR> Execution for object " error_stop_with_no_code " returned exit code 1
34+
<ERROR> Execution for object " stop_with_integer_code " returned exit code 99
35+
<ERROR> *cmd_run*:stopping due to failed executions
36+
STOP 1
37+
```

0 commit comments

Comments
 (0)