Browse Source

Improve Dockerfile, move tests

pull/533/head
Xavier Petit 5 years ago committed by xpetit
parent
commit
d45b2f940f
  1. 3
      go/Dockerfile
  2. 0
      go/tests/abort_test/main.go
  3. 0
      go/tests/activebits_test/main.go
  4. 0
      go/tests/addprimesum_test/addprimesum_correct/main.go
  5. 0
      go/tests/addprimesum_test/main.go
  6. 0
      go/tests/advancedsortwordarr_test/main.go
  7. 0
      go/tests/alphacount_test/main.go
  8. 0
      go/tests/alphamirror_test/alphamirror_correct/main.go
  9. 0
      go/tests/alphamirror_test/main.go
  10. 0
      go/tests/any_test/main.go
  11. 0
      go/tests/appendrange_test/main.go
  12. 0
      go/tests/atoi_test/main.go
  13. 0
      go/tests/balancedstring_test/balancedstring_correct/main.go
  14. 0
      go/tests/balancedstring_test/main.go
  15. 0
      go/tests/basicatoi2_test/main.go
  16. 0
      go/tests/basicatoi_test/main.go
  17. 0
      go/tests/basicjoin_test/main.go
  18. 0
      go/tests/boolean_test/boolean_correct/main.go
  19. 0
      go/tests/boolean_test/main.go
  20. 0
      go/tests/brackets_test/brackets_correct/main.go
  21. 0
      go/tests/brackets_test/main.go
  22. 0
      go/tests/brainfuck_test/brainfuck_correct/main.go
  23. 0
      go/tests/brainfuck_test/main.go
  24. 0
      go/tests/capitalize_test/main.go
  25. 0
      go/tests/chunk_test/main.go
  26. 0
      go/tests/cleanstr_test/cleanstr_correct/main.go
  27. 0
      go/tests/cleanstr_test/main.go
  28. 0
      go/tests/collatzcountdown_test/main.go
  29. 0
      go/tests/comcheck_test/comcheck_correct/main.go
  30. 0
      go/tests/comcheck_test/main.go
  31. 0
      go/tests/compact_test/main.go
  32. 0
      go/tests/compare_test/main.go
  33. 0
      go/tests/concat_test/main.go
  34. 0
      go/tests/concatparams_test/main.go
  35. 0
      go/tests/costumeprofit_test/costumeprofit_correct/main.go
  36. 0
      go/tests/costumeprofit_test/main.go
  37. 0
      go/tests/countdown_test/countdown_correct/main.go
  38. 0
      go/tests/countdown_test/main.go
  39. 0
      go/tests/countif_test/main.go
  40. 0
      go/tests/displaya_test/displaya_correct/main.go
  41. 0
      go/tests/displaya_test/main.go
  42. 0
      go/tests/displayalpham_test/displayalpham_correct/main.go
  43. 0
      go/tests/displayalpham_test/main.go
  44. 0
      go/tests/displayalrevm_test/displayalrevm_correct/main.go
  45. 0
      go/tests/displayalrevm_test/main.go
  46. 0
      go/tests/displayfirstparam_test/displayfirstparam_correct/main.go
  47. 0
      go/tests/displayfirstparam_test/main.go
  48. 0
      go/tests/displaylastparam_test/displaylastparam_correct/main.go
  49. 0
      go/tests/displaylastparam_test/main.go
  50. 0
      go/tests/displayz_test/displayz_correct/main.go
  51. 0
      go/tests/displayz_test/main.go
  52. 0
      go/tests/divmod_test/main.go
  53. 0
      go/tests/doop_test/doop_correct/main.go
  54. 0
      go/tests/doop_test/main.go
  55. 0
      go/tests/doppelganger_test/main.go
  56. 0
      go/tests/eightqueens_test/main.go
  57. 0
      go/tests/enigma_test/main.go
  58. 0
      go/tests/expandstr_test/expandstr_correct/main.go
  59. 0
      go/tests/expandstr_test/main.go
  60. 0
      go/tests/fib_test/main.go
  61. 0
      go/tests/fibonacci_test/main.go
  62. 0
      go/tests/findnextprime_test/main.go
  63. 0
      go/tests/findprevprime_test/main.go
  64. 0
      go/tests/firstrune_test/main.go
  65. 0
      go/tests/firstword_test/firstword_correct/main.go
  66. 0
      go/tests/firstword_test/main.go
  67. 0
      go/tests/fixthemain_test/fixthemain_correct/main.go
  68. 0
      go/tests/fixthemain_test/main.go
  69. 0
      go/tests/flags_test/flags_correct/main.go
  70. 0
      go/tests/flags_test/main.go
  71. 0
      go/tests/foldint_test/main.go
  72. 0
      go/tests/foreach_test/main.go
  73. 0
      go/tests/fprime_test/fprime_correct/main.go
  74. 0
      go/tests/fprime_test/main.go
  75. 0
      go/tests/game23_test/main.go
  76. 0
      go/tests/gcd_test/gcd_correct/main.go
  77. 0
      go/tests/gcd_test/main.go
  78. 0
      go/tests/grouping_test/grouping_correct/main.go
  79. 0
      go/tests/grouping_test/main.go
  80. 0
      go/tests/halfcontest_test/main.go
  81. 0
      go/tests/hello_test/hello_correct/main.go
  82. 0
      go/tests/hello_test/main.go
  83. 0
      go/tests/hiddenp_test/hiddenp_correct/main.go
  84. 0
      go/tests/hiddenp_test/main.go
  85. 0
      go/tests/index_test/main.go
  86. 0
      go/tests/inter_test/inter_correct/main.go
  87. 0
      go/tests/inter_test/main.go
  88. 0
      go/tests/interestingnumber_test/main.go
  89. 0
      go/tests/isalpha_test/main.go
  90. 0
      go/tests/isanagram_test/main.go
  91. 0
      go/tests/islower_test/main.go
  92. 0
      go/tests/isnegative_test/main.go
  93. 0
      go/tests/isnumeric_test/main.go
  94. 0
      go/tests/ispowerof2_test/ispowerof2_correct/main.go
  95. 0
      go/tests/ispowerof2_test/main.go
  96. 0
      go/tests/isprime_test/main.go
  97. 0
      go/tests/isprintable_test/main.go
  98. 0
      go/tests/issorted_test/main.go
  99. 0
      go/tests/isupper_test/main.go
  100. 0
      go/tests/iterativefactorial_test/main.go
  101. Some files were not shown because too many files changed in this diff diff.show_more

