fstrim: Indicate failure on error
[platform/upstream/busybox.git] / scripts / test_make_clean
1 #!/bin/sh
2
3 b=`basename $PWD`
4 test "${b#busybox}" != "$b" || { echo "Must be run in busybox tree"; exit 1; }
5
6 cd ..
7 cp -pPR "$b" busybox.$$.test_tree
8 cd busybox.$$.test_tree
9 make defconfig
10 make $MAKEOPTS
11 make clean
12 cd ..
13 diff -urp "$b" busybox.$$.test_tree >busybox.$$.test_tree.diff
14 cat busybox.$$.test_tree.diff