Skip to content

Commit

Permalink
test(crit): add show and info commands
Browse files Browse the repository at this point in the history
The E2E test was previously testing encode, decode and explore commands.
It now also tests the show and info commands on `inventory.img`.

Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
  • Loading branch information
snprajwal committed Apr 28, 2023
1 parent 3697421 commit 20d7cdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/crit/crit-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function recode_test {
done
}


function command_test {
PROTO_IN="$TEST_IMG_DIR"/inventory.img
JSON_IN=$(mktemp -p "$TEST_IMG_DIR" tmp.XXXXXXXXXX.json)
Expand Down Expand Up @@ -68,6 +67,10 @@ function command_test {
$CRIT encode -i "$PROTO_IN" -o "$OUT" || true
$CRIT encode -i "$PROTO_IN" > "$OUT" || true

# test info and show commands
$CRIT info "$PROTO_IN" || exit 1
$CRIT show "$PROTO_IN" || exit 1

# explore image directory
$CRIT x "$TEST_IMG_DIR" ps || exit 1
$CRIT x "$TEST_IMG_DIR" fds || exit 1
Expand Down

0 comments on commit 20d7cdd

Please sign in to comment.