URI: 
       t75_hooks.sh - tomb - the crypto undertaker
  HTML git clone git://parazyd.org/tomb.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       t75_hooks.sh (701B)
       ---
            1 #!/usr/bin/env zsh
            2 
            3 export test_description="Testing tomb bind hooks"
            4 
            5 source ./setup
            6 
            7 test_export "test" # Using already generated tomb
            8 test_expect_success 'Testing bind hooks' '
            9     tt_open --tomb-pwd $DUMMYPASS &&
           10     tt_set_ownership "$MEDIA/$testname" &&
           11     RND="$RANDOM" &&
           12     bindtest="dyne-tomb-bind-test-$RND" &&
           13     echo "$RND" > "$MEDIA/$testname/$bindtest" &&
           14     rm -f "$MEDIA/$testname/bind-hooks" &&
           15     echo "$bindtest $bindtest" > "$MEDIA/$testname/bind-hooks" &&
           16     tt_close &&
           17     touch "/home/$USER/$bindtest" &&
           18     tt_open --tomb-pwd $DUMMYPASS &&
           19     RND2=$(cat "/home/$USER/$bindtest") &&
           20     [[ "$RND" = "$RND2" ]] &&
           21     tt list $testname &&
           22     tt_close
           23     '
           24 
           25 test_done