summaryrefslogtreecommitdiffstats
path: root/tests/bits
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-11-13 01:02:54 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-11-14 13:35:41 +0100
commitf9eda7489b5afba9a0a5f9e1e623d61454b0e7e0 (patch)
tree40f99e9a97eee4df1e0e3edefaa3c506f211d836 /tests/bits
parent36a9cdfcd625f003e50b6077d12e720c66cf6c77 (diff)
tests: Use GNU autotest to execute our tests and compare textual output
The output of make check is looking like this now: Regression tests. 1: bits ok 2: msgfile ok 3: sms ok 4: smscb ok 5: timer FAILED (testsuite.at:38) 6: ussd FAILED (testsuite.at:44)
Diffstat (limited to 'tests/bits')
-rw-r--r--tests/bits/bitrev_test.ok24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bits/bitrev_test.ok b/tests/bits/bitrev_test.ok
new file mode 100644
index 00000000..47f402f4
--- /dev/null
+++ b/tests/bits/bitrev_test.ok
@@ -0,0 +1,24 @@
+INORDER: 01 02 04 08 10 20 40 80
+REVERSED: 80 40 20 10 08 04 02 01
+
+INORDER: 02 04 08 10 20 40 80
+REVERSED: 40 20 10 08 04 02 01
+
+INORDER: 04 08 10 20 40 80
+REVERSED: 20 10 08 04 02 01
+
+INORDER: 08 10 20 40 80
+REVERSED: 10 08 04 02 01
+
+INORDER: 10 20 40 80
+REVERSED: 08 04 02 01
+
+INORDER: 20 40 80
+REVERSED: 04 02 01
+
+INORDER: 40 80
+REVERSED: 02 01
+
+INORDER: 80
+REVERSED: 01
+