Arrange tests in subdirectories.
[virt-what.git] / tests / vmm / test.sh
similarity index 95%
rename from tests/test-vmm.sh
rename to tests/vmm/test.sh
index e1de60a..56c3b0e 100755 (executable)
@@ -15,9 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-root=tests/vmm
-
-output="$(./virt-what --test-root=$root 2>&1)"
+output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
 expected="vmm"
 
 if [ "$output" != "$expected" ]; then