2017-04-05 20:24:26 +04:00
|
|
|
|
|
|
|
SRCDIR=../../src
|
|
|
|
|
|
|
|
TESTS := \
|
2017-08-22 23:55:31 +04:00
|
|
|
utils \
|
2017-04-05 20:24:26 +04:00
|
|
|
merkle \
|
|
|
|
data-encoding \
|
2017-04-13 20:05:41 +04:00
|
|
|
stream-data-encoding \
|
2017-04-05 20:24:26 +04:00
|
|
|
# lwt-pipe
|
|
|
|
|
|
|
|
include ../Makefile.shared
|
|
|
|
|
2017-04-19 23:46:10 +04:00
|
|
|
SOURCE_DIRECTORIES := ${COMPILER_SOURCE_DIRECTORIES} ../lib
|
2017-04-05 20:24:26 +04:00
|
|
|
|
|
|
|
LIB := ${MINUTILSLIB} ${UTILSLIB} ${TESTLIB}
|
|
|
|
|
|
|
|
PACKAGES := \
|
|
|
|
${UTILS_PACKAGES} \
|
|
|
|
kaputt \
|
|
|
|
|
|
|
|
OPENED_MODULES := ${NODE_OPENED_MODULES}
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
## Lwt_pipe
|
|
|
|
|
|
|
|
.PHONY:run-test-lwt-pipe
|
|
|
|
run-test-lwt-pipe:
|
|
|
|
@echo
|
|
|
|
./test-lwt-pipe
|
|
|
|
|
|
|
|
TEST_PIPE_IMPLS := \
|
|
|
|
test_lwt_pipe.ml
|
|
|
|
|
|
|
|
test-lwt-pipe: ${LIB} ${TEST_PIPE_IMPLS:.ml=.cmx}
|
|
|
|
@echo LINK $(notdir $@)
|
|
|
|
@${OCAMLOPT} -linkall -linkpkg ${OCAMLFLAGS} -o $@ $^
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f test-lwt-pipe
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
## Merkle
|
|
|
|
|
|
|
|
.PHONY:run-test-merkle
|
|
|
|
run-test-merkle:
|
|
|
|
@echo
|
|
|
|
./test-merkle
|
|
|
|
|
|
|
|
TEST_MERKLE_IMPLS := \
|
|
|
|
test_merkle.ml
|
|
|
|
|
|
|
|
test-merkle: ${LIB} ${TEST_MERKLE_IMPLS:.ml=.cmx}
|
|
|
|
@echo LINK $(notdir $@)
|
|
|
|
@${OCAMLOPT} -linkall -linkpkg ${OCAMLFLAGS} -o $@ $^
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f test-merkle
|
|
|
|
|
2017-08-22 23:55:31 +04:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
## Utils
|
|
|
|
|
|
|
|
.PHONY:run-test-utils
|
|
|
|
run-test-utils:
|
|
|
|
@echo
|
|
|
|
./test-utils
|
|
|
|
|
|
|
|
TEST_UTILS_IMPLS := \
|
|
|
|
test_utils.ml
|
|
|
|
|
|
|
|
test-utils: ${LIB} ${TEST_UTILS_IMPLS:.ml=.cmx}
|
|
|
|
@echo LINK $(notdir $@)
|
|
|
|
@${OCAMLOPT} -linkall -linkpkg ${OCAMLFLAGS} -o $@ $^
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f test-utils
|
|
|
|
|
2017-04-05 20:24:26 +04:00
|
|
|
############################################################################
|
2017-08-22 23:55:31 +04:00
|
|
|
## Utils
|
2017-04-05 20:24:26 +04:00
|
|
|
|
|
|
|
.PHONY:run-test-data-encoding
|
|
|
|
run-test-data-encoding:
|
|
|
|
@echo
|
|
|
|
./test-data-encoding
|
|
|
|
|
|
|
|
TEST_DATA_ENCODING_IMPLS := \
|
|
|
|
test_data_encoding.ml
|
|
|
|
|
|
|
|
test-data-encoding: ${LIB} ${TEST_DATA_ENCODING_IMPLS:.ml=.cmx}
|
|
|
|
@echo LINK $(notdir $@)
|
|
|
|
@${OCAMLOPT} -linkall -linkpkg ${OCAMLFLAGS} -o $@ $^
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f test-data-encoding
|
2017-04-13 20:05:41 +04:00
|
|
|
|
|
|
|
############################################################################
|
|
|
|
## Streamed data_encoding
|
|
|
|
|
|
|
|
.PHONY:run-test-stream-data-encoding
|
|
|
|
run-test-stream-data-encoding:
|
|
|
|
@echo
|
|
|
|
./test-stream-data-encoding
|
|
|
|
|
|
|
|
TEST_DATA_ENCODING_IMPLS := \
|
|
|
|
test_data_encoding.ml
|
|
|
|
|
|
|
|
test-stream-data-encoding: ${LIB} ${TEST_DATA_ENCODING_IMPLS:.ml=.cmx}
|
|
|
|
@echo LINK $(notdir $@)
|
|
|
|
@${OCAMLOPT} -linkall -linkpkg ${OCAMLFLAGS} -o $@ $^
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f test-stream-data-encoding
|