summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/findutils/findutils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/findutils/findutils')
-rw-r--r--meta/recipes-extended/findutils/findutils/run-ptest32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-extended/findutils/findutils/run-ptest b/meta/recipes-extended/findutils/findutils/run-ptest
new file mode 100644
index 0000000000..0c9af47efd
--- /dev/null
+++ b/meta/recipes-extended/findutils/findutils/run-ptest
@@ -0,0 +1,32 @@
1#!/bin/bash
2
3# create temporary symlink to workaround missing oldfind
4ln -s /usr/bin/find /tmp/oldfind
5# make oldfind visible
6export PATH="/tmp:${PATH}"
7
8# Add findutils ptest directory to PATH for getlimits
9export PATH="/usr/lib/findutils/ptest:${PATH}"
10
11export built_programs="find xargs locate updatedb"
12
13# this gets substituted by sed during build
14export VERSION="__run_ptest_version__"
15
16for f in tests/*/*.sh; do
17 bash $f ;
18 case $? in
19 0 )
20 echo -n "PASS";;
21 77 )
22 echo -n "SKIP";;
23 * )
24 echo -n "FAIL";;
25 esac
26 echo ": $f"
27done
28
29#remove symlink
30rm -f /tmp/oldfind
31
32echo