3
go/Dockerfile

@ -1,11 +1,12 @@
FROM golang:1-alpine
ENV GIT_TERMINAL_PROMPT=0
RUN apk add --no-cache git nano
RUN go get golang.org/x/tools/cmd/goimports
RUN go get github.com/01-edu/z01
WORKDIR src
COPY entrypoint.sh /usr/local/bin
COPY src .
COPY tests .
RUN go install rc
RUN find -mindepth 2 -maxdepth 2 -name '*_correct' -type d|xargs go install
RUN find -mindepth 2 -maxdepth 2 -name '*_correct' -type d|cut -d/ -f1-2|xargs go install

0
go/src/abort_test/main.go → go/tests/abort_test/main.go

0
go/src/activebits_test/main.go → go/tests/activebits_test/main.go

0
go/src/addprimesum_test/addprimesum_correct/main.go → go/tests/addprimesum_test/addprimesum_correct/main.go

0
go/src/addprimesum_test/main.go → go/tests/addprimesum_test/main.go

0
go/src/advancedsortwordarr_test/main.go → go/tests/advancedsortwordarr_test/main.go

0
go/src/alphacount_test/main.go → go/tests/alphacount_test/main.go

0
go/src/alphamirror_test/alphamirror_correct/main.go → go/tests/alphamirror_test/alphamirror_correct/main.go

0
go/src/alphamirror_test/main.go → go/tests/alphamirror_test/main.go

0
go/src/any_test/main.go → go/tests/any_test/main.go

0
go/src/appendrange_test/main.go → go/tests/appendrange_test/main.go

0
go/src/atoi_test/main.go → go/tests/atoi_test/main.go

0
go/src/balancedstring_test/balancedstring_correct/main.go → go/tests/balancedstring_test/balancedstring_correct/main.go

