about summary refs log tree commit diff stats
path: root/tests/functionaltests/proftest.c
Commit message (Collapse)AuthorAgeFilesLines
* Added functional tests for /console commandJames Booth2015-12-301-0/+12
|
* Use single quotes in functional test stanzasJames Booth2015-12-301-6/+6
|
* Disable muc notifications for functional testsJames Booth2015-12-201-0/+2
|
* Fixed functional testsJames Booth2015-11-291-2/+2
|
* Force tls on all connections, add tls policy account propertyJames Booth2015-10-181-1/+1
|
* functionaltests: user ip address for server on connectJames Booth2015-10-131-1/+1
|
* functionaltests: reset connect wait to 30 secsJames Booth2015-10-131-1/+1
|
* functionaltests: Doubled libexpect timeout for connectJames Booth2015-10-131-1/+1
|
* Doubled expect timeout for connect in tests, removed libuuid from travis buildJames Booth2015-10-131-1/+1
|
* Fixed functional testsJames Booth2015-09-301-3/+13
|
* Show software version result in current windowJames Booth2015-08-061-1/+3
|
* tests: prof_connect_with_roster takes itemsJames Booth2015-07-231-7/+14
|
* Added id attributes to roster queriesJames Booth2015-07-221-9/+16
| | | | fixes #596
* Added carbons enable/disable testsJames Booth2015-07-151-1/+1
|
* Set columns when running functional testsJames Booth2015-06-131-9/+18
|
* Increase connection time, functional testsJames Booth2015-06-131-0/+3
|
* Tidied functional testsJames Booth2015-06-131-10/+23
|
* Moved all tests to tests folderJames Booth2015-06-121-0/+213
>): def test_loader(self): loader = Loader() fm = OpenStruct(loader=loader) SettingsAware.settings = Fake() FileManagerAware.fm = fm # initially, the loader has nothing to do self.assertFalse(loader.has_work()) dir = Directory(TESTDIR) self.assertEqual(None, dir.files) self.assertFalse(loader.has_work()) # Calling load_content() will enqueue the loading operation. # dir is not loaded yet, but the loader has work dir.load_content(schedule=True) self.assertEqual(None, dir.files) self.assertTrue(loader.has_work()) iterations = 0 while loader.has_work(): iterations += 1 loader.work() #print(iterations) self.assertNotEqual(None, dir.files) self.assertFalse(loader.has_work()) # # def test_get_overhead_of_loader(self): # N = 5 # tloader = benchmark_load(N) # traw = benchmark_raw_load(N) # #traw1k = 250.0 # #traw = traw1k * N / 1000.0 # #print("Loader: {0}s".format(tloader)) # #print("Raw: {0}s".format(traw)) # self.assertTrue(tloader > traw) # overhead = tloader * 100 / traw - 100 # self.assertTrue(overhead < 2, "overhead of loader too high: {0}" \ # .format(overhead)) # #print("Overhead: {0:.5}%".format(overhead)) if __name__ == '__main__': unittest.main()