forked from LiveRamp/reslang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
regenerate-test-data.sh
executable file
·51 lines (49 loc) · 1.29 KB
/
regenerate-test-data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
apis=(
"authorization"
"checkrules"
"complex-resource"
"direct2dist"
"distribution"
"eventing"
"file"
"linked"
"milkman"
"multi"
"multiplicity"
"namespaces"
"optionality"
"pagination"
"patchable"
"request"
"servers"
"simple-resource"
"stringmaps"
"table"
"upversion")
echo "Regenerating event files"
echo "---"
./reslang --noversion --events --ignorerules ${apis[@]} --testdir ./models --testwrite ./testdata/asyncapi.expected
echo
echo "---"
echo "Regenerating swagger files"
echo "---"
./reslang --noversion --ignorerules ${apis[@]} --testdir ./models --testwrite ./testdata/swagger.expected
echo
echo "---"
echo "Regenerating parse tree files"
echo "---"
./reslang --noversion --ignorerules ${apis[@]} --testdir ./models --testwrite ./testdata/parsed.expected --parsed
echo
echo "---"
echo "Regenerating Dotviz files"
echo "---"
./reslang --noversion --ignorerules ${apis[@]} --testdir ./models --testwrite ./testdata/dotviz.expected --diagram main
echo
echo "---"
echo "Regenerating JSON schema files"
echo "---"
./reslang --noversion --ignorerules ${apis[@]} --testdir ./models --testwrite ./testdata/jsonschema.expected --jsonschema noroot --followresources
echo
echo "---"
echo Updated test data