0
go/src/balancedstring_test/main.go → go/tests/balancedstring_test/main.go

0
go/src/basicatoi2_test/main.go → go/tests/basicatoi2_test/main.go

0
go/src/basicatoi_test/main.go → go/tests/basicatoi_test/main.go

0
go/src/basicjoin_test/main.go → go/tests/basicjoin_test/main.go

0
go/src/boolean_test/boolean_correct/main.go → go/tests/boolean_test/boolean_correct/main.go

0
go/src/boolean_test/main.go → go/tests/boolean_test/main.go

0
go/src/brackets_test/brackets_correct/main.go → go/tests/brackets_test/brackets_correct/main.go

0
go/src/brackets_test/main.go → go/tests/brackets_test/main.go

0
go/src/brainfuck_test/brainfuck_correct/main.go → go/tests/brainfuck_test/brainfuck_correct/main.go

0
go/src/brainfuck_test/main.go → go/tests/brainfuck_test/main.go

0
go/src/capitalize_test/main.go → go/tests/capitalize_test/main.go

0
go/src/chunk_test/main.go → go/tests/chunk_test/main.go

0
go/src/cleanstr_test/cleanstr_correct/main.go → go/tests/cleanstr_test/cleanstr_correct/main.go

0
go/src/cleanstr_test/main.go → go/tests/cleanstr_test/main.go

0
go/src/collatzcountdown_test/main.go → go/tests/collatzcountdown_test/main.go

0
go/src/comcheck_test/comcheck_correct/main.go → go/tests/comcheck_test/comcheck_correct/main.go

0
go/src/comcheck_test/main.go → go/tests/comcheck_test/main.go

0
go/src/compact_test/main.go → go/tests/compact_test/main.go

0
go/src/compare_test/main.go → go/tests/compare_test/main.go

0
go/src/concat_test/main.go → go/tests/concat_test/main.go

0
go/src/concatparams_test/main.go → go/tests/concatparams_test/main.go

0
go/src/costumeprofit_test/costumeprofit_correct/main.go → go/tests/costumeprofit_test/costumeprofit_correct/main.go

0
go/src/costumeprofit_test/main.go → go/tests/costumeprofit_test/main.go

0
go/src/countdown_test/countdown_correct/main.go → go/tests/countdown_test/countdown_correct/main.go

0
go/src/countdown_test/main.go → go/tests/countdown_test/main.go

0
go/src/countif_test/main.go → go/tests/countif_test/main.go

0
go/src/displaya_test/displaya_correct/main.go → go/tests/displaya_test/displaya_correct/main.go

0
go/src/displaya_test/main.go → go/tests/displaya_test/main.go

0
go/src/displayalpham_test/displayalpham_correct/main.go → go/tests/displayalpham_test/displayalpham_correct/main.go

0
go/src/displayalpham_test/main.go → go/tests/displayalpham_test/main.go

0
go/src/displayalrevm_test/displayalrevm_correct/main.go → go/tests/displayalrevm_test/displayalrevm_correct/main.go

0
go/src/displayalrevm_test/main.go → go/tests/displayalrevm_test/main.go

0
go/src/displayfirstparam_test/displayfirstparam_correct/main.go → go/tests/displayfirstparam_test/displayfirstparam_correct/main.go

0
go/src/displayfirstparam_test/main.go → go/tests/displayfirstparam_test/main.go

0
go/src/displaylastparam_test/displaylastparam_correct/main.go → go/tests/displaylastparam_test/displaylastparam_correct/main.go

0
go/src/displaylastparam_test/main.go → go/tests/displaylastparam_test/main.go

0
go/src/displayz_test/displayz_correct/main.go → go/tests/displayz_test/displayz_correct/main.go

0
go/src/displayz_test/main.go → go/tests/displayz_test/main.go

0
go/src/divmod_test/main.go → go/tests/divmod_test/main.go

0
go/src/doop_test/doop_correct/main.go → go/tests/doop_test/doop_correct/main.go

0
go/src/doop_test/main.go → go/tests/doop_test/main.go

0
go/src/doppelganger_test/main.go → go/tests/doppelganger_test/main.go

0
go/src/eightqueens_test/main.go → go/tests/eightqueens_test/main.go

0
go/src/enigma_test/main.go → go/tests/enigma_test/main.go

0
go/src/expandstr_test/expandstr_correct/main.go → go/tests/expandstr_test/expandstr_correct/main.go

0
go/src/expandstr_test/main.go → go/tests/expandstr_test/main.go

0
go/src/fib_test/main.go → go/tests/fib_test/main.go

0
go/src/fibonacci_test/main.go → go/tests/fibonacci_test/main.go

0
go/src/findnextprime_test/main.go → go/tests/findnextprime_test/main.go

0
go/src/findprevprime_test/main.go → go/tests/findprevprime_test/main.go

0
go/src/firstrune_test/main.go → go/tests/firstrune_test/main.go

0
go/src/firstword_test/firstword_correct/main.go → go/tests/firstword_test/firstword_correct/main.go

0
go/src/firstword_test/main.go → go/tests/firstword_test/main.go

0
go/src/fixthemain_test/fixthemain_correct/main.go → go/tests/fixthemain_test/fixthemain_correct/main.go

0
go/src/fixthemain_test/main.go → go/tests/fixthemain_test/main.go

0
go/src/flags_test/flags_correct/main.go → go/tests/flags_test/flags_correct/main.go

0
go/src/flags_test/main.go → go/tests/flags_test/main.go

0
go/src/foldint_test/main.go → go/tests/foldint_test/main.go

0
go/src/foreach_test/main.go → go/tests/foreach_test/main.go

0
go/src/fprime_test/fprime_correct/main.go → go/tests/fprime_test/fprime_correct/main.go

0
go/src/fprime_test/main.go → go/tests/fprime_test/main.go

0
go/src/game23_test/main.go → go/tests/game23_test/main.go

0
go/src/gcd_test/gcd_correct/main.go → go/tests/gcd_test/gcd_correct/main.go

0
go/src/gcd_test/main.go → go/tests/gcd_test/main.go

0
go/src/grouping_test/grouping_correct/main.go → go/tests/grouping_test/grouping_correct/main.go

0
go/src/grouping_test/main.go → go/tests/grouping_test/main.go

0
go/src/halfcontest_test/main.go → go/tests/halfcontest_test/main.go

0
go/src/hello_test/hello_correct/main.go → go/tests/hello_test/hello_correct/main.go

0
go/src/hello_test/main.go → go/tests/hello_test/main.go

0
go/src/hiddenp_test/hiddenp_correct/main.go → go/tests/hiddenp_test/hiddenp_correct/main.go

0
go/src/hiddenp_test/main.go → go/tests/hiddenp_test/main.go

0
go/src/index_test/main.go → go/tests/index_test/main.go

0
go/src/inter_test/inter_correct/main.go → go/tests/inter_test/inter_correct/main.go

0
go/src/inter_test/main.go → go/tests/inter_test/main.go

0
go/src/interestingnumber_test/main.go → go/tests/interestingnumber_test/main.go

0
go/src/isalpha_test/main.go → go/tests/isalpha_test/main.go

0
go/src/isanagram_test/main.go → go/tests/isanagram_test/main.go

0
go/src/islower_test/main.go → go/tests/islower_test/main.go

0
go/src/isnegative_test/main.go → go/tests/isnegative_test/main.go

0
go/src/isnumeric_test/main.go → go/tests/isnumeric_test/main.go

0
go/src/ispowerof2_test/ispowerof2_correct/main.go → go/tests/ispowerof2_test/ispowerof2_correct/main.go

0
go/src/ispowerof2_test/main.go → go/tests/ispowerof2_test/main.go

0
go/src/isprime_test/main.go → go/tests/isprime_test/main.go

0
go/src/isprintable_test/main.go → go/tests/isprintable_test/main.go

0
go/src/issorted_test/main.go → go/tests/issorted_test/main.go

0
go/src/isupper_test/main.go → go/tests/isupper_test/main.go

0
go/src/iterativefactorial_test/main.go → go/tests/iterativefactorial_test/main.go

Some files were not shown because too many files changed in this diff diff.show_more

Loading…
Cancel
Save