From 923b7823970988a9cf67c4343591ef0409b8fe08 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 18 Nov 2022 17:03:09 +0100 Subject: tests: add fake findfs and blkid for testing setup-lbu --- tests/bin/blkid | 11 +++++++++++ tests/bin/findfs | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100755 tests/bin/blkid create mode 100755 tests/bin/findfs diff --git a/tests/bin/blkid b/tests/bin/blkid new file mode 100755 index 0000000..ccf7e43 --- /dev/null +++ b/tests/bin/blkid @@ -0,0 +1,11 @@ +#!/bin/sh + +case "$1" in + /dev/vda1) + echo "$1:" 'TYPE="vfat" LABEL="APKOVL"' + ;; + /dev/mmcblk0p1) + echo "$1:" 'TYPE="vfat" UUID="AAAA-BBBB"' + ;; +esac + diff --git a/tests/bin/findfs b/tests/bin/findfs new file mode 100755 index 0000000..6d67767 --- /dev/null +++ b/tests/bin/findfs @@ -0,0 +1,10 @@ +#!/bin/sh + +case "$1" in + LABEL=APKOVL) + echo /dev/vda1 + ;; + UUID=AAAA-BBBB) + echo /dev/mmcblk0p1 + ;; +esac -- cgit v1.2.3