-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen_tests.sh
executable file
·22 lines (21 loc) · 1.51 KB
/
gen_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -ev
mockhiato generate -p lib/generate/integration_test -m {func}Run
mockhiato generate -p lib/generate/testdata/1.7/dependent_interface/actual -m {func}Run
mockhiato generate -p lib/generate/testdata/1.7/nested_interface/actual -m {func}Run
mockhiato generate -p lib/generate/testdata/1.7/no_defs_only_uses/actual -m {func}Run
mockhiato generate -p lib/generate/testdata/1.7/same_import_name/actual -m {func}Run
mockhiato generate -p lib/generate/testdata/1.7/sanity/actual -m {func}Run
mockhiato generate -p lib/generate/testdata/1.9/type_alias/actual -m {func}Run
rm -rf lib/generate/testdata/1.7/dependent_interface/expect/
cp -rf lib/generate/testdata/1.7/dependent_interface/actual/ lib/generate/testdata/1.7/dependent_interface/expect/
rm -rf lib/generate/testdata/1.7/nested_interface/expect/
cp -rf lib/generate/testdata/1.7/nested_interface/actual/ lib/generate/testdata/1.7/nested_interface/expect/
rm -rf lib/generate/testdata/1.7/no_defs_only_uses/expect/
cp -rf lib/generate/testdata/1.7/no_defs_only_uses/actual/ lib/generate/testdata/1.7/no_defs_only_uses/expect/
rm -rf lib/generate/testdata/1.7/same_import_name/expect/
cp -rf lib/generate/testdata/1.7/same_import_name/actual/ lib/generate/testdata/1.7/same_import_name/expect/
rm -rf lib/generate/testdata/1.7/sanity/expect/
cp -rf lib/generate/testdata/1.7/sanity/actual/ lib/generate/testdata/1.7/sanity/expect/
rm -rf lib/generate/testdata/1.9/type_alias/expect/
cp -rf lib/generate/testdata/1.9/type_alias/actual/ lib/generate/testdata/1.9/type_alias/expect/