소스 검색

代码整理

master
SisMaker 4 년 전
부모
커밋
1c1b7768b7
16개의 변경된 파일16114개의 추가작업 그리고 83개의 파일을 삭제
  1. +2
    -2
      src/dataType/utTypeCast.erl
  2. +0
    -59
      src/srvNodeMgr/utVMInfo.erl
  3. +0
    -15
      src/testCase/genCfg/test.erl
  4. +5241
    -0
      src/testCase/genCfg/utTestCfg1028.S
  5. +2059
    -0
      src/testCase/genCfg/utTestCfg1028.erl
  6. +259
    -0
      src/testCase/genCfg/utTestCfg128.erl
  7. +1
    -1
      src/testCase/genCfg/utTestCfg16.erl
  8. +18
    -0
      src/testCase/genCfg/utTestHand.erl
  9. +6208
    -0
      src/testCase/genCfg/utTestHand1028.S
  10. +2059
    -0
      src/testCase/genCfg/utTestHand1028.erl
  11. +259
    -0
      src/testCase/genCfg/utTestHand128.erl
  12. +1
    -1
      src/testCase/genCfg/utTestHand16.erl
  13. +1
    -1
      src/testCase/genCfg/utTestHand17.erl
  14. +1
    -1
      src/testCase/genCfg/utTestHand18.erl
  15. +3
    -3
      src/testCase/utSelectVal.erl
  16. +2
    -0
      src/testCase/utTpfm.erl

+ 2
- 2
src/dataType/utTypeCast.erl 파일 보기

@ -112,7 +112,7 @@ string_to_term(String) ->
end.
%% term序列化term转换为string格式e.g., [{a},1] => "[{a},1]"
term_to_string(Term) ->
term_to_string1(Term) ->
binary_to_list(list_to_binary(io_lib:format("~w", [Term]))).
%% term序列化term转换为bitstring格式e.g., [{a},1] => <<"[{a},1]">>
@ -120,7 +120,7 @@ term_to_bitstring(Term) ->
erlang:list_to_bitstring(io_lib:format("~w", [Term])).
%% term反序列化string转换为terme.g., "[{a},1]" => [{a},1]
string_to_term(String) ->
string_to_term1(String) ->
case String of
[] -> [];
_ ->

+ 0
- 59
src/srvNodeMgr/utVMInfo.erl 파일 보기

@ -283,65 +283,6 @@ ets_table_info(Table) ->
binary:list_to_bin([<<"=ets:">>, Owner, <<"\nTable: ">>, TableN, <<"\nName: ">>, Name,
<<"\nObjects: ">>, Objects, <<"\n">>]).
% 1s内调度进程数量()
scheduler_stat() ->
scheduler_stat(1000).
scheduler_stat(RunMs) ->
erlang:system_flag(scheduling_statistics, enable),
Ts0 = erlang:system_info(total_scheduling_statistics),
timer:sleep(RunMs),
Ts1 = erlang:system_info(total_scheduling_statistics),
erlang:system_flag(scheduling_statistics, disable),
lists:map(fun({{Key, In0, Out0}, {Key, In1, Out1}}) ->
{Key, In1 - In0, Out1 - Out0} end, lists:zip(Ts0, Ts1)).
% 1s每个调度器CPU的实际利用率(spin wait, usage top显示低很多)
scheduler_usage() ->
scheduler_usage(1000).
scheduler_usage(RunMs) ->
erlang:system_flag(scheduler_wall_time, true),
Ts0 = lists:sort(erlang:statistics(scheduler_wall_time)),
timer:sleep(RunMs),
Ts1 = lists:sort(erlang:statistics(scheduler_wall_time)),
erlang:system_flag(scheduler_wall_time, false),
Cores = lists:map(fun({{I, A0, T0}, {I, A1, T1}}) ->
{I, (A1 - A0) / (T1 - T0)} end, lists:zip(Ts0, Ts1)),
{A, T} = lists:foldl(fun({{_, A0, T0}, {_, A1, T1}}, {Ai, Ti}) ->
{Ai + (A1 - A0), Ti + (T1 - T0)} end, {0, 0}, lists:zip(Ts0, Ts1)),
Total = A / T,
io:format("~p~n", [[{total, Total} | Cores]]).
% @doc process做gc
gc_all() ->
[erlang:garbage_collect(Pid) || Pid <- processes()].
% @doc CPU占用排名
etop() ->
spawn(fun() -> etop:start([{output, text}, {interval, 10}, {lines, 20}, {sort, runtime}]) end).
% @doc Mem占用排名
etop_mem() ->
spawn(fun() -> etop:start([{output, text}, {interval, 10}, {lines, 20}, {sort, memory}]) end).
% @doc etop
etop_stop() ->
etop:stop().
%% @doc jstackhang住等问题用到
pstack(Reg) when is_atom(Reg) ->
case whereis(Reg) of
undefined -> undefined;
Pid -> pstack(Pid)
end;
pstack(Pid) ->
io:format("~s~n", [element(2, process_info(Pid, backtrace))]).
%% gc,
check_mem(MemLim) ->
lists:foreach(

+ 0
- 15
src/testCase/genCfg/test.erl 파일 보기

@ -1,15 +0,0 @@
-module(test).
-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).
test(0, Key) ->
ok;
test(N, Key) ->
testCfg2048:hand(Key),
test(N - 1, Key).
test2(0, Key, Key2) ->
ok;
test2(N, Key, Key2) ->
testHand2048:hand(Key, Key2),
test2(N - 1, Key, Key2).

