File tree Expand file tree Collapse file tree 6 files changed +24
-23
lines changed Expand file tree Collapse file tree 6 files changed +24
-23
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,17 @@ rem ----------------------------------------------------------------------------
26
26
SETLOCAL enableDelayedExpansion
27
27
ECHO !time! Start Test Data Generation
28
28
29
+ IF EXIST _build\test\lib\ocparse\test\generated (
30
+ RD /Q /S _build\test\lib\ocparse\test\generated
31
+ )
29
32
IF EXIST _build\test\lib\ocparse\test\performance_*.* (
30
33
DEL /Q _build\test\lib\ocparse\test\performance_*.*
31
34
)
32
35
IF EXIST _build\test\lib\ocparse\test\reliability_*.* (
33
36
DEL /Q _build\test\lib\ocparse\test\reliability_*.*
34
37
)
35
- IF EXIST test\performance_*.* (
36
- DEL /Q test\performance_*.*
37
- )
38
- IF EXIST test\reliability_*.* (
39
- DEL /Q test\reliability_*.*
38
+ IF EXIST test\generated (
39
+ RD /Q /S test\generated
40
40
)
41
41
42
42
CALL rebar3 as test compile
@@ -49,7 +49,7 @@ rem ----------------------------------------------------------------------------
49
49
SET GENERATE_EUNIT = false
50
50
SET GENERATE_PERFORMANCE = true
51
51
SET GENERATE_RELIABILITY = true
52
- SET HEAP_SIZE = +hms 100663296
52
+ SET HEAP_SIZE = +hms 33554432
53
53
SET LOGGING = false
54
54
SET MAX_BASIC_RULE = 100
55
55
)
Original file line number Diff line number Diff line change @@ -31,17 +31,17 @@ timestamp() {
31
31
32
32
echo " $( timestamp) Start Test Data Generation"
33
33
34
+ if [ -d " _build/test/lib/ocparse/test/generated" ]; then
35
+ rm -rf _build/test/lib/ocparse/test/generated
36
+ fi
34
37
if ls _build/test/lib/ocparse/test/performance_* .* 1> /dev/null 2>&1 ; then
35
38
rm _build/test/lib/ocparse/test/performance_* .*
36
39
fi
37
40
if ls _build/test/lib/ocparse/test/reliability_* .* 1> /dev/null 2>&1 ; then
38
41
rm _build/test/lib/ocparse/test/reliability_* .*
39
42
fi
40
- if ls test/performance_* .* 1> /dev/null 2>&1 ; then
41
- rm test/performance_* .*
42
- fi
43
- if ls test/reliability_* .* 1> /dev/null 2>&1 ; then
44
- rm test/reliability_* .*
43
+ if [ -d " test/generated" ]; then
44
+ rm -rf test/generated
45
45
fi
46
46
47
47
rebar3 as test compile
@@ -54,7 +54,7 @@ if [ "$GENERATE_COMPACTED" == "" ]; then
54
54
export GENERATE_EUNIT=" false"
55
55
export GENERATE_PERFORMANCE=" true"
56
56
export GENERATE_RELIABILITY=" true"
57
- export HEAP_SIZE=" +hms 100663296 "
57
+ export HEAP_SIZE=" +hms 33554432 "
58
58
export LOGGING=" false"
59
59
export MAX_BASIC_RULE=100
60
60
fi
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ rem ----------------------------------------------------------------------------
33
33
SET GENERATE_EUNIT = false
34
34
SET GENERATE_PERFORMANCE = true
35
35
SET GENERATE_RELIABILITY = true
36
- SET HEAP_SIZE = +hms 100663296
36
+ SET HEAP_SIZE = +hms 33554432
37
37
SET LOGGING = false
38
38
SET MAX_BASIC_RULE = 100
39
39
CALL test\gen_tests
Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ export GENERATE_CT="true"
38
38
export GENERATE_EUNIT=" false"
39
39
export GENERATE_PERFORMANCE=" true"
40
40
export GENERATE_RELIABILITY=" true"
41
- export HEAP_SIZE=" +hms 100663296 "
41
+ export HEAP_SIZE=" +hms 33554432 "
42
42
export LOGGING=" false"
43
43
export MAX_BASIC_RULE=100
44
- gen_tests.sh
44
+ test/ gen_tests.sh
45
45
46
46
echo " $( timestamp) Start EUnit Tests"
47
47
SOURCEFILES_OLD=SOURCEFILES
Original file line number Diff line number Diff line change @@ -34,12 +34,10 @@ IF "%1" == "" (
34
34
ECHO !time! Start run - in total %NO_RUNS%
35
35
36
36
IF EXIST _build\test\logs (
37
- ECHO " Deleting _build\test\logs"
38
37
RD /Q /S _build\test\logs
39
38
)
40
39
MD _build\test\logs
41
40
IF EXIST tmp\backup (
42
- ECHO " Deleting tmp\backup"
43
41
RD /Q /S tmp\backup
44
42
)
45
43
MD tmp\backup
@@ -51,7 +49,7 @@ IF "%1" == "" (
51
49
SET GENERATE_EUNIT = false
52
50
SET GENERATE_PERFORMANCE = true
53
51
SET GENERATE_RELIABILITY = false
54
- SET HEAP_SIZE = +hms 100663296
52
+ SET HEAP_SIZE = +hms 33554432
55
53
SET LOGGING = false
56
54
SET MAX_BASIC_RULE = 10
57
55
@@ -61,7 +59,12 @@ IF "%1" == "" (
61
59
CALL test\gen_tests.bat
62
60
63
61
MD tmp\backup\%%G
64
- COPY test\*_SUITE.erl tmp\backup\%%G
62
+ IF EXIST test\generated\ct (
63
+ COPY test\generated\ct\*_SUITE.erl tmp\backup\%%G
64
+ )
65
+ IF EXIST test\generated\eunit (
66
+ COPY test\generated\eunit\*_SUITE.erl tmp\backup\%%G
67
+ )
65
68
66
69
ECHO !time! %%G . Step: rebar3 ct
67
70
CALL rebar3 ct
Original file line number Diff line number Diff line change @@ -40,12 +40,10 @@ echo "======================================================================="
40
40
echo " $( timestamp) Start run - in total $NO_RUNS "
41
41
42
42
if [ -d " _build/test/logs" ]; then
43
- echo " Deleting _build/test/logs"
44
43
rm -rf _build/test/logs
45
44
fi
46
45
mkdir _build/test/logs
47
46
if [ -d " tmp/backup" ]; then
48
- echo " Deleting tmp/backup"
49
47
rm -rf tmp/backup
50
48
fi
51
49
mkdir tmp/backup
@@ -57,7 +55,7 @@ export GENERATE_CT="true"
57
55
export GENERATE_EUNIT=" false"
58
56
export GENERATE_PERFORMANCE=" true"
59
57
export GENERATE_RELIABILITY=" false"
60
- export HEAP_SIZE=" +hms 100663296 "
58
+ export HEAP_SIZE=" +hms 33554432 "
61
59
export LOGGING=" false"
62
60
export MAX_BASIC_RULE=100
63
61
68
66
test/gen_tests.sh
69
67
70
68
mkdir tmp/backup/$i
71
- cp test/* _SUITE.erl tmp/backup/$i
69
+ cp test/generated/ * / * _SUITE.erl tmp/backup/$i
72
70
73
71
echo " $( timestamp) $i . Step: rebar3 ct"
74
72
rebar3 ct
You can’t perform that action at this time.
0 commit comments