mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
.github: check if ~/.cache exists, dump test root files
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
aeb48ef04b
commit
702b22d4a3
3 files changed
+14
-1
No files matched your search
@@ -60,9 +60,12 @@ jobs:
|
|||||||
/tmp/sbin/initctl -h
|
/tmp/sbin/initctl -h
|
||||||
- name: Run Unit Tests
|
- name: Run Unit Tests
|
||||||
run: |
|
run: |
|
||||||
|
echo "~/.cache contents =============="
|
||||||
|
ls -l ~/.cache
|
||||||
|
echo "================================"
|
||||||
ver=$(/tmp/sbin/initctl -V | awk '/Finit.*/ {print $2;}')
|
ver=$(/tmp/sbin/initctl -V | awk '/Finit.*/ {print $2;}')
|
||||||
dir=finit-$ver/_build/sub
|
dir=finit-$ver/_build/sub
|
||||||
make -j1 distcheck || (cat $dir/test/test-suite.log; false)
|
make -j1 distcheck || (cat $dir/test/setup-root.log; cat $dir/test/test-suite.log; false)
|
||||||
- name: Upload Test Results
|
- name: Upload Test Results
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ test_teardown()
|
|||||||
texec rm -f /test_assets/service.sh
|
texec rm -f /test_assets/service.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
say "Hi, this is /run et al"
|
||||||
|
texec sh -c "ls -l /bin/; ls -l /sbin/; ls -l /run/; ls -l /dev/"
|
||||||
|
|
||||||
say "Test start $(date)"
|
say "Test start $(date)"
|
||||||
|
|
||||||
cp "$TEST_DIR"/common/service.sh "$TENV_ROOT"/test_assets/
|
cp "$TEST_DIR"/common/service.sh "$TENV_ROOT"/test_assets/
|
||||||
|
|||||||
@@ -12,3 +12,10 @@ FINITBIN="$(pwd)/$top_builddir/src/finit" DEST="$TENV_ROOT" make -f "$srcdir/ten
|
|||||||
for plugin in tty.so urandom.so rtc.so modprobe.so hotplug.so; do
|
for plugin in tty.so urandom.so rtc.so modprobe.so hotplug.so; do
|
||||||
find "$TENV_ROOT" -name $plugin -delete
|
find "$TENV_ROOT" -name $plugin -delete
|
||||||
done
|
done
|
||||||
|
|
||||||
|
ls -l $DESTDIR
|
||||||
|
ls -l $DESTDIR/bin
|
||||||
|
ls -l $DESTDIR/sbin
|
||||||
|
ls -l $DESTDIR/var/
|
||||||
|
ls -l $DESTDIR/var/run/
|
||||||
|
|
||||||
Reference in new issue
Block a user