Skip to content

Commit faa8722

Browse files
docs: add description to run-md-test.sh
Previously one had to read the code to understand the scripts intention.
1 parent 3904304 commit faa8722

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

scripts/run-md-test.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
11
#!/bin/bash
2+
#
3+
# Runs the examples listed in the READMEs from `examples/*/README.md`.
4+
#
5+
# Requires additional runtime dependencies as listed in those READMEs.
6+
#
7+
# The code snippets and comments are parsed by `parse-md.sh` and can
8+
# essentially be split into two sections:
9+
# 1: binary aquisition
10+
# 2: test execution
11+
#
12+
# (1) is controlled by the `SOURCE_MODE` parameter in the READMEs and
13+
# is set by the second flag passed to this script ($2).
14+
#
15+
# Note: although the README scripts check for the binaries existance
16+
# before re-downloading (SOURCE_MODE != 1), this script deletes
17+
# the binaries before each run.
18+
#
19+
# Has two parameters:
20+
# $1 = test name filter
21+
# $2 = source mode flag
22+
# 1: build binaries from source
23+
# *: download binaries as releases
24+
225

326
function clear_environment() {
427
clear_logs

0 commit comments

Comments
 (0)