github.com/facebookincubator/ttpforge@v1.0.13-0.20240405153150-5ae801628835/integration-tests.sh (about) 1 #!/bin/bash 2 # This runs the commands from the README.md 3 # Will shortly add `ttpforge test` invocation 4 # to run all the examples 5 set -ex 6 7 # ensure we have a valid ttpforge binary path 8 ttpforge_binary="$1" 9 if [ ! -e "${ttpforge_binary}" ] 10 then 11 echo "Provided TTPForge Binary Path Does Not Exist: ${ttpforge_binary}" 12 exit 1 13 fi 14 ttpforge_binary=$(realpath "${ttpforge_binary}") 15 16 # run all commands from the README.md 17 "${ttpforge_binary}" init 18 "${ttpforge_binary}" list repos 19 "${ttpforge_binary}" list ttps 20 "${ttpforge_binary}" show ttp examples//args/basic.yaml 21 "${ttpforge_binary}" run examples//args/basic.yaml \ 22 --arg str_to_print=hello \ 23 --arg run_second_step=true 24 25 # run all the TTP test cases 26 ./run-all-ttp-tests.sh "${ttpforge_binary}" "example-ttps"