Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 27, 2024
1 parent 20de224 commit f9498d1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ all_directories=$(discover_directories "$EXAMPLES_DIR")
all_directories+=$'\n'
all_directories+=$(discover_directories "$TESTS_DIR")

EXAMPLE_DIRECTORIES=$(cat << END
[
{path: "HERE/hello_world", name: "basic_bitcoin", type: "ex"},
{path: "HERE/hello_world2", name: "large_files", type: "e2e", "syntax": "http"},
{path: "HERE/hello_world3", name: "bool", type: "prop", "syntax": "crpc", "api": "class"}
]
END
)

# Initialize an empty variable to store the JSON result
json_result="["

Expand All @@ -105,7 +114,7 @@ json_result=$(echo "$json_result" | sed '$ s/,$//')
json_result+="]"

# Store the result in a variable (you can use it as needed)
result="$json_result"
result="$EXAMPLE_DIRECTORIES"
result="${result//'%'/'%25'}"
result="${result//$'\n'/'%0A'}"
result="${result//$'\r'/'%0D'}"
Expand Down

0 comments on commit f9498d1

Please sign in to comment.