+ 5241
- 0
src/testCase/genCfg/utTestCfg1028.S
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 2059
- 0
src/testCase/genCfg/utTestCfg1028.erl
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 259
- 0
src/testCase/genCfg/utTestCfg128.erl 파일 보기

@ -0,0 +1,259 @@
-module(utTestCfg128).
-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).
hand({test128, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
128;
hand({test127, V1, V100}) ->
127;
hand({test126, V1, V2, V3, V4, V5, V6, V7, V100}) ->
126;
hand({test125, V1, V2, V3, V4, V5, V100}) ->
125;
hand({test124, V1, V2, V100}) ->
124;
hand({test123, V1, V100}) ->
123;
hand({test122, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
122;
hand({test121, V1, V100}) ->
121;
hand({test120, V1, V2, V3, V100}) ->
120;
hand({test119, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
119;
hand({test118, V1, V2, V3, V4, V5, V6, V100}) ->
118;
hand({test117, V1, V2, V3, V4, V5, V6, V100}) ->
117;
hand({test116, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
116;
hand({test115, V1, V2, V3, V4, V5, V6, V7, V100}) ->
115;
hand({test114, V1, V2, V3, V4, V5, V6, V7, V8, V9, V100}) ->
114;
hand({test113, V1, V2, V3, V4, V5, V100}) ->
113;
hand({test112, V1, V2, V100}) ->
112;
hand({test111, V1, V100}) ->
111;
hand({test110, V1, V2, V3, V4, V5, V6, V100}) ->
110;
hand({test109, V1, V2, V3, V100}) ->
109;
hand({test108, V1, V2, V3, V100}) ->
108;
hand({test107, V1, V2, V100}) ->
107;
hand({test106, V1, V2, V3, V4, V5, V6, V7, V8, V9, V100}) ->
106;
hand({test105, V1, V2, V3, V100}) ->
105;
hand({test104, V1, V100}) ->
104;
hand({test103, V1, V2, V3, V4, V5, V100}) ->
103;
hand({test102, V1, V2, V100}) ->
102;
hand({test101, V1, V2, V3, V4, V100}) ->
101;
hand({test100, V1, V2, V3, V4, V5, V6, V100}) ->
100;
hand({test99, V1, V2, V100}) ->
99;
hand({test98, V1, V100}) ->
98;
hand({test97, V1, V2, V3, V4, V5, V6, V7, V100}) ->
97;
hand({test96, V1, V2, V3, V4, V100}) ->
96;
hand({test95, V1, V2, V3, V4, V5, V100}) ->
95;
hand({test94, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
94;
hand({test93, V1, V2, V3, V4, V5, V6, V7, V100}) ->
93;
hand({test92, V1, V2, V3, V4, V5, V6, V100}) ->
92;
hand({test91, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
91;
hand({test90, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
90;
hand({test89, V1, V2, V3, V4, V5, V6, V7, V100}) ->
89;
hand({test88, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
88;
hand({test87, V1, V2, V3, V4, V5, V6, V100}) ->
87;
hand({test86, V1, V2, V100}) ->
86;
hand({test85, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
85;
hand({test84, V1, V2, V3, V4, V5, V6, V100}) ->
84;
hand({test83, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
83;
hand({test82, V1, V2, V3, V4, V5, V6, V100}) ->
82;
hand({test81, V1, V2, V3, V4, V5, V100}) ->
81;
hand({test80, V1, V2, V3, V100}) ->
80;
hand({test79, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
79;
hand({test78, V1, V2, V3, V4, V100}) ->
78;
hand({test77, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
77;
hand({test76, V1, V100}) ->
76;
hand({test75, V1, V2, V3, V4, V5, V6, V7, V8, V9, V100}) ->
75;
hand({test74, V1, V2, V3, V4, V5, V6, V7, V100}) ->
74;
hand({test73, V1, V2, V100}) ->
73;
hand({test72, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
72;
hand({test71, V1, V2, V3, V4, V5, V6, V100}) ->
71;
hand({test70, V1, V2, V3, V4, V5, V6, V7, V100}) ->
70;
hand({test69, V1, V2, V3, V4, V5, V6, V7, V8, V9, V100}) ->
69;
hand({test68, V1, V2, V100}) ->
68;
hand({test67, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
67;
hand({test66, V1, V2, V3, V4, V5, V6, V7, V100}) ->
66;
hand({test65, V1, V2, V100}) ->
65;
hand({test64, V1, V2, V3, V4, V5, V6, V100}) ->
64;
hand({test63, V1, V2, V3, V4, V100}) ->
63;
hand({test62, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
62;
hand({test61, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
61;
hand({test60, V1, V100}) ->
60;
hand({test59, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
59;
hand({test58, V1, V2, V3, V4, V5, V6, V100}) ->
58;
hand({test57, V1, V2, V3, V4, V100}) ->
57;
hand({test56, V1, V100}) ->
56;
hand({test55, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
55;
hand({test54, V1, V2, V3, V4, V5, V6, V7, V8, V9, V100}) ->
54;
hand({test53, V1, V2, V3, V4, V5, V100}) ->
53;
hand({test52, V1, V2, V100}) ->
52;
hand({test51, V1, V2, V3, V4, V5, V6, V7, V100}) ->
51;
hand({test50, V1, V2, V3, V4, V100}) ->
50;
hand({test49, V1, V2, V3, V100}) ->
49;
hand({test48, V1, V2, V3, V4, V5, V100}) ->
48;
hand({test47, V1, V2, V3, V4, V5, V6, V7, V100}) ->
47;
hand({test46, V1, V100}) ->
46;
hand({test45, V1, V2, V3, V4, V5, V6, V7, V8, V9, V100}) ->
45;
hand({test44, V1, V2, V3, V4, V5, V100}) ->
44;
hand({test43, V1, V2, V3, V100}) ->
43;
hand({test42, V1, V100}) ->
42;
hand({test41, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
41;
hand({test40, V1, V2, V3, V4, V5, V6, V100}) ->
40;
hand({test39, V1, V2, V3, V100}) ->
39;
hand({test38, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
38;
hand({test37, V1, V2, V3, V4, V100}) ->
37;
hand({test36, V1, V2, V3, V4, V5, V6, V100}) ->
36;
hand({test35, V1, V2, V100}) ->
35;
hand({test34, V1, V100}) ->
34;
hand({test33, V1, V2, V3, V4, V5, V6, V7, V100}) ->
33;
hand({test32, V1, V2, V3, V4, V5, V6, V100}) ->
32;
hand({test31, V1, V2, V3, V4, V5, V6, V7, V100}) ->
31;
hand({test30, V1, V2, V3, V4, V100}) ->
30;
hand({test29, V1, V2, V3, V4, V5, V100}) ->
29;
hand({test28, V1, V2, V3, V4, V100}) ->
28;
hand({test27, V1, V2, V3, V100}) ->
27;
hand({test26, V1, V2, V3, V4, V5, V6, V7, V100}) ->
26;
hand({test25, V1, V2, V3, V4, V100}) ->
25;
hand({test24, V1, V100}) ->
24;
hand({test23, V1, V2, V100}) ->
23;
hand({test22, V1, V2, V100}) ->
22;
hand({test21, V1, V2, V3, V4, V100}) ->
21;
hand({test20, V1, V2, V3, V100}) ->
20;
hand({test19, V1, V2, V100}) ->
19;
hand({test18, V1, V2, V3, V4, V5, V6, V7, V100}) ->
18;
hand({test17, V1, V2, V3, V4, V5, V6, V7, V8, V9, V100}) ->
17;
hand({test16, V1, V100}) ->
16;
hand({test15, V1, V2, V3, V4, V5, V6, V7, V8, V9, V100}) ->
15;
hand({test14, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
14;
hand({test13, V1, V2, V3, V4, V5, V6, V7, V100}) ->
13;
hand({test12, V1, V2, V3, V100}) ->
12;
hand({test11, V1, V2, V3, V4, V5, V6, V7, V100}) ->
11;
hand({test10, V1, V100}) ->
10;
hand({test9, V1, V2, V3, V4, V5, V6, V100}) ->
9;
hand({test8, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
8;
hand({test7, V1, V2, V100}) ->
7;
hand({test6, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V100}) ->
6;
hand({test5, V1, V2, V3, V4, V5, V6, V100}) ->
5;
hand({test4, V1, V2, V3, V4, V5, V6, V7, V100}) ->
4;
hand({test3, V1, V2, V3, V4, V5, V6, V7, V100}) ->
3;
hand({test2, V1, V2, V3, V4, V100}) ->
2;
hand({test1, V1, V2, V3, V100}) ->
1;
hand(_) -> undefined.

src/testCase/genCfg/testCfg16.erl → src/testCase/genCfg/utTestCfg16.erl 파일 보기

@ -1,4 +1,4 @@
-module(testCfg16).
-module(utTestCfg16).
-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).
hand({test16, V1, V2, V3, V4, V5, V6, V100}) ->
16;

+ 18
- 0
src/testCase/genCfg/utTestHand.erl 파일 보기

@ -0,0 +1,18 @@
-module(utTestHand).
-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).
test(0, Key, _) ->
utTestCfg1028:hand(Key);
test(N, Key, _) ->
test(N - 1, Key, utTestCfg1028:hand(Key)).
test2(0, Key, Key2, _) ->
utTestHand1028:hand(Key, Key2);
test2(N, Key, Key2, _) ->
test2(N - 1, Key, Key2, utTestHand1028:hand(Key, Key2)).
test3(0, Key2, _) ->
utTestHand1028:hand(element(1, Key2), Key2);
test3(N, Key2, _) ->
test3(N - 1, Key2, utTestHand1028:hand(element(1, Key2), Key2)).

+ 6208
- 0
src/testCase/genCfg/utTestHand1028.S
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 2059
- 0
src/testCase/genCfg/utTestHand1028.erl
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 259
- 0
src/testCase/genCfg/utTestHand128.erl 파일 보기

@ -0,0 +1,259 @@
-module(utTestHand128).
-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).
hand(test128, {test128, V1, V2, V3, V100}) ->
128;
hand(test127, {test127, V1, V100}) ->
127;
hand(test126, {test126, V1, V2, V100}) ->
126;
hand(test125, {test125, V1, V2, V3, V4, V5, V6, V7, V100}) ->
125;
hand(test124, {test124, V1, V2, V100}) ->
124;
hand(test123, {test123, V1, V2, V3, V4, V5, V100}) ->
123;
hand(test122, {test122, V1, V2, V100}) ->
122;
hand(test121, {test121, V1, V2, V3, V100}) ->
121;
hand(test120, {test120, V1, V2, V3, V4, V100}) ->
120;
hand(test119, {test119, V1, V100}) ->
119;
hand(test118, {test118, V1, V2, V3, V4, V5, V6, V100}) ->
118;
hand(test117, {test117, V1, V2, V3, V4, V5, V6, V100}) ->
117;
hand(test116, {test116, V1, V2, V3, V4, V5, V6, V7, V100}) ->
116;
hand(test115, {test115, V1, V2, V3, V4, V5, V100}) ->
115;
hand(test114, {test114, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
114;
hand(test113, {test113, V1, V100}) ->
113;
hand(test112, {test112, V1, V2, V100}) ->
112;
hand(test111, {test111, V1, V2, V3, V4, V5, V100}) ->
111;
hand(test110, {test110, V1, V2, V3, V4, V5, V6, V7, V100}) ->
110;
hand(test109, {test109, V1, V2, V3, V4, V100}) ->
109;
hand(test108, {test108, V1, V100}) ->
108;
hand(test107, {test107, V1, V2, V3, V4, V5, V6, V7, V100}) ->
107;
hand(test106, {test106, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
106;
hand(test105, {test105, V1, V2, V3, V100}) ->
105;
hand(test104, {test104, V1, V2, V3, V4, V5, V100}) ->
104;
hand(test103, {test103, V1, V2, V3, V4, V5, V100}) ->
103;
hand(test102, {test102, V1, V2, V100}) ->
102;
hand(test101, {test101, V1, V2, V100}) ->
101;
hand(test100, {test100, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
100;
hand(test99, {test99, V1, V2, V3, V4, V5, V6, V100}) ->
99;
hand(test98, {test98, V1, V2, V3, V4, V100}) ->
98;
hand(test97, {test97, V1, V2, V3, V4, V100}) ->
97;
hand(test96, {test96, V1, V2, V3, V4, V5, V100}) ->
96;
hand(test95, {test95, V1, V2, V3, V100}) ->
95;
hand(test94, {test94, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
94;
hand(test93, {test93, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
93;
hand(test92, {test92, V1, V2, V3, V100}) ->
92;
hand(test91, {test91, V1, V2, V3, V100}) ->
91;
hand(test90, {test90, V1, V100}) ->
90;
hand(test89, {test89, V1, V2, V3, V4, V5, V6, V7, V100}) ->
89;
hand(test88, {test88, V1, V2, V3, V4, V5, V6, V7, V100}) ->
88;
hand(test87, {test87, V1, V2, V3, V100}) ->
87;
hand(test86, {test86, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
86;
hand(test85, {test85, V1, V2, V3, V4, V100}) ->
85;
hand(test84, {test84, V1, V2, V3, V100}) ->
84;
hand(test83, {test83, V1, V2, V3, V4, V100}) ->
83;
hand(test82, {test82, V1, V2, V3, V4, V5, V100}) ->
82;
hand(test81, {test81, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
81;
hand(test80, {test80, V1, V2, V100}) ->
80;
hand(test79, {test79, V1, V100}) ->
79;
hand(test78, {test78, V1, V100}) ->
78;
hand(test77, {test77, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
77;
hand(test76, {test76, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
76;
hand(test75, {test75, V1, V2, V3, V100}) ->
75;
hand(test74, {test74, V1, V2, V3, V4, V5, V6, V100}) ->
74;
hand(test73, {test73, V1, V2, V100}) ->
73;
hand(test72, {test72, V1, V2, V3, V100}) ->
72;
hand(test71, {test71, V1, V2, V3, V4, V5, V6, V100}) ->
71;
hand(test70, {test70, V1, V100}) ->
70;
hand(test69, {test69, V1, V2, V3, V4, V5, V100}) ->
69;
hand(test68, {test68, V1, V100}) ->
68;
hand(test67, {test67, V1, V2, V3, V4, V5, V100}) ->
67;
hand(test66, {test66, V1, V2, V3, V100}) ->
66;
hand(test65, {test65, V1, V2, V3, V4, V5, V6, V7, V100}) ->
65;
hand(test64, {test64, V1, V2, V100}) ->
64;
hand(test63, {test63, V1, V2, V3, V4, V5, V6, V7, V100}) ->
63;
hand(test62, {test62, V1, V2, V3, V4, V100}) ->
62;
hand(test61, {test61, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
61;
hand(test60, {test60, V1, V2, V100}) ->
60;
hand(test59, {test59, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
59;
hand(test58, {test58, V1, V2, V3, V4, V5, V100}) ->
58;
hand(test57, {test57, V1, V2, V3, V4, V5, V100}) ->
57;
hand(test56, {test56, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
56;
hand(test55, {test55, V1, V2, V3, V100}) ->
55;
hand(test54, {test54, V1, V2, V100}) ->
54;
hand(test53, {test53, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
53;
hand(test52, {test52, V1, V2, V3, V100}) ->
52;
hand(test51, {test51, V1, V2, V3, V4, V5, V100}) ->
51;
hand(test50, {test50, V1, V2, V3, V4, V5, V6, V7, V100}) ->
50;
hand(test49, {test49, V1, V2, V3, V100}) ->
49;
hand(test48, {test48, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
48;
hand(test47, {test47, V1, V2, V3, V4, V5, V6, V7, V100}) ->
47;
hand(test46, {test46, V1, V2, V3, V100}) ->
46;
hand(test45, {test45, V1, V100}) ->
45;
hand(test44, {test44, V1, V2, V3, V4, V5, V6, V100}) ->
44;
hand(test43, {test43, V1, V2, V3, V4, V5, V6, V7, V100}) ->
43;
hand(test42, {test42, V1, V2, V3, V4, V5, V6, V7, V100}) ->
42;
hand(test41, {test41, V1, V2, V3, V100}) ->
41;
hand(test40, {test40, V1, V2, V100}) ->
40;
hand(test39, {test39, V1, V2, V3, V4, V5, V6, V7, V100}) ->
39;
hand(test38, {test38, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
38;
hand(test37, {test37, V1, V2, V3, V100}) ->
37;
hand(test36, {test36, V1, V2, V3, V4, V5, V100}) ->
36;
hand(test35, {test35, V1, V2, V3, V4, V100}) ->
35;
hand(test34, {test34, V1, V100}) ->
34;
hand(test33, {test33, V1, V2, V3, V4, V5, V6, V100}) ->
33;
hand(test32, {test32, V1, V2, V3, V100}) ->
32;
hand(test31, {test31, V1, V2, V3, V4, V5, V6, V100}) ->
31;
hand(test30, {test30, V1, V2, V3, V100}) ->
30;
hand(test29, {test29, V1, V2, V3, V100}) ->
29;
hand(test28, {test28, V1, V2, V3, V4, V5, V100}) ->
28;
hand(test27, {test27, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
27;
hand(test26, {test26, V1, V2, V3, V4, V5, V100}) ->
26;
hand(test25, {test25, V1, V2, V3, V100}) ->
25;
hand(test24, {test24, V1, V2, V3, V4, V5, V6, V7, V100}) ->
24;
hand(test23, {test23, V1, V2, V100}) ->
23;
hand(test22, {test22, V1, V2, V3, V4, V5, V6, V100}) ->
22;
hand(test21, {test21, V1, V2, V3, V100}) ->
21;
hand(test20, {test20, V1, V2, V3, V100}) ->
20;
hand(test19, {test19, V1, V2, V3, V100}) ->
19;
hand(test18, {test18, V1, V2, V3, V4, V5, V100}) ->
18;
hand(test17, {test17, V1, V2, V3, V4, V5, V100}) ->
17;
hand(test16, {test16, V1, V2, V3, V4, V5, V100}) ->
16;
hand(test15, {test15, V1, V2, V3, V4, V100}) ->
15;
hand(test14, {test14, V1, V2, V3, V4, V5, V6, V7, V100}) ->
14;
hand(test13, {test13, V1, V2, V3, V4, V100}) ->
13;
hand(test12, {test12, V1, V100}) ->
12;
hand(test11, {test11, V1, V2, V100}) ->
11;
hand(test10, {test10, V1, V2, V3, V4, V5, V6, V7, V100}) ->
10;
hand(test9, {test9, V1, V2, V3, V4, V5, V6, V7, V100}) ->
9;
hand(test8, {test8, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
8;
hand(test7, {test7, V1, V2, V100}) ->
7;
hand(test6, {test6, V1, V2, V3, V4, V5, V6, V7, V100}) ->
6;
hand(test5, {test5, V1, V2, V3, V100}) ->
5;
hand(test4, {test4, V1, V2, V3, V4, V100}) ->
4;
hand(test3, {test3, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
3;
hand(test2, {test2, V1, V2, V3, V4, V5, V6, V7, V8, V100}) ->
2;
hand(test1, {test1, V1, V2, V3, V100}) ->
1;
hand(_, _) -> undefined.

src/testCase/genCfg/testHand16.erl → src/testCase/genCfg/utTestHand16.erl 파일 보기

@ -1,4 +1,4 @@
-module(testHand16).
-module(utTestHand16).
-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).
hand(test16, {test16, V1, V2, V100}) ->
16;

src/testCase/genCfg/testHand17.erl → src/testCase/genCfg/utTestHand17.erl 파일 보기

@ -1,4 +1,4 @@
-module(testHand17).
-module(utTestHand17).
-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).
hand({test16, V1, V2, V100}, Test16) ->
16;

src/testCase/genCfg/testHand18.erl → src/testCase/genCfg/utTestHand18.erl 파일 보기

@ -1,4 +1,4 @@
-module(testHand18).
-module(utTestHand18).
-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).
hand(test16, {test16, V1, V2, V100}, Test16) ->
16;

+ 3
- 3
src/testCase/utSelectVal.erl 파일 보기

@ -5,13 +5,13 @@
write(N) ->
Head = <<"-module(testCfg", (integer_to_binary(N))/binary, ").\n-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).\n">>,
HandStr = makeStr(N, Head),
ok = file:write_file("./genCfg/testCfg" ++ integer_to_list(N) ++ ".erl", HandStr).
ok = file:write_file("./genCfg/utTestCfg" ++ integer_to_list(N) ++ ".erl", HandStr).
makeStr(0, BinStr) ->
<<BinStr/binary, "hand(_) -> undefined.">>;
makeStr(N, BinStr) ->
PN = rand:uniform(8),
PN = rand:uniform(10),
VStr = << <<"V", (integer_to_binary(VN))/binary, ", ">> || VN <- lists:seq(1, PN)>>,
Str = <<"hand({test", (integer_to_binary(N))/binary, ", ", VStr/binary, "V100}) ->\n\t", (integer_to_binary(N))/binary, ";\n">>,
makeStr(N - 1, <<BinStr/binary, Str/binary>>).
@ -19,7 +19,7 @@ makeStr(N, BinStr) ->
write2(N) ->
Head = <<"-module(testHand", (integer_to_binary(N))/binary, ").\n-compile([export_all, nowarn_function, nowarn_unused_vars, nowarn_export_all]).\n">>,
HandStr = makeStr2(N, Head),
ok = file:write_file("./genCfg/testHand" ++ integer_to_list(N) ++ ".erl", HandStr).
ok = file:write_file("./genCfg/utTestHand" ++ integer_to_list(N) ++ ".erl", HandStr).
makeStr2(0, BinStr) ->

+ 2
- 0
src/testCase/utTpfm.erl 파일 보기

@ -574,3 +574,5 @@ load2(N, List) ->
utStrToBeam:load(load2, [{get, 1}], binary_to_list(LastStr)),
load2(N - 1, List).

불러오는 중...
취소
저장