diff --git a/.gitignore b/.gitignore index ede3e9604039690172a9457681aff533bfde2d33..7e320122d4d6997a5640c9b1249e71a48c1b4344 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *~ *.bak +/test_install /mio2 /mio3 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..208d4e1614247354e55bed1632c186aeeb5ea007 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +TARGETS: mio2 mio3 + +all: $(TARGETS) + +mio2: src/mio.py $(sort $(wildcard src/mio/*.py)) Makefile + (cd src ; apa --interpreter=/usr/bin/python2 \ + -o ../$@ $(filter %.py, $(^:src/%=%))) + +mio3: src/mio.py $(sort $(wildcard src/mio/*.py)) Makefile + (cd src ; apa --interpreter=/usr/bin/python3 \ + -o ../$@ $(filter %.py, $(^:src/%=%))) + +test3: + mkdir test_install + ./mio3 --noyum \ + --path $(realpath tests) \ + --prefix test_install \ + --install /test/test + +clean: + rm -rf test_install diff --git a/tests/test.mio b/tests/test.mio new file mode 100644 index 0000000000000000000000000000000000000000..d783ebbe70d8a1fac9d9adfb6cea29dd56b01285 --- /dev/null +++ b/tests/test.mio @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<mio name='test' files='.' + scripts='./scripts' mode='0644' dirmode='0755'> + + <group name='test'> + <pre command='echo pre $(pwd)'/> + <file name='/tmp/test.mio' source='test.mio'/> + <symlink name='/tmp/copy_of_test.mio' value='test.mio'/> + <post command='echo post $(pwd)'/> + <!--systemd service='x'/>--> + </group> + +</mio>