calamares/src/modules/unpackfs/runtests.sh
Adriaan de Groot 18f172e80c [unpackfs] Add tests
- Add global- and job-configurations for test runs.
 - Add a driver script that sets up some assumptions on the host
   system so that the tests can complete.
 - The idea is that these tests together get a decent code-coverage
   for the module.
2019-01-25 07:20:16 -05:00

18 lines
326 B
Bash

#! /bin/sh
SRCDIR=$( dirname "$0" )
# For test 3
mkdir /tmp/unpackfs-test-run-rootdir3
# For test 7
mkdir /tmp/unpackfs-test-run-rootdir3/realdest
# Run tests
sh "$SRCDIR/../testpythonrun.sh" unpackfs
# Cleanup test 7
rm -rf /tmp/unpackfs-test-run-rootdir3/realdest
# Cleanup test 3
rmdir /tmp/unpackfs-test-run-rootdir3