github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/scripts/tests.sh (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  #set -x
     5  
     6  # Used to test all the things
     7  
     8  find * -type d -maxdepth 0 -print | while read dir; do
     9  	if [ -f $dir/.skip ]; then
    10  		continue
    11  	fi
    12  
    13  	pushd $dir >/dev/null
    14  
    15  	echo 
    16  	echo "Testing $dir"
    17  	echo
    18  
    19  	# run tests
    20  	go test -v ./...
    21  
    22  	popd >/dev/null
    23  done