aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/bitwise/files/run-ptest
blob: c29e1eaddc7b37f12c914ada18dcb38b2bb6a607 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Test 1: Basic bitwise operation
bitwise --no-color -w b 0x42 > test.out

# Compare expected output with actual output

if ! cmp test.out ptest.out.expected; then
    echo "[FAIL] Test 1: Basic bitwise operation"
    exit 1
fi