summaryrefslogtreecommitdiff
path: root/test/librechroot-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-28 19:33:44 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-28 19:33:44 -0600
commite5c22aaf01484e7fa5926952bbcacd56228dbb64 (patch)
tree9e73731dc9c039a95fa99b08debccbb34ed75a18 /test/librechroot-test.sh
parentb4341ef8e90abe99d188dc444ff837a7aba756fa (diff)
librechroot: fix typos, add unit testtesting-20130528.2
Diffstat (limited to 'test/librechroot-test.sh')
-rw-r--r--test/librechroot-test.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/librechroot-test.sh b/test/librechroot-test.sh
new file mode 100644
index 0000000..d8f7299
--- /dev/null
+++ b/test/librechroot-test.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env roundup
+
+describe librechroot
+
+before() {
+ tmpdir=$(mktemp -d --tmpdir test-librechroot.XXXXXXXXXXXX)
+ mkdir -p "$XDG_CONFIG_HOME"/libretools
+ echo "CHROOTDIR='$tmpdir'" > "$XDG_CONFIG_HOME"/libretools/chroot.conf
+}
+
+after() {
+ rm -rf -- "$tmpdir" "$XDG_CONFIG_HOME"
+}
+
+it_creates_repo_for_new_chroots() {
+ sudo librechroot run test -r /repo/repo.db
+}