about summary refs log tree commit diff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Move the collector loop into scrape server code.Heikki Kallasjoki2018-12-239-9/+0
| | | | | | This paves the way for supporting parallel scrapes (#19); the implementation for that is going to need to track the state of the current scrape.
* Predefine NANO_EXPORTER_TEST when compiling test code.Heikki Kallasjoki2018-12-161-1/+1
| | | | | | Also update the existing test-only "override X" functions in the cpu, filesystem and uname collectors to only be defined when NANO_EXPORTER_TEST is.
* Rename the network collector to netdev.Heikki Kallasjoki2018-12-152-6/+6
| | | | | Resolves #14. For consistency with node_exporter, and with other network-related collectors.
* Run test cleanup when exiting via failure.Heikki Kallasjoki2018-12-131-1/+1
| | | | | | Fixes #12. Previously when a test escaped through the setjmp/longjmp failure path, the `test_cleanup` function never ran, leaving the test root directory in `/tmp`.
* Add basic test for the uname collector.Heikki Kallasjoki2018-12-122-1/+59
|
* Add basic test for the textfile collector.Heikki Kallasjoki2018-12-123-6/+91
|
* Add basic test for the stat collector.Heikki Kallasjoki2018-12-122-1/+56
|
* Add basic test for the network collector.Heikki Kallasjoki2018-12-122-1/+63
|
* Add basic test for the meminfo collector.Heikki Kallasjoki2018-12-122-1/+54
|
* Add basic test for the hwmon collector.Heikki Kallasjoki2018-12-126-1/+133
|
* Add basic test for the filesystem collector.Heikki Kallasjoki2018-12-122-1/+122
|
* Add basic test for the diskstats collector.Heikki Kallasjoki2018-12-122-1/+76
|
* Add a simple test harness and tests for the cpu collector.Heikki Kallasjoki2018-12-128-0/+705