test script - dossier - console collection manager
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit bce0d7478586d1b7c226b321a9d8be6cc56d9034
 (DIR) parent e00bb1cb184f084d75e1c0a8f202b553a069ac81
 (HTM) Author: Solene Rapenne <solene@perso.pw>
       Date:   Sat, 14 Jul 2018 22:15:07 +0200
       
       test script
       
       Diffstat:
         A test/check.sh                       |      22 ++++++++++++++++++++++
       
       1 file changed, 22 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/test/check.sh b/test/check.sh
       @@ -0,0 +1,22 @@
       +#!/bin/sh
       +set -e
       +set -x
       +
       +test -d testing_data && rm -fr testing_data
       +mkdir -p testing_data
       +export REPO="${PWD}/testing_data"
       +
       +../cdb "Harry Potter" pages 445 rate 10
       +../cdb "Harry Potter" pages 400 category Fantasy
       +../cdb "Ender" pages 600 rate 17 category Sci-fi
       +../cdb "Dune" pages NOT_ENOUGH rate 9999 category TOREAD
       +../cdb "Dune" category Sci-fi
       +../cdb show
       +../cdb search
       +../cdb search category Sci-fi
       +../cdb show Ender
       +../cdb search category
       +../cdb show 'Harry Potter'
       +../cdb rm 'Harry Potter'
       +if ../cdb show 'Harry Potter' ; then exit 1 ; fi
       +clear # clear screen if successful