-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meta-oe: recipes-extended: bitwise: Add ptest
Signed-off-by: Ever ATILANO <ever.atilano@smile.fr> Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Reviewed-by: Frank WOLFF <frank.wolff@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Unsigned decimal: 66 | ||
Signed decimal: 66 | ||
Hexadecimal: 0x42 | ||
Octal: 0102 | ||
Human: 66 | ||
Radix64: 0/ | ||
IPv4 (Network byte order - Big): 66.0.0.0 | ||
IPv4 (Reverwsed byte order - Little): 0.0.0.66 | ||
ASCII: .......B | ||
Binary: | ||
0 1 0 0 0 0 1 0 | ||
7 - 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |