Kill off the old 'tests' stuff. Write a ton of new tests for the
'testsuite' dir. Fix a bunch of broken tests. Fix the testsuite 'runtest' script so it actually reports all failures and provides meaningful feedback. -Erik
This commit is contained in:
4
testsuite/tr/tr-d-works
Normal file
4
testsuite/tr/tr-d-works
Normal file
@@ -0,0 +1,4 @@
|
||||
echo testing | tr -d aeiou > logfile.gnu
|
||||
echo testing | busybox tr -d aeiou > logfile.bb
|
||||
|
||||
cmp logfile.gnu logfile.bb
|
1
testsuite/tr/tr-non-gnu
Normal file
1
testsuite/tr/tr-non-gnu
Normal file
@@ -0,0 +1 @@
|
||||
echo fdhrnzvfu bffvsentr | busybox tr '[a-z]' '[n-z][a-m]'
|
9
testsuite/tr/tr-works
Normal file
9
testsuite/tr/tr-works
Normal file
@@ -0,0 +1,9 @@
|
||||
echo "cbaab" | tr abc zyx > logfile.gnu
|
||||
echo "TESTING A B C" | tr [A-Z] [a-z] >> logfile.gnu
|
||||
echo abc[] | tr a[b AXB >> logfile.gnu
|
||||
|
||||
echo "cbaab" | busybox tr abc zyx > logfile.bb
|
||||
echo "TESTING A B C" | busybox tr [A-Z] [a-z] >> logfile.bb
|
||||
echo abc[] | busybox tr a[b AXB >> logfile.bb
|
||||
|
||||
cmp logfile.gnu logfile.bb
|
Reference in New Issue
Block a user