monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone.alt_tmpdir: 9fd348f21261032d


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.alt_tmpdir: 9fd348f21261032d6e270b62c2e62b03f206d488
Date: Tue, 3 May 2011 12:13:25 +0200 (CEST)

revision:            9fd348f21261032d6e270b62c2e62b03f206d488
date:                2011-05-03T10:12:59
author:              address@hidden
branch:              net.venge.monotone.alt_tmpdir
changelog:
* test/func/alt_tmpdir: New test, for alternate tmpdir feature (just getting 
started)

manifest:
format_version "1"

new_manifest [80c5ba2a11a71a0c760f6261459c92adce2fca86]

old_revision [65bcb8cf8b32f68a5b48629b328f6d65979e58df]

add_dir "test/func/alt_tmpdir"

add_file "test/func/alt_tmpdir/__driver__.lua"
 content [e141a6dc7389f0baf33052e60ec3abfb79f9063d]
============================================================
--- /dev/null	
+++ test/func/alt_tmpdir/__driver__.lua	e141a6dc7389f0baf33052e60ec3abfb79f9063d
@@ -0,0 +1,39 @@
+-- Test the alternate tmpdir capability.
+--
+-- not a very thorough test; on Windows, files can be moved between
+-- devices, and on Linux, it requires manual intervention to set up a
+-- workspace that spans two devices. So we just verify that the
+-- 'alt_tmpdir' keyword in _MTN/options is supported. The actual
+-- operation is tested by use in real workspaces.
+
+mtn_setup()
+
+addfile("readme", "just a file")
+
+mkdir("local")
+addfile("local/local-file0", "local file 0\n")
+
+mkdir("nfs_mounted")
+addfile("nfs_mounted/nfs_mounted-file0", "nfs_mounted file 0\n")
+
+commit()
+rev0 = base_revision()
+
+addfile("local/local-dir/file1", "local file 1\n")
+addfile("local/local-dir/file2", "local file 2\n")
+
+addfile("nfs_mounted/nfs_mounted-dir/file1", "nfs_mounted file 1\n")
+addfile("nfs_mounted/nfs_mounted-dir/file2", "nfs_mounted file 2\n")
+
+commit()
+rev1 = base_revision()
+
+revert_to(rev0)
+
+execute(["echo", "tmpdir \"nfs_mounted\" \"nfs_mounted/tmp\" > _MTN/options"]) 
+
+mkdir("nfs_mounted/tmp")
+
+check(mtn("update"), 0, nil, true)
+
+-- end of file

reply via email to

[Prev in Thread] Current Thread [Next in Thread]