leo-clean.sh
1 # Create a new Leo program named `foo`. 2 $LEO new foo || exit 3 ls -la 4 cd foo && ls -la 5 6 # Run `leo run`. 7 $LEO run main 0u32 1u32 || exit 8 9 # Assert that the 'build' folder exists. 10 if [ "$(ls -A build)" ]; then 11 echo "build is not empty" 12 else 13 echo "build is empty" 14 exit 1 15 fi 16 17 # Run `leo clean` 18 $LEO clean || exit 19 20 # Assert that the 'build' folder is empty. 21 if [ "$(ls -A build)" ]; then 22 echo "build is not empty" 23 exit 1 24 else 25 echo "build is empty" 26 exit 0 27 fi 28