Files
42_INT_11_ft_containers/tests/test.sh
2022-06-14 21:25:16 +02:00

19 lines
382 B
Bash

#!/bin/bash
# cd $(dirname $0)
TEST_DIR=$(dirname $0)
OUTPUT_STL="output_stl.log"
OUTPUT_FT="output_ft.log"
make stl > /dev/null
echo -e "\nstl :"
time ./containers > tests/$OUTPUT_STL
make ft > /dev/null
echo -e "\nft :"
time ./containers > tests/$OUTPUT_FT
diff --context=0 --color=always tests/$OUTPUT_STL tests/$OUTPUT_FT
/bin/rm $TEST_DIR/$OUTPUT_STL $TEST_DIR/$OUTPUT_FT