From 3a317451f6fcb58d81a01c90bbee88e1d8e6e600 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 11 Sep 2017 16:42:06 +0200 Subject: [PATCH 1/4] Add RSS feed --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 760b09eb..681ae8b6 100644 --- a/README.md +++ b/README.md @@ -60,8 +60,9 @@ install-directory is in your `$PATH`), or install the `imag` binary to call `ima ## Staying up-to-date We have a [official website for imag](https://imag-pim.org), where I post -[release notes](http://imag-pim.org/releases/) and monthly(ish) updates what's happening in the source tree. -There is no RSS feed, though. +[release notes](http://imag-pim.org/releases/) and monthly(ish) updates what's +happening in the source tree ([RSS here](https://imag-pim.org/index.xml)). + We also have a [mailinglist](https://imag-pim.org/mailinglist/) where I post updates and where discussion and questions are encouraged. From d56e0862426b9da277ec226ba53710f650442432 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 18 Sep 2017 14:21:25 +0200 Subject: [PATCH 2/4] Remove shell code which is not used anymore --- bin/core/imag-store/tests/001-create_test.sh | 175 ------------------ .../imag-store/tests/002-retrieve_test.sh | 85 --------- bin/core/imag-store/tests/003-delete_test.sh | 30 --- bin/core/imag-store/tests/Makefile | 14 -- bin/core/imag-store/tests/utils.sh | 6 - tests/utils.sh | 106 ----------- 6 files changed, 416 deletions(-) delete mode 100644 bin/core/imag-store/tests/001-create_test.sh delete mode 100644 bin/core/imag-store/tests/002-retrieve_test.sh delete mode 100644 bin/core/imag-store/tests/003-delete_test.sh delete mode 100644 bin/core/imag-store/tests/Makefile delete mode 100644 bin/core/imag-store/tests/utils.sh delete mode 100644 tests/utils.sh diff --git a/bin/core/imag-store/tests/001-create_test.sh b/bin/core/imag-store/tests/001-create_test.sh deleted file mode 100644 index 591c15ba..00000000 --- a/bin/core/imag-store/tests/001-create_test.sh +++ /dev/null @@ -1,175 +0,0 @@ -#!/usr/bin/env bash - -source $(dirname ${BASH_SOURCE[0]})/../../tests/utils.sh -source $(dirname ${BASH_SOURCE[0]})/utils.sh - -test_call() { - imag-store create -p test-call - if [[ ! $? -eq 0 ]]; then - err "Return value should be zero, was non-zero" - return 1; - fi -} - -test_call_id() { - imag-store create -i test-call - if [[ ! $? -eq 0 ]]; then - err "Return value should be zero, was non-zero" - return 1; - fi -} - -test_call_no_id() { - imag-store create - if [[ ! $? -eq 1 ]]; then - err "Return value should be zero, was non-zero" - return 1; - fi -} - -test_mkstore() { - imag-store create -p test-mkstore || { err "Calling imag failed"; return 1; } - if [[ -d ${STORE} ]]; then - out "Store exists." - else - err "No store created" - return 1 - fi -} - -test_std_header() { - local expected=$(cat <> $*${COLOR_OFF}" -} - -err() { - [[ -z "$DEBUG_OUTPUT_OFF" ]] && echo -e "${RED}!! $*${COLOR_OFF}" -} - -silent() { - DEBUG_OUTPUT_OFF=1 $* -} - -imag-call-binary() { - local searchdir=$1; shift - local binary=$1; shift - [[ -d $searchdir ]] || { err "FATAL: No directory $searchdir"; exit 1; } - local bin=$(find $searchdir -iname $binary -type f -executable) - local flags="--no-color --config ./imagrc.toml --override-config store.implicit-create=true --rtp $RUNTIME" - out "Calling '$bin $flags $*'" - $bin $flags $* -} - -cat_entry() { - cat ${STORE}/$1 -} - -reset_store() { - rm -rf "${STORE}"/.git - rm -r "${STORE}" -} - -call_test() { - prepare_store_directory || { - err "Preparing store directory failed" - exit 1 - } - - out "-- TESTING: '$1' --" - $1 - result=$? - if [[ -z "$DONT_RESET_STORE" ]]; then - out "Reseting store" - reset_store - out "Store reset done" - fi - [[ $result -eq 0 ]] || { err "-- FAILED: '$1'. Exiting."; exit 1; } - success "-- SUCCESS: '$1' --" -} - -__git() { - out "Calling git: $*" - git --work-tree=/tmp/store/ --git-dir=/tmp/store/.git $* -} - -__git_commit() { - out "Calling git-commit: $*" - git --work-tree=/tmp/store/ --git-dir=/tmp/store/.git commit -m "$*" -} - -prepare_store_directory() { - out "Preparing /tmp/store" - mkdir -p /tmp/store/ &&\ - touch /tmp/store/.gitkeep &&\ - __git init &&\ - __git config --local user.email "imag@imag-pim.org" &&\ - __git config --local user.name "Imag CI" &&\ - __git add .gitkeep &&\ - __git_commit 'Initial commit: .gitkeep' -} - -invoke_tests() { - out "Invoking tests." - if [[ ! -z "$INVOKE_TEST" ]]; then - out "Invoking only $INVOKE_TEST" - call_test "$INVOKE_TEST" - else - out "Invoking $*" - for t in $*; do - call_test "$t" - done - fi -} - - From ec0c58d3600a4d3d3656417b484477ced40efc37 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 19 Sep 2017 18:26:44 +0200 Subject: [PATCH 3/4] Fix README symlink --- lib/etc/libimagutil/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/etc/libimagutil/README.md b/lib/etc/libimagutil/README.md index 3b9cd3f1..0b2b63a2 120000 --- a/lib/etc/libimagutil/README.md +++ b/lib/etc/libimagutil/README.md @@ -1 +1 @@ -../doc/src/05100-lib-util.md \ No newline at end of file +../../../doc/src/05100-lib-util.md \ No newline at end of file From 75bc1b05118e89cc11acebb848259c86179a1162 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 19 Sep 2017 18:26:44 +0200 Subject: [PATCH 4/4] Fix README symlink --- lib/etc/libimaginteraction/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/etc/libimaginteraction/README.md b/lib/etc/libimaginteraction/README.md index e7d18f69..cee91e2f 120000 --- a/lib/etc/libimaginteraction/README.md +++ b/lib/etc/libimaginteraction/README.md @@ -1 +1 @@ -../doc/src/05100-lib-interaction.md \ No newline at end of file +../../../doc/src/05100-lib-interaction.md \ No newline at end of file