~octaspire/crates2

ad5de3973ea5bf17b3b443b67fbe1e68e1432105 — octaspire a month ago 8dbce2f
Fix test runner, peek results, update 'make clean' and .gitignore

  * Fix test runner by moving cloned directory into Quicklisp's
    local projects directory.
  * Peek results in the end of the test runner by showing the
    first step of the first level and the last step of the last
    level.
  * Update cleaning and ignoring of files.
4 files changed, 11 insertions(+), 5 deletions(-)

M .builds/debian_stretch.yml
M .gitignore
M Makefile
M etc/test.sh
M .builds/debian_stretch.yml => .builds/debian_stretch.yml +6 -4
@@ 9,9 9,11 @@ tasks:
    - setup: |
        curl -O https://beta.quicklisp.org/quicklisp.lisp
        sbcl --load quicklisp.lisp --eval '(quicklisp-quickstart:install)' --eval '(ql-util:without-prompting (ql:add-to-init-file))' --eval '(quit)'
        mkdir -p ~/.config/common-lisp/source-registry.conf.d/
        cp crates2/etc/crates2.conf ~/.config/common-lisp/source-registry.conf.d/crates2.conf
        sed -i 's/octaspire/build/' "$HOME/.config/common-lisp/source-registry.conf.d/crates2.conf"
        mkdir -p ~/quicklisp/local-projects/
        mv crates2 ~/quicklisp/local-projects/
    - test: |
        cd crates2
        cd ~/quicklisp/local-projects/crates2
        make test
    - peek-results: |
        head -n 42 got.txt
        tail -n 40 got.txt

M .gitignore => .gitignore +3 -0
@@ 1,2 1,5 @@
crates2
.#*
expected.txt.bz2
expected.txt
got.txt

M Makefile => Makefile +1 -1
@@ 30,7 30,7 @@ run: crates2
	@etc/run.sh

clean:
	@rm -f crates2
	@rm -f crates2 expected.txt.bz2 expected.txt got.txt

test: crates2
	@etc/test.sh

M etc/test.sh => etc/test.sh +1 -0
@@ 47,4 47,5 @@ fi


bunzip2 -fk "$EXPECTED_ARCH"
echo "Comparing result with expected..."
diff "$GOT_FILE" "$EXPECTED_FILE"