diff options
author | Tobias Markmann <tm@ayena.de> | 2015-01-11 16:19:54 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2015-02-11 11:57:22 (GMT) |
commit | 1f9ca4c9041ffe8b3330150284d54e0870f82b20 (patch) | |
tree | 22870934688f9321487c30fb9ac04f34e3072462 /Swiften/QA/FileTransferTest/SConscript | |
parent | a049c80f0862a994a76e8e63d71c633bce63f66a (diff) | |
download | swift-1f9ca4c9041ffe8b3330150284d54e0870f82b20.zip swift-1f9ca4c9041ffe8b3330150284d54e0870f82b20.tar.bz2 |
Add debugging helper and FileTransferTest.
FileTransferTests tests file-transfer interoperability with Swiften
itself. It can test all combinations of FileTransferOptions or a specific
combination when given.
Test-Information:
Inspected XML logs to ensure it does what it is supposed to do.
Change-Id: I06215b60419dd23b367d01a2f038245a6c977720
Diffstat (limited to 'Swiften/QA/FileTransferTest/SConscript')
-rw-r--r-- | Swiften/QA/FileTransferTest/SConscript | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Swiften/QA/FileTransferTest/SConscript b/Swiften/QA/FileTransferTest/SConscript new file mode 100644 index 0000000..d17b12a --- /dev/null +++ b/Swiften/QA/FileTransferTest/SConscript @@ -0,0 +1,17 @@ +import os + +Import("env") + +if env["TEST"] : + myenv = env.Clone() + myenv.UseFlags(myenv["SWIFTEN_FLAGS"]) + myenv.UseFlags(myenv["SWIFTEN_DEP_FLAGS"]) + + for i in ["SWIFT_FILETRANSFERTEST_JID", "SWIFT_FILETRANSFERTEST_PASS", "SWIFT_FILETRANSFERTEST2_JID", "SWIFT_FILETRANSFERTEST2_PASS"]: + if ARGUMENTS.get(i.lower(), False) : + myenv["ENV"][i] = ARGUMENTS[i.lower()] + elif os.environ.get(i, "") : + myenv["ENV"][i] = os.environ[i] + + tester = myenv.Program("FileTransferTest", ["FileTransferTest.cpp"]) + myenv.Test(tester, "system") |