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