ft_nm/unit_test.sh

11 lines
163 B
Bash
Raw Normal View History

2024-10-21 15:13:46 +00:00
#!/bin/bash
for file in $1*/**/*
do
if [[ "$file" != *.a ]] ;then
echo $file
./ft_nm $2 $file 2>&1 | cat > a
nm $2 $file 2>&1 | cat > b
diff a b
fi
done