Testing updates; website usability; GPG signing improvements

This commit is contained in:
DarkFeather
2019-07-25 13:01:53 -05:00
parent 795a4ac0b2
commit 6439ec4b70
4 changed files with 114 additions and 59 deletions

View File

@@ -4,6 +4,7 @@ systemdList = ./maat-builder.timer ./maat-builder.service
serverRoot = /srv/maat/
owner=root
perms=0755
fileperms=0644
compile: /bin/bash
@echo Nothing to compile.
@@ -12,6 +13,7 @@ install: ${list}
mkdir -p ${installDir}
mkdir -p ${pkgdir}${serverRoot}/src
mkdir -p ${pkgdir}${serverRoot}/pkg
mkdir -p ${pkgdir}/usr/lib/systemd/system
for i in ${list}; do install -m ${perms} -o ${owner} $$i ${installDir}; done
for i in ${systemdList}; do install -m 0644 -o root $$i ${pkgdir}/usr/lib/systemd/system; done
@@ -24,9 +26,24 @@ uninstall:
rmdir -p ${pkgdir}${serverRoot}/src
rmdir -p ${pkgdir}${serverRoot}/pkg
test:
./maat-builder -T -U ${USER}
make clean
test: clean
./maat-builder -T
test -d src
test -d src/cower
test -d src/cower/.git
test -d src/HelloWorld
test -d src/HelloWorld/.git
test -d pkg
test -d pkg/aur
test -f pkg/AniNIX.db
test -f pkg/AniNIX.db.sig
test -f pkg/helloworld*.tar.xz
test -f pkg/aur/aur.db
test -f pkg/aur/aur.db.sig
test -f pkg/aur/cower*.tar.xz
[ `wc -l pkg/index.html | cut -f 1 -d ' '` -eq 24 ]
@echo
@echo Tests passed successfully.
diff:
for i in ${list}; do if [ -f ${installDir}/$$i ]; then diff "$$i" "${installDir}/$$i"; fi done