Skip to content
Snippets Groups Projects
Commit c30f2cb0 authored by Dor Laor's avatar Dor Laor
Browse files

Move the pci device prints out to a separate file and

reduce the verbosity
parent 9661e04e
No related branches found
No related tags found
No related merge requests found
......@@ -132,16 +132,10 @@ void* do_main_thread(void *_args)
//Tests malloc and free using threads.
unit_tests::tests::instance().execute_tests();
//test_alloc();
//test_threads();
// Enumerate PCI devices
pci::pci_devices_print();
pci::pci_device_enumeration();
// List all devices
hw::device_manager::instance()->list_devices();
// Initialize all drivers
hw::driver_manager* drvman = hw::driver_manager::instance();
drvman->register_driver(new virtio::virtio_blk(0));
......
#ifndef __TST_DEVICES__
#define __TST_DEVICES__
#include "tst-hub.hh"
#include "drivers/pci.hh"
#include "debug.hh"
class test_devices : public unit_tests::vtest {
public:
void run()
{
// Comment it out to reduce output
//pci::pci_devices_print();
// List all devices
hw::device_manager::instance()->list_devices();
debug("Devices test succeeded");
}
};
#endif
......@@ -2,6 +2,7 @@
#include "tst-threads.hh"
#include "tst-malloc.hh"
#include "tst-timer.hh"
#include "tst-devices.hh"
using namespace unit_tests;
......@@ -9,10 +10,12 @@ void tests::execute_tests() {
test_threads threads;
test_malloc malloc;
test_timer timer;
test_devices dev;
instance().register_test(&threads);
instance().register_test(&malloc);
instance().register_test(&timer);
instance().register_test(&dev);
instance().run();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment