Bläddra i källkod

moving etap tests to special directory

pull/8/merge^2
Dmitry Groshev 13 år sedan
förälder
incheckning
6aabfe0403
87 ändrade filer med 13 tillägg och 16 borttagningar
  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 Visa fil

@ -2,16 +2,16 @@
all: build all: build
%.beam: %.erl %.beam: %.erl
erlc -o test/ $<
erlc -o test_etap/ $<
build: c_src/decoder.c build: c_src/decoder.c
./rebar compile ./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: clean:
rm -rf logs .eunit rm -rf logs .eunit
ct: ct:
./rebar ct skip_deps=true
./rebar eunit skip_deps=true

test/001-yajl-tests.t → test_etap/001-yajl-tests.t Visa fil

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

test/002-literals.t → test_etap/002-literals.t Visa fil

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

test/003-numbers.t → test_etap/003-numbers.t Visa fil

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

test/004-strings.t → test_etap/004-strings.t Visa fil

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

test/005-arrays.t → test_etap/005-arrays.t Visa fil

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

test/006-maps.t → test_etap/006-maps.t Visa fil

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

test/007-compound.t → test_etap/007-compound.t Visa fil

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

test/008-halfword.t → test_etap/008-halfword.t Visa fil

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

test/cases/array.erl → test_etap/cases/array.erl Visa fil


test/cases/array.json → test_etap/cases/array.json Visa fil


test/cases/array_close.erl → test_etap/cases/array_close.erl Visa fil


test/cases/array_close.json → test_etap/cases/array_close.json Visa fil


test/cases/array_open.erl → test_etap/cases/array_open.erl Visa fil


test/cases/array_open.json → test_etap/cases/array_open.json Visa fil


test/cases/bogus_char.erl → test_etap/cases/bogus_char.erl Visa fil


test/cases/bogus_char.json → test_etap/cases/bogus_char.json Visa fil


test/cases/codepoints_from_unicode_org.erl → test_etap/cases/codepoints_from_unicode_org.erl Visa fil


test/cases/codepoints_from_unicode_org.json → test_etap/cases/codepoints_from_unicode_org.json Visa fil


test/cases/deep_arrays.erl → test_etap/cases/deep_arrays.erl Visa fil


test/cases/deep_arrays.json → test_etap/cases/deep_arrays.json Visa fil


test/cases/difficult_json_c_test_case.erl → test_etap/cases/difficult_json_c_test_case.erl Visa fil


test/cases/difficult_json_c_test_case.json → test_etap/cases/difficult_json_c_test_case.json Visa fil


test/cases/doubles.erl → test_etap/cases/doubles.erl Visa fil


test/cases/doubles.json → test_etap/cases/doubles.json Visa fil


test/cases/empty_array.erl → test_etap/cases/empty_array.erl Visa fil


test/cases/empty_array.json → test_etap/cases/empty_array.json Visa fil


test/cases/empty_string.erl → test_etap/cases/empty_string.erl Visa fil


test/cases/empty_string.json → test_etap/cases/empty_string.json Visa fil


test/cases/escaped_bulgarian.erl → test_etap/cases/escaped_bulgarian.erl Visa fil


test/cases/escaped_bulgarian.json → test_etap/cases/escaped_bulgarian.json Visa fil


test/cases/escaped_foobar.erl → test_etap/cases/escaped_foobar.erl Visa fil


test/cases/escaped_foobar.json → test_etap/cases/escaped_foobar.json Visa fil


test/cases/false.erl → test_etap/cases/false.erl Visa fil


test/cases/false.json → test_etap/cases/false.json Visa fil


test/cases/false_then_garbage.erl → test_etap/cases/false_then_garbage.erl Visa fil


test/cases/false_then_garbage.json → test_etap/cases/false_then_garbage.json Visa fil


test/cases/four_byte_utf8.erl → test_etap/cases/four_byte_utf8.erl Visa fil


test/cases/four_byte_utf8.json → test_etap/cases/four_byte_utf8.json Visa fil


test/cases/integers.erl → test_etap/cases/integers.erl Visa fil


test/cases/integers.json → test_etap/cases/integers.json Visa fil


test/cases/invalid_utf8.erl → test_etap/cases/invalid_utf8.erl Visa fil


test/cases/invalid_utf8.json → test_etap/cases/invalid_utf8.json Visa fil


test/cases/isolated_surrogate_marker.erl → test_etap/cases/isolated_surrogate_marker.erl Visa fil


test/cases/isolated_surrogate_marker.json → test_etap/cases/isolated_surrogate_marker.json Visa fil


test/cases/leading_zero_in_number.erl → test_etap/cases/leading_zero_in_number.erl Visa fil


test/cases/leading_zero_in_number.json → test_etap/cases/leading_zero_in_number.json Visa fil


test/cases/lonely_minus_sign.erl → test_etap/cases/lonely_minus_sign.erl Visa fil


test/cases/lonely_minus_sign.json → test_etap/cases/lonely_minus_sign.json Visa fil


test/cases/lonely_number.erl → test_etap/cases/lonely_number.erl Visa fil


test/cases/lonely_number.json → test_etap/cases/lonely_number.json Visa fil


test/cases/map_close.erl → test_etap/cases/map_close.erl Visa fil


test/cases/map_close.json → test_etap/cases/map_close.json Visa fil


test/cases/map_open.erl → test_etap/cases/map_open.erl Visa fil


test/cases/map_open.json → test_etap/cases/map_open.json Visa fil


test/cases/missing_integer_after_decimal_point.erl → test_etap/cases/missing_integer_after_decimal_point.erl Visa fil


test/cases/missing_integer_after_decimal_point.json → test_etap/cases/missing_integer_after_decimal_point.json Visa fil


test/cases/missing_integer_after_exponent.erl → test_etap/cases/missing_integer_after_exponent.erl Visa fil


test/cases/missing_integer_after_exponent.json → test_etap/cases/missing_integer_after_exponent.json Visa fil


test/cases/non_utf8_char_in_string.erl → test_etap/cases/non_utf8_char_in_string.erl Visa fil


test/cases/non_utf8_char_in_string.json → test_etap/cases/non_utf8_char_in_string.json Visa fil


test/cases/null.erl → test_etap/cases/null.erl Visa fil


test/cases/null.json → test_etap/cases/null.json Visa fil


test/cases/null_then_garbage.erl → test_etap/cases/null_then_garbage.erl Visa fil


test/cases/null_then_garbage.json → test_etap/cases/null_then_garbage.json Visa fil


test/cases/nulls_and_bools.erl → test_etap/cases/nulls_and_bools.erl Visa fil


test/cases/nulls_and_bools.json → test_etap/cases/nulls_and_bools.json Visa fil


test/cases/simple.erl → test_etap/cases/simple.erl Visa fil


test/cases/simple.json → test_etap/cases/simple.json Visa fil


test/cases/string_invalid_escape.erl → test_etap/cases/string_invalid_escape.erl Visa fil


test/cases/string_invalid_escape.json → test_etap/cases/string_invalid_escape.json Visa fil


test/cases/string_invalid_hex_char.erl → test_etap/cases/string_invalid_hex_char.erl Visa fil


test/cases/string_invalid_hex_char.json → test_etap/cases/string_invalid_hex_char.json Visa fil


test/cases/string_with_escapes.erl → test_etap/cases/string_with_escapes.erl Visa fil


test/cases/string_with_escapes.json → test_etap/cases/string_with_escapes.json Visa fil


test/cases/string_with_invalid_newline.erl → test_etap/cases/string_with_invalid_newline.erl Visa fil


test/cases/string_with_invalid_newline.json → test_etap/cases/string_with_invalid_newline.json Visa fil


test/cases/three_byte_utf8.erl → test_etap/cases/three_byte_utf8.erl Visa fil


test/cases/three_byte_utf8.json → test_etap/cases/three_byte_utf8.json Visa fil


test/cases/true.erl → test_etap/cases/true.erl Visa fil


test/cases/true.json → test_etap/cases/true.json Visa fil


test/cases/true_then_garbage.erl → test_etap/cases/true_then_garbage.erl Visa fil


test/cases/true_then_garbage.json → test_etap/cases/true_then_garbage.json Visa fil


test/cases/unescaped_bulgarian.erl → test_etap/cases/unescaped_bulgarian.erl Visa fil


test/cases/unescaped_bulgarian.json → test_etap/cases/unescaped_bulgarian.json Visa fil


test/etap.erl → test_etap/etap.erl Visa fil


test/util.erl → test_etap/util.erl Visa fil


Laddar…
Avbryt
Spara