浏览代码

moving etap tests to special directory

pull/8/merge^2
Dmitry Groshev 13 年前
父节点
当前提交
6aabfe0403
共有 87 个文件被更改,包括 13 次插入16 次删除
  1. +4
    -4
      Makefile
  2. +2
    -2
      test_etap/001-yajl-tests.t
  3. +1
    -3
      test_etap/002-literals.t
  4. +1
    -1
      test_etap/003-numbers.t
  5. +1
    -1
      test_etap/004-strings.t
  6. +1
    -1
      test_etap/005-arrays.t
  7. +1
    -1
      test_etap/006-maps.t
  8. +1
    -1
      test_etap/007-compound.t
  9. +1
    -2
      test_etap/008-halfword.t
  10. +0
    -0
      test_etap/cases/array.erl
  11. +0
    -0
      test_etap/cases/array.json
  12. +0
    -0
      test_etap/cases/array_close.erl
  13. +0
    -0
      test_etap/cases/array_close.json
  14. +0
    -0
      test_etap/cases/array_open.erl
  15. +0
    -0
      test_etap/cases/array_open.json
  16. +0
    -0
      test_etap/cases/bogus_char.erl
  17. +0
    -0
      test_etap/cases/bogus_char.json
  18. +0
    -0
      test_etap/cases/codepoints_from_unicode_org.erl
  19. +0
    -0
      test_etap/cases/codepoints_from_unicode_org.json
  20. +0
    -0
      test_etap/cases/deep_arrays.erl
  21. +0
    -0
      test_etap/cases/deep_arrays.json
  22. +0
    -0
      test_etap/cases/difficult_json_c_test_case.erl
  23. +0
    -0
      test_etap/cases/difficult_json_c_test_case.json
  24. +0
    -0
      test_etap/cases/doubles.erl
  25. +0
    -0
      test_etap/cases/doubles.json
  26. +0
    -0
      test_etap/cases/empty_array.erl
  27. +0
    -0
      test_etap/cases/empty_array.json
  28. +0
    -0
      test_etap/cases/empty_string.erl
  29. +0
    -0
      test_etap/cases/empty_string.json
  30. +0
    -0
      test_etap/cases/escaped_bulgarian.erl
  31. +0
    -0
      test_etap/cases/escaped_bulgarian.json
  32. +0
    -0
      test_etap/cases/escaped_foobar.erl
  33. +0
    -0
      test_etap/cases/escaped_foobar.json
  34. +0
    -0
      test_etap/cases/false.erl
  35. +0
    -0
      test_etap/cases/false.json
  36. +0
    -0
      test_etap/cases/false_then_garbage.erl
  37. +0
    -0
      test_etap/cases/false_then_garbage.json
  38. +0
    -0
      test_etap/cases/four_byte_utf8.erl
  39. +0
    -0
      test_etap/cases/four_byte_utf8.json
  40. +0
    -0
      test_etap/cases/integers.erl
  41. +0
    -0
      test_etap/cases/integers.json
  42. +0
    -0
      test_etap/cases/invalid_utf8.erl
  43. +0
    -0
      test_etap/cases/invalid_utf8.json
  44. +0
    -0
      test_etap/cases/isolated_surrogate_marker.erl
  45. +0
    -0
      test_etap/cases/isolated_surrogate_marker.json
  46. +0
    -0
      test_etap/cases/leading_zero_in_number.erl
  47. +0
    -0
      test_etap/cases/leading_zero_in_number.json
  48. +0
    -0
      test_etap/cases/lonely_minus_sign.erl
  49. +0
    -0
      test_etap/cases/lonely_minus_sign.json
  50. +0
    -0
      test_etap/cases/lonely_number.erl
  51. +0
    -0
      test_etap/cases/lonely_number.json
  52. +0
    -0
      test_etap/cases/map_close.erl
  53. +0
    -0
      test_etap/cases/map_close.json
  54. +0
    -0
      test_etap/cases/map_open.erl
  55. +0
    -0
      test_etap/cases/map_open.json
  56. +0
    -0
      test_etap/cases/missing_integer_after_decimal_point.erl
  57. +0
    -0
      test_etap/cases/missing_integer_after_decimal_point.json
  58. +0
    -0
      test_etap/cases/missing_integer_after_exponent.erl
  59. +0
    -0
      test_etap/cases/missing_integer_after_exponent.json
  60. +0
    -0
      test_etap/cases/non_utf8_char_in_string.erl
  61. +0
    -0
      test_etap/cases/non_utf8_char_in_string.json
  62. +0
    -0
      test_etap/cases/null.erl
  63. +0
    -0
      test_etap/cases/null.json
  64. +0
    -0
      test_etap/cases/null_then_garbage.erl
  65. +0
    -0
      test_etap/cases/null_then_garbage.json
  66. +0
    -0
      test_etap/cases/nulls_and_bools.erl
  67. +0
    -0
      test_etap/cases/nulls_and_bools.json
  68. +0
    -0
      test_etap/cases/simple.erl
  69. +0
    -0
      test_etap/cases/simple.json
  70. +0
    -0
      test_etap/cases/string_invalid_escape.erl
  71. +0
    -0
      test_etap/cases/string_invalid_escape.json
  72. +0
    -0
      test_etap/cases/string_invalid_hex_char.erl
  73. +0
    -0
      test_etap/cases/string_invalid_hex_char.json
  74. +0
    -0
      test_etap/cases/string_with_escapes.erl
  75. +0
    -0
      test_etap/cases/string_with_escapes.json
  76. +0
    -0
      test_etap/cases/string_with_invalid_newline.erl
  77. +0
    -0
      test_etap/cases/string_with_invalid_newline.json
  78. +0
    -0
      test_etap/cases/three_byte_utf8.erl
  79. +0
    -0
      test_etap/cases/three_byte_utf8.json
  80. +0
    -0
      test_etap/cases/true.erl
  81. +0
    -0
      test_etap/cases/true.json
  82. +0
    -0
      test_etap/cases/true_then_garbage.erl
  83. +0
    -0
      test_etap/cases/true_then_garbage.json
  84. +0
    -0
      test_etap/cases/unescaped_bulgarian.erl
  85. +0
    -0
      test_etap/cases/unescaped_bulgarian.json
  86. +0
    -0
      test_etap/etap.erl
  87. +0
    -0
      test_etap/util.erl

+ 4
- 4
Makefile 查看文件

@ -2,16 +2,16 @@
all: build
%.beam: %.erl
erlc -o test/ $<
erlc -o test_etap/ $<
build: c_src/decoder.c
./rebar compile
check: test/etap.beam test/util.beam
prove test/*.t
check: test_etap/etap.beam test_etap/util.beam
prove test_etap/*.t
clean:
rm -rf logs .eunit
ct:
./rebar ct skip_deps=true
./rebar eunit skip_deps=true

test/001-yajl-tests.t → test_etap/001-yajl-tests.t 查看文件

@ -3,7 +3,7 @@
% See the LICENSE file for more information.
main([]) ->
code:add_pathz("test"),
code:add_pathz("test_etap"),
code:add_pathz("ebin"),
Cases = read_cases(),
@ -18,7 +18,7 @@ test({Name, Json, Erl}) ->
etap:is(jiffy:decode(Json), Erl, Name).
read_cases() ->
CasesPath = filename:join(["test", "cases", "*.json"]),
CasesPath = filename:join(["test_etap", "cases", "*.json"]),
FileNames = lists:sort(filelib:wildcard(CasesPath)),
lists:map(fun(F) -> make_pair(F) end, FileNames).

test/002-literals.t → test_etap/002-literals.t 查看文件

@ -4,7 +4,7 @@
main([]) ->
code:add_pathz("ebin"),
code:add_pathz("test"),
code:add_pathz("test_etap"),
etap:plan(6),
etap:is(jiffy:decode(<<"true">>), true, "DEC: true -> true"),
@ -17,5 +17,3 @@ main([]) ->
etap:is(jiffy:encode(null), <<"null">>, "ENC: null -> null"),
etap:end_tests().

test/003-numbers.t → test_etap/003-numbers.t 查看文件

@ -4,7 +4,7 @@
main([]) ->
code:add_pathz("ebin"),
code:add_pathz("test"),
code:add_pathz("test_etap"),
etap:plan(59),
util:test_good(good()),

test/004-strings.t → test_etap/004-strings.t 查看文件

@ -4,7 +4,7 @@
main([]) ->
code:add_pathz("ebin"),
code:add_pathz("test"),
code:add_pathz("test_etap"),
etap:plan(83),
util:test_good(good()),

test/005-arrays.t → test_etap/005-arrays.t 查看文件

@ -4,7 +4,7 @@
main([]) ->
code:add_pathz("ebin"),
code:add_pathz("test"),
code:add_pathz("test_etap"),
etap:plan(18),
util:test_good(good()),

test/006-maps.t → test_etap/006-maps.t 查看文件

@ -4,7 +4,7 @@
main([]) ->
code:add_pathz("ebin"),
code:add_pathz("test"),
code:add_pathz("test_etap"),
etap:plan(15),
util:test_good(good()),

test/007-compound.t → test_etap/007-compound.t 查看文件

@ -4,7 +4,7 @@
main([]) ->
code:add_pathz("ebin"),
code:add_pathz("test"),
code:add_pathz("test_etap"),
etap:plan(12),
util:test_good(good()),

test/008-halfword.t → test_etap/008-halfword.t 查看文件

@ -4,7 +4,7 @@
main([]) ->
code:add_pathz("ebin"),
code:add_pathz("test"),
code:add_pathz("test_etap"),
etap:plan(unknown),
@ -12,4 +12,3 @@ main([]) ->
etap:is(jiffy:decode(<<"1">>) == 1, true, "1 == 1"),
etap:end_tests().

test/cases/array.erl → test_etap/cases/array.erl 查看文件


test/cases/array.json → test_etap/cases/array.json 查看文件


test/cases/array_close.erl → test_etap/cases/array_close.erl 查看文件


test/cases/array_close.json → test_etap/cases/array_close.json 查看文件


test/cases/array_open.erl → test_etap/cases/array_open.erl 查看文件


test/cases/array_open.json → test_etap/cases/array_open.json 查看文件


test/cases/bogus_char.erl → test_etap/cases/bogus_char.erl 查看文件


test/cases/bogus_char.json → test_etap/cases/bogus_char.json 查看文件


test/cases/codepoints_from_unicode_org.erl → test_etap/cases/codepoints_from_unicode_org.erl 查看文件


test/cases/codepoints_from_unicode_org.json → test_etap/cases/codepoints_from_unicode_org.json 查看文件


test/cases/deep_arrays.erl → test_etap/cases/deep_arrays.erl 查看文件


test/cases/deep_arrays.json → test_etap/cases/deep_arrays.json 查看文件


test/cases/difficult_json_c_test_case.erl → test_etap/cases/difficult_json_c_test_case.erl 查看文件


test/cases/difficult_json_c_test_case.json → test_etap/cases/difficult_json_c_test_case.json 查看文件


test/cases/doubles.erl → test_etap/cases/doubles.erl 查看文件


test/cases/doubles.json → test_etap/cases/doubles.json 查看文件


test/cases/empty_array.erl → test_etap/cases/empty_array.erl 查看文件


test/cases/empty_array.json → test_etap/cases/empty_array.json 查看文件


test/cases/empty_string.erl → test_etap/cases/empty_string.erl 查看文件


test/cases/empty_string.json → test_etap/cases/empty_string.json 查看文件


test/cases/escaped_bulgarian.erl → test_etap/cases/escaped_bulgarian.erl 查看文件


test/cases/escaped_bulgarian.json → test_etap/cases/escaped_bulgarian.json 查看文件


test/cases/escaped_foobar.erl → test_etap/cases/escaped_foobar.erl 查看文件


test/cases/escaped_foobar.json → test_etap/cases/escaped_foobar.json 查看文件


test/cases/false.erl → test_etap/cases/false.erl 查看文件


test/cases/false.json → test_etap/cases/false.json 查看文件


test/cases/false_then_garbage.erl → test_etap/cases/false_then_garbage.erl 查看文件


test/cases/false_then_garbage.json → test_etap/cases/false_then_garbage.json 查看文件


test/cases/four_byte_utf8.erl → test_etap/cases/four_byte_utf8.erl 查看文件


test/cases/four_byte_utf8.json → test_etap/cases/four_byte_utf8.json 查看文件


test/cases/integers.erl → test_etap/cases/integers.erl 查看文件


test/cases/integers.json → test_etap/cases/integers.json 查看文件


test/cases/invalid_utf8.erl → test_etap/cases/invalid_utf8.erl 查看文件


test/cases/invalid_utf8.json → test_etap/cases/invalid_utf8.json 查看文件


test/cases/isolated_surrogate_marker.erl → test_etap/cases/isolated_surrogate_marker.erl 查看文件


test/cases/isolated_surrogate_marker.json → test_etap/cases/isolated_surrogate_marker.json 查看文件


test/cases/leading_zero_in_number.erl → test_etap/cases/leading_zero_in_number.erl 查看文件


test/cases/leading_zero_in_number.json → test_etap/cases/leading_zero_in_number.json 查看文件


test/cases/lonely_minus_sign.erl → test_etap/cases/lonely_minus_sign.erl 查看文件


test/cases/lonely_minus_sign.json → test_etap/cases/lonely_minus_sign.json 查看文件


test/cases/lonely_number.erl → test_etap/cases/lonely_number.erl 查看文件


test/cases/lonely_number.json → test_etap/cases/lonely_number.json 查看文件


test/cases/map_close.erl → test_etap/cases/map_close.erl 查看文件


test/cases/map_close.json → test_etap/cases/map_close.json 查看文件


test/cases/map_open.erl → test_etap/cases/map_open.erl 查看文件


test/cases/map_open.json → test_etap/cases/map_open.json 查看文件


test/cases/missing_integer_after_decimal_point.erl → test_etap/cases/missing_integer_after_decimal_point.erl 查看文件


test/cases/missing_integer_after_decimal_point.json → test_etap/cases/missing_integer_after_decimal_point.json 查看文件


test/cases/missing_integer_after_exponent.erl → test_etap/cases/missing_integer_after_exponent.erl 查看文件


test/cases/missing_integer_after_exponent.json → test_etap/cases/missing_integer_after_exponent.json 查看文件


test/cases/non_utf8_char_in_string.erl → test_etap/cases/non_utf8_char_in_string.erl 查看文件


test/cases/non_utf8_char_in_string.json → test_etap/cases/non_utf8_char_in_string.json 查看文件


test/cases/null.erl → test_etap/cases/null.erl 查看文件


test/cases/null.json → test_etap/cases/null.json 查看文件


test/cases/null_then_garbage.erl → test_etap/cases/null_then_garbage.erl 查看文件


test/cases/null_then_garbage.json → test_etap/cases/null_then_garbage.json 查看文件


test/cases/nulls_and_bools.erl → test_etap/cases/nulls_and_bools.erl 查看文件


test/cases/nulls_and_bools.json → test_etap/cases/nulls_and_bools.json 查看文件


test/cases/simple.erl → test_etap/cases/simple.erl 查看文件


test/cases/simple.json → test_etap/cases/simple.json 查看文件


test/cases/string_invalid_escape.erl → test_etap/cases/string_invalid_escape.erl 查看文件


test/cases/string_invalid_escape.json → test_etap/cases/string_invalid_escape.json 查看文件


test/cases/string_invalid_hex_char.erl → test_etap/cases/string_invalid_hex_char.erl 查看文件


test/cases/string_invalid_hex_char.json → test_etap/cases/string_invalid_hex_char.json 查看文件


test/cases/string_with_escapes.erl → test_etap/cases/string_with_escapes.erl 查看文件


test/cases/string_with_escapes.json → test_etap/cases/string_with_escapes.json 查看文件


test/cases/string_with_invalid_newline.erl → test_etap/cases/string_with_invalid_newline.erl 查看文件


test/cases/string_with_invalid_newline.json → test_etap/cases/string_with_invalid_newline.json 查看文件


test/cases/three_byte_utf8.erl → test_etap/cases/three_byte_utf8.erl 查看文件


test/cases/three_byte_utf8.json → test_etap/cases/three_byte_utf8.json 查看文件


test/cases/true.erl → test_etap/cases/true.erl 查看文件


test/cases/true.json → test_etap/cases/true.json 查看文件


test/cases/true_then_garbage.erl → test_etap/cases/true_then_garbage.erl 查看文件


test/cases/true_then_garbage.json → test_etap/cases/true_then_garbage.json 查看文件


test/cases/unescaped_bulgarian.erl → test_etap/cases/unescaped_bulgarian.erl 查看文件


test/cases/unescaped_bulgarian.json → test_etap/cases/unescaped_bulgarian.json 查看文件


test/etap.erl → test_etap/etap.erl 查看文件


test/util.erl → test_etap/util.erl 查看文件


正在加载...
取消
保存