moved adt_generator tests to a separate folder
This commit is contained in:
parent
9d25773d61
commit
ba9441a134
@ -1,2 +1 @@
|
||||
module Amodule = Amodule
|
||||
module Use_a_fold = Use_a_fold
|
||||
module Generic = Generic
|
||||
|
@ -1,24 +1,6 @@
|
||||
(rule
|
||||
(target generated_fold.ml)
|
||||
(deps generator.raku amodule.ml)
|
||||
(action (with-stdout-to generated_fold.ml (run perl6 ./generator.raku amodule.ml)))
|
||||
; (mode (promote (until-clean)))
|
||||
)
|
||||
; (library
|
||||
; (name adt_generator)
|
||||
; (public_name ligo.adt_generator)
|
||||
; (libraries
|
||||
; )
|
||||
; )
|
||||
|
||||
(executable
|
||||
(library
|
||||
(name adt_generator)
|
||||
(public_name ligo.adt_generator)
|
||||
(libraries
|
||||
)
|
||||
)
|
||||
|
||||
(alias
|
||||
(name runtest)
|
||||
(action (run ./adt_generator.exe))
|
||||
)
|
||||
|
@ -140,7 +140,7 @@ for $statements -> $statement {
|
||||
say "$statement"
|
||||
}
|
||||
say "open $moduleName";
|
||||
say "module Adt_info = Generic.Adt_info";
|
||||
say "module Adt_info = Adt_generator.Generic.Adt_info";
|
||||
|
||||
say "";
|
||||
for $adts.kv -> $index, $t {
|
||||
|
17
src/test/adt_generator/dune
Normal file
17
src/test/adt_generator/dune
Normal file
@ -0,0 +1,17 @@
|
||||
(rule
|
||||
(target generated_fold.ml)
|
||||
(deps ../../../src/stages/adt_generator/generator.raku amodule.ml)
|
||||
(action (with-stdout-to generated_fold.ml (run perl6 ../../../src/stages/adt_generator/generator.raku amodule.ml)))
|
||||
; (mode (promote (until-clean)))
|
||||
)
|
||||
|
||||
(executable
|
||||
(name test_adt_generator)
|
||||
(public_name ligo.test_adt_generator)
|
||||
(libraries adt_generator)
|
||||
)
|
||||
|
||||
(alias
|
||||
(name runtest)
|
||||
(action (run ./test_adt_generator.exe))
|
||||
)
|
2
src/test/adt_generator/test_adt_generator.ml
Normal file
2
src/test/adt_generator/test_adt_generator.ml
Normal file
@ -0,0 +1,2 @@
|
||||
module Amodule = Amodule
|
||||
module Use_a_fold = Use_a_fold
|
Loading…
Reference in New Issue
Block a user