time for sirdi

This commit is contained in:
rhiannon morris 2022-05-02 20:51:19 +02:00
parent f503cf5734
commit 9ae0e36a65
16 changed files with 99 additions and 109 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
build build
.build
depends depends
*~ *~

View file

@ -1,27 +1,28 @@
all: quox all: quox
quox: exe quox:
cp exe/build/exec/quox . (cd exe; sirdi build)
ln -sf exe/build/exec/main $@
quox-tests:
(cd tests; sirdi build)
ln -sf tests/build/exec/main $@
.PHONY: lib .PHONY: lib
lib: lib:
idris2 --build quox.ipkg sirdi build
.PHONY: exe
exe:
$(MAKE) -C exe exe
.PHONY: test .PHONY: test
test: test: quox-tests
$(MAKE) -C tests test ./quox-tests -V 14
.PHONY: prove .PHONY: prove
prove: prove: quox-tests
$(MAKE) -C tests prove prove ./quox-tests
.PHONY: clean .PHONY: clean
clean: clean:
$(RM) -r build depends $(RM) quox quox-tests
$(RM) quox sirdi clean
$(MAKE) -C exe clean (cd exe; sirdi clean)
$(MAKE) -C tests clean (cd tests; sirdi clean)

View file

@ -1,17 +0,0 @@
all: test
.PHONY: lib
lib:
$(MAKE) -C .. lib
depends/quox: lib
mkdir -p depends
ln -sf ../../build/ttc depends/quox
.PHONY: test
exe: depends/quox
idris2 --build quox-exe.ipkg
.PHONY: clean
clean:
$(RM) -r build depends

View file

@ -1,6 +0,0 @@
package quox-exe
executable = quox
main = Main
depends = base, contrib, quox

14
exe/sirdi.json Normal file
View file

@ -0,0 +1,14 @@
[
{
"name" : "quox-exe",
"deps" : [
{ "name" : "base", "legacy" : true },
{ "name" : "contrib", "legacy" : true },
{ "name" : "quox", "local" : ".." }
],
"main" : "Main",
"modules" : ["Main"]
}
]

View file

@ -1,39 +0,0 @@
package quox
version = 0
license = "acsl"
authors = "rhiannon morris"
-- homepage = "..."
sourceloc = "https://git.rhiannon.website/rhi/quox"
depends = base, contrib
sourcedir = "src"
modules =
Quox.Error,
Quox.NatExtra,
Quox.OPE,
Quox.Pretty,
Quox.Syntax,
Quox.Syntax.Dim,
Quox.Syntax.DimEq,
Quox.Syntax.Qty,
Quox.Syntax.Shift,
Quox.Syntax.Subst,
Quox.Syntax.Term,
Quox.Syntax.Term.Base,
Quox.Syntax.Term.Pretty,
Quox.Syntax.Term.Reduce,
Quox.Syntax.Term.Split,
Quox.Syntax.Term.Subst,
Quox.Syntax.Universe,
Quox.Syntax.Var,
Quox.Lexer,
Quox.Context,
Quox.Equal,
Quox.Name,
Quox.Reduce,
Quox.Typing,
Quox.Typechecker

47
sirdi.json Normal file
View file

@ -0,0 +1,47 @@
[
{
"name" : "quox",
"version" : "0.0.0",
"passthru": {
"license" : "acsl",
"authors" : ["rhiannon morris"],
"sourceloc" : "https://git.rhiannon.website/rhi/quox"
},
"deps" : [
{ "name" : "base", "legacy" : true },
{ "name" : "contrib", "legacy" : true }
],
"modules" : [
"Quox.Error",
"Quox.NatExtra",
"Quox.OPE",
"Quox.Pretty",
"Quox.Syntax",
"Quox.Syntax.Dim",
"Quox.Syntax.DimEq",
"Quox.Syntax.Qty",
"Quox.Syntax.Shift",
"Quox.Syntax.Subst",
"Quox.Syntax.Term",
"Quox.Syntax.Term.Base",
"Quox.Syntax.Term.Pretty",
"Quox.Syntax.Term.Reduce",
"Quox.Syntax.Term.Split",
"Quox.Syntax.Term.Subst",
"Quox.Syntax.Universe",
"Quox.Syntax.Var",
"Quox.Lexer",
"Quox.Context",
"Quox.Equal",
"Quox.Name",
"Quox.Reduce",
"Quox.Typing",
"Quox.Typechecker"
]
}
]

View file

@ -1,26 +0,0 @@
all: test
.PHONY: lib
lib:
$(MAKE) -C .. lib
depends/quox: lib
mkdir -p depends
ln -sf ../../build/ttc depends/quox
.PHONY: build-tests
build-tests: depends/quox
idris2 --build tests.ipkg
.PHONY: test
test: build-tests
build/exec/quox-tests -V 14
.PHONY: prove
prove: build-tests
prove build/exec/quox-tests
.PHONY: clean
clean:
$(RM) -r build depends

21
tests/sirdi.json Normal file
View file

@ -0,0 +1,21 @@
[
{
"name" : "quox-tests",
"deps" : [
{ "name" : "base", "legacy" : true },
{ "name" : "contrib", "legacy" : true },
{ "name" : "quox", "local" : ".." }
],
"main" : "Tests",
"modules" : [
"Tests",
"Options",
"TAP",
"Tests.Lexer",
"Tests.Equal"
]
}
]

View file

@ -1,6 +0,0 @@
package quox-tests
executable = quox-tests
main = Tests
depends = base, contrib, quox