In a large deep pan, cook the onion in oil over low heat for 2 minutes. Add the drained and sliced mushrooms, tomatoes, chopped garlic, salt, and pepper. Let simmer for 20 minutes.
Cook the Warda five-grain spaghetti in salted boiling water for 7 minutes.