gitpages

A collection of scripts to securely webhost and publish git repositories.
git clone https://scm.kuandu.systems/git-raw/gitpages.git
Log | Files | Refs | README | LICENSE

test-all.sh (443B)


      1 #!/bin/sh
      2 
      3 set -u
      4 
      5 failed=0
      6 
      7 for test in ./test-gitpages-*.sh; do
      8   printf '\n========================================\n'
      9   printf 'Running %s\n' "$test"
     10   printf '========================================\n'
     11 
     12   if "$test"; then
     13     printf 'PASS: %s\n' "$test"
     14   else
     15     printf 'FAIL: %s\n' "$test"
     16     failed=1
     17   fi
     18 done
     19 
     20 if [ "$failed" -eq 0 ]; then
     21   printf '\nALL TESTS PASSED\n'
     22   exit 0
     23 else
     24   printf '\nSOME TESTS FAILED\n'
     25   exit 1
     26 fi