un outil de sondage - retour accueil
git clone git://bebou.netlib.re/kun
Log | Files | Refs | README |
tests.sh (1276B)
1 #! /bin/sh 2 3 <<. cat 4 5 Les erreurs de paramètres : 6 7 . 8 9 ./kun.sh azdazdazd 10 ./kun.sh "azda;ls" 11 12 ./kun.sh addanswer 13 ./kun.sh addanswer azdazd 14 15 ./kun.sh modifyanswer 16 ./kun.sh modifyanswer azdad 17 ./kun.sh modifyanswer azdad azdazd 18 19 ./kun.sh deletequestion 20 ./kun.sh deletequestion azdad 21 22 ./kun.sh deleteanswer 23 ./kun.sh deleteanswer azdazd 24 ./kun.sh deleteanswer azdazd azdazd 25 26 ./kun.sh results 27 ./kun.sh results azdazd 28 29 ./kun.sh getpeople 30 ./kun.sh getpeople azdazd 31 32 ./kun.sh getanswer 33 ./kun.sh getanswer azdazd 34 ./kun.sh getanswer azdazd azdazd 35 36 <<. cat 37 38 Un scénario : 39 40 . 41 42 id=$(./kun.sh create "lundi\nmardi\nmercredi" | tr -d '{}') 43 idrep=$(./kun.sh addanswer "$id" alice "lundi\nmercredi" | tr -d '{}' | cut -f2) 44 ./kun.sh results "$id" 45 ./kun.sh addanswer "$id" alice 46 ./kun.sh addanswer "$id" victor "mercredi" 47 ./kun.sh getanswer "$id" azdazd 48 ./kun.sh getanswer "$id" victor 49 ./kun.sh results "$id" 50 ./kun.sh getpeople "$id" 51 ./kun.sh modifyanswer "$id" azdazd "mardi" 52 ./kun.sh modifyanswer "$id" "$idrep" "azdazd" 53 ./kun.sh results "$id" 54 ./kun.sh modifyanswer "$id" "$idrep" "lundi" 55 ./kun.sh results "$id" 56 ./kun.sh modifyanswer "$id" "$idrep" "mardi" 57 ./kun.sh results "$id" 58 ./kun.sh deleteanswer "$id" "$idrep" 59 ./kun.sh getpeople "$id" 60 ./kun.sh results "$id" 61 ./kun.sh deletequestion "$id"