aboutsummaryrefslogtreecommitdiff
path: root/scripts/test_make_clean
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test_make_clean')
-rwxr-xr-xscripts/test_make_clean14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/test_make_clean b/scripts/test_make_clean
new file mode 100755
index 000000000..fa3a543d8
--- /dev/null
+++ b/scripts/test_make_clean
@@ -0,0 +1,14 @@
1#!/bin/sh
2
3b=`basename $PWD`
4test "${b#busybox}" != "$b" || { echo "Must be run in busybox tree"; exit 1; }
5
6cd ..
7cp -pPR "$b" busybox.$$.test_tree
8cd busybox.$$.test_tree
9make defconfig
10make $MAKEOPTS
11make clean
12cd ..
13diff -urp "$b" busybox.$$.test_tree >busybox.$$.test_tree.diff
14cat busybox.$$.test_tree